Skip to content

The Starmus Audio Recorder is a lightweight, front-end WordPress plugin that allows users to record audio directly in the browser using the MediaRecorder API.

License

Notifications You must be signed in to change notification settings

Starisian-Technologies/starmus-audio-recorder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Starmus Audio Recorder

โœจ Starmus Audio Recorder (WordPress Plugin)

The Starmus Audio Recorder is a minimalist front-end WordPress plugin for capturing oral histories, vocals, or field recordings using the browserโ€™s built-in MediaRecorder API.

Named after the iconic Starmus Festival, where rock legends and astrophysicists share the stage, this tool is built for creators and communities who believe voice has gravity.

CodeQL Proof HTML, Lint JS & CSS


๐Ÿ”ฅ Features

  • ๐ŸŽค Native, in-browser recording using the MediaRecorder API (no external libraries)
  • ๐Ÿ›ก๏ธ Consent-first UX โ€” checkbox, timer, and playback before upload
  • ๐Ÿ“ค MP4/AAC & WebM/Opus output automatically attached to form
  • ๐Ÿ“ฑ Mobile-friendly, PWA-capable, no 3rd-party dependencies
  • ๐Ÿง  Clean JS codebase ready for extensions (transcription, waveform, MP3 export)
  • ๐Ÿ‘‰ Developed for low-bandwidth, mobile-first usage in The Gambia, prioritizing offline, accessibility, and minimal dependencies.

๐Ÿ“‚ File Structure

starmus-audio-recorder/
โ”œโ”€โ”€ starmus-audio-recorder.php # Plugin loader, shortcode, enqueuing
โ”œโ”€โ”€ templates/
โ”‚ โ””โ”€โ”€ starmus-audio-recorder-ui.html # Recorder UI HTML
โ”œโ”€โ”€ assets/
โ”‚ โ”œโ”€โ”€ js/
โ”‚ โ”‚ โ””โ”€โ”€ starmus-audio-recorder.js # MediaRecorder API logic
โ”‚ โ””โ”€โ”€ css/
โ”‚ โ””โ”€โ”€ starmus-audio-recorder-style.css # Styling (optional)


๐Ÿ› ๏ธ Installation

  1. Download or clone this repository.

  2. Place it in your /wp-content/plugins/ directory.

  3. Activate Starmus Audio Recorder in WordPress admin.

  4. Embed the UI using shortcode or insert this HTML:

<!--
  Starmus Audio Recorder UI
  This HTML is designed to work with starmus-audio-recorder.js and uses the native MediaRecorder API.
  It enables a user to record audio in-browser.
  The JavaScript is responsible for handling the recorded audio data
  for playback and submission via the form fields below.
-->

<div id="starmus_audioWrapper" class="sparxstar-audioWrapper" data-enabled-recorder>
    <h2 id="sparxstar_audioRecorderHeading" class="sparxstar-h2">Audio Recorder</h2>
    <div id="sparxstar_audioRecorder" class="sparxstar_audioRecorder" role="region" aria-labelledby="sparxstar_audioRecorderHeading">

        <!-- Consent Checkbox -->
        <label for="field_consent">
            <input type="checkbox" id="field_consent" name="item_meta[YOUR_CONSENT_FIELD_NUMBER]" value="1" required>
            I consent to the recording and submission of this oral history.
        </label>

        <!-- Recorder Controls -->
        <div class="sparxstar_recorderControls" role="group" aria-label="Recording controls">
            <button type="button" id="recordButton" class="sparxstar_button">Record</button>
            <button type="button" id="pauseButton" class="sparxstar_button" disabled>Pause</button>
            <button type="button" id="playButton" class="sparxstar_button" disabled>Play</button>
        </div>

        <!-- Volume Meter -->
        <div id="sparxstar_audioLevelWrap" class="sparxstar_audioLevelWrap" aria-hidden="true">
            <div id="sparxstar_audioLevelBar"
                 class="sparxstar_audioLevelBar"
                 role="meter"
                 aria-valuenow="0"
                 aria-valuemin="0"
                 aria-valuemax="100"
                 aria-label="Microphone input level"></div>
        </div>

        <!-- Optional Status Message -->
        <div id="sparxstar_status" role="status" aria-live="polite" class="visually-hidden"></div>

        <!-- Timer Display -->
        <div id="sparxstar_timer" class="sparxstar_timer" role="timer" aria-live="polite">00:00</div>

        <!-- Audio Playback -->
        <audio id="sparxstar_audioPlayer" class="sparxstar_audioPlayer" controls aria-label="Recorded audio preview"></audio>

        <!-- Hidden Form Fields -->
        <input type="file" name="item_meta[YOUR_AUDIO_UPLOAD_FIELD_NUMBER]" accept="audio/*" style="display:none;">
        <input type="hidden" name="audio_uuid">
    </div>
</div>

๐Ÿš€ Why "Starmus"?

Starmus honors the Starmus Festival founded by Dr. Garik Israelian and Dr. Brian May (guitarist of Queen + astrophysicist).

Where science meets sound, this plugin captures that same cosmic energy โ€” whether itโ€™s a voice memo beneath the stars or an oral history from a rural village.

Starmus Audio Recorder is a small tool with a big mission: to preserve stories, songs, and spirit in their purest form.


๐Ÿค Cultural & Creative Projects Welcome

While this plugin is released under a restricted proprietary license, we actively support nonprofit, educational, and cultural storytelling projects.

If you're working in underserved communities or preserving oral traditions, reach out. Weโ€™re happy to explore free or discounted licensing.

๐Ÿ“ง Contact: support@aiwestafrica.com


๐Ÿ”ฎ Future Directions

  • Offline saving & encryption (PWA)

  • Metadata tagging & speaker consent logging

  • Optional MP3 conversion via WebAssembly


๐Ÿ“„ License

LicenseRef-Starisian-Technologies-Proprietary

This software is governed by the Starisian Technologies Confidential License. Unauthorized use or distribution is strictly prohibited.

By accessing this repo, you accept:

  • LICENSE.md โ€” legal terms, jurisdiction

  • TERMS.md โ€” ethics, allowed use

Not allowed: surveillance, coercion, military use.
Encouraged: oral history, education, culture, community voice.


๐Ÿ“ฐ Ethics & Governance

You must adhere to these standards:

  • No use in surveillance or coercion

  • No use by military, police, or intelligence agencies

  • Exemptions may be granted for verified educational/cultural programs

Full details in ETHICS.md or by request.


๐ŸŒ Contact

Starisian Technologies
815 E Street, Suite 12083
San Diego, CA 92101
Email: support@starisian.com


Made for creators. Built for culture. Inspired by the stars.

About

The Starmus Audio Recorder is a lightweight, front-end WordPress plugin that allows users to record audio directly in the browser using the MediaRecorder API.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Contributors 2

  •  
  •