{"id":29452819,"url":"https://github.com/alectrocute/mic-speaker-streamer","last_synced_at":"2026-04-12T09:02:21.664Z","repository":{"id":304241323,"uuid":"1018208041","full_name":"alectrocute/mic-speaker-streamer","owner":"alectrocute","description":"Cross-platform Electron app for simultaneously streaming \u0026 recording microphone and speaker audio","archived":false,"fork":false,"pushed_at":"2025-07-11T20:16:39.000Z","size":814,"stargazers_count":28,"open_issues_count":0,"forks_count":8,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-08T20:57:21.912Z","etag":null,"topics":["audio","demo","electron","example","loopback","microphone","openai","speaker","transcription","whisper"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alectrocute.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-11T19:52:58.000Z","updated_at":"2026-02-01T08:16:23.000Z","dependencies_parsed_at":"2025-07-13T02:47:07.436Z","dependency_job_id":null,"html_url":"https://github.com/alectrocute/mic-speaker-streamer","commit_stats":null,"previous_names":["alectrocute/mic-speaker-streamer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/alectrocute/mic-speaker-streamer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alectrocute%2Fmic-speaker-streamer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alectrocute%2Fmic-speaker-streamer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alectrocute%2Fmic-speaker-streamer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alectrocute%2Fmic-speaker-streamer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alectrocute","download_url":"https://codeload.github.com/alectrocute/mic-speaker-streamer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alectrocute%2Fmic-speaker-streamer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31709295,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-12T06:22:27.080Z","status":"ssl_error","status_checked_at":"2026-04-12T06:21:52.710Z","response_time":58,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["audio","demo","electron","example","loopback","microphone","openai","speaker","transcription","whisper"],"created_at":"2025-07-13T23:00:26.824Z","updated_at":"2026-04-12T09:02:21.629Z","avatar_url":"https://github.com/alectrocute.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mic \u0026 Speaker Streamer\n\nAn example Electron application that streams microphone and system audio to OpenAI's Realtime API for real-time transcription. The app provides a simple interface to capture both microphone input and system audio output, transcribe them in real-time, and optionally record the combined audio as WAV files.\n\nThis provides a starting point for building a desktop application that streams microphone and system audio to OpenAI's Realtime API for real-time transcription. See [electron-audio-loopback](https://github.com/alectrocute/electron-audio-loopback) for more information on how to capture system audio.\n\n![Screenshot](.github/screenshot-1.png)\n![Screenshot](.github/screenshot-2.png)\n\n## Features\n\n- **Real-time Transcription**: Stream microphone and system audio to OpenAI's Realtime API\n- **Dual Audio Capture**: Simultaneously capture microphone input and system audio output\n- **Multiple Model Support**: Choose from different OpenAI transcription models:\n  - `whisper-1`\n  - `gpt-4o-transcribe`\n  - `gpt-4o-mini-transcribe`\n- **Audio Recording**: Record combined microphone and system audio as WAV files\n- **Modern UI**: Clean, dark-themed interface with real-time status indicators\n- **Cross-platform**: Works on macOS, Windows, and Linux\n\n## Prerequisites\n\n- Node.js (v16 or higher)\n- OpenAI API key with access to Realtime API\n- Microphone and speakers/audio output device\n\n## Installation\n\n1. Clone or download this repository\n2. Install dependencies:\n   ```bash\n   npm install\n   ```\n\n3. Create a `.env` file in the project root and add your OpenAI API key:\n   ```\n   OPENAI_KEY=your_openai_api_key_here\n   ```\n\n## Usage\n\n1. Start the application:\n   ```bash\n   npm start\n   ```\n\n2. The app window will open with controls for:\n   - **Start Streaming**: Begin capturing and transcribing audio\n   - **Stop Streaming**: Stop audio capture and transcription\n   - **Start Recording**: Begin recording combined audio as WAV file\n   - **Microphone Select**: Choose input device\n   - **Model Select**: Choose transcription model\n\n3. Status indicators show connection state for:\n   - Microphone input\n   - System audio output\n   - Recording status\n\n4. Real-time transcription results appear in separate panels for microphone and system audio\n\n## Technical Details\n\n### Architecture\n\n- **Main Process** (`main.js`): Electron main process with audio loopback initialization\n- **Renderer Process** (`renderer.js`): Frontend logic for audio capture and API communication\n- **Preload Script** (`preload.js`): Secure bridge between main and renderer processes\n\n### Key Components\n\n- **Session Class**: Manages WebRTC connections to OpenAI Realtime API\n- **WavRecorder Class**: Handles audio recording and WAV file generation\n- **Audio Loopback**: Uses `electron-audio-loopback` for system audio capture\n\n### Dependencies\n\n- `electron`: Desktop application framework\n- `electron-audio-loopback`: System audio capture\n- `dotenv`: Environment variable management\n\n## API Requirements\n\nThis application requires an OpenAI API key with access to the Realtime API. The Realtime API is currently in beta and may require special access.\n\n## Troubleshooting\n\n- **No audio detected**: Ensure microphone permissions are granted to the application\n- **System audio not captured**: On macOS, grant microphone permissions in System Preferences\n- **API errors**: Verify your OpenAI API key is valid and has Realtime API access\n\n## License\n\nThis project is provided as-is for educational and development purposes. Go crazy.\n\n## Author\n\nAlec Armbruster [@alectrocute](https://github.com/alectrocute)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falectrocute%2Fmic-speaker-streamer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falectrocute%2Fmic-speaker-streamer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falectrocute%2Fmic-speaker-streamer/lists"}