Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

InstantBoard

A polished Windows desktop soundboard, local neural voice studio, and real-time cross-lingual voice translator with zero-shot voice cloning. Plays sound effects, text-to-speech, online media audio, and translated speech directly into your microphone input β€” perfect for Discord, Zoom, Microsoft Teams, Google Meet, OBS Studio, and gaming voice chat.

Built with Python, PySide6 (Qt6), CTranslate2, ONNX Runtime, and VB-Audio Virtual Cable.

Python Windows License AI Models


What It Does

InstantBoard bridges desktop audio and virtual microphone routing on Windows. It eliminates manual audio device switching by programmatically routing audio through VB-CABLE while managing physical microphone passthrough.

Key Capabilities

  1. πŸŽ™οΈ Live Voice Translator (Zero-Shot Voice Cloning)

    • Speak in Urdu and callers hear English, or speak English and callers hear Arabic.
    • Clones your voice: Synthesizes the translated output in your own vocal timbre and pitch from a 5-second enrollment sample.
    • Automatic Language Detection: Auto-detects input language or lets you manually set source/target pairs.
    • Microphone Suppression: While translator mode is active, your raw microphone audio is suppressed from the call so callers hear only the translated speech.
    • Emergency Stop & Push-to-Talk: Instant silence button and hold-to-speak mode.
    • RTL Transcripts: Live dual transcripts with native Right-to-Left rendering for Urdu and Arabic.
  2. πŸ”Š Soundboard & MyInstants Explorer

    • Search, browse trending sounds, and trigger clips from MyInstants.
    • Overlapping playback: Play multiple sounds simultaneously with automatic soft-limiting to prevent clipping.
    • Local disk caching: Sounds are cached locally for offline and instant repeat playback.
  3. πŸ—£οΈ Local Neural Text-to-Speech (Pocket-TTS)

    • 23 natural conversational voices powered by Kyutai Pocket-TTS (~100M parameter model running on CPU).
    • Auto-speaks 500ms after you stop typing.
  4. πŸ”— Media Link Audio Extractor (yt-dlp)

    • Paste video/audio links from YouTube, TikTok, Instagram Reels, Twitter/X, SoundCloud, or Reddit.
    • Extracts and streams audio directly through your virtual microphone.
  5. ⚑ Global Hotkeys & Independent Volumes

    • Bind favorite sounds to global keyboard shortcuts (F1–F12, Ctrl+Alt+...) triggered from any game or full-screen app.
    • 3 independent volume sliders: Monitor (your headphones), Microphone, and Soundboard.

How the Audio Routing Works

                               β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                               β”‚ InstantBoard Interface β”‚
                               β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                           β”‚
                                           β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                           InstantBoard Audio Engine                           β”‚
β”‚                                                                               β”‚
β”‚  [Physical Mic] ──► (Translator Active?)                                      β”‚
β”‚                           β”‚                                                   β”‚
β”‚                           β”œβ”€β”€ YES ──► VAD/ASR ──► Translation ──► Cloned TTS  β”‚
β”‚                           β”‚           (Raw mic suppressed from call feed) β”‚   β”‚
β”‚                           β”‚                                               β”‚   β”‚
β”‚                           └── NO  ──► Normal Mic Passthrough              β”‚   β”‚
β”‚                                                   β”‚                       β”‚   β”‚
β”‚  [Soundboard / TTS / Links] ──────────────────────┼────────────────────────   β”‚
β”‚                                                   β–Ό                       β–Ό   β”‚
β”‚                                          β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”   β”‚
β”‚                                          β”‚  Monitor Output β”‚ β”‚  Mix Outputβ”‚   β”‚
β”‚                                          β”‚  (Headphones)   β”‚ β”‚  (CABLE In)β”‚   β”‚
β”‚                                          β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”˜   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                                                      β–Ό
                                                           β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                                                           β”‚   VB-CABLE Input   β”‚
                                                           β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                                                      β”‚
                                                                      β–Ό
                                                           β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                                                           β”‚   VB-CABLE Output  β”‚
                                                           β”‚ (Recording Device) β”‚
                                                           β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                                                      β”‚
                                                                      β–Ό
                                                           β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                                                           β”‚ Discord / Zoom /   β”‚
                                                           β”‚ Games / OBS        β”‚
                                                           β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
  • InstantBoard sends mixed audio to CABLE Input (playback device).
  • Discord, Zoom, Microsoft Teams, or OBS records from CABLE Output (recording device).

Requirements

Component Requirement
Operating System Windows 10 / 11 (64-bit)
Python Python 3.10, 3.11, or 3.12
Virtual Cable VB-Audio Virtual Cable (Free)
Hardware Any modern multi-core CPU, 8 GB+ RAM (Models run on CPU/AVX2)

Setup & Installation

1. Install VB-CABLE

  1. Download and install VB-CABLE Driver from vb-audio.com.
  2. Restart your PC after installation so Windows registers the virtual audio endpoints:
    • CABLE Input appears under Playback devices.
    • CABLE Output appears under Recording devices.

2. Clone and Setup Environment

# Clone repository
git clone https://github.com/RasikhAli/InstantBoard.git
cd SoundBoard

# Create virtual environment
python -m venv venv
.\venv\Scripts\activate

# Install dependencies
pip install -r requirements.txt

3. Launch InstantBoard

python main.py

User Guide

πŸŽ™οΈ Using the Live Translator

  1. Open the Live Translator tab in InstantBoard.
  2. Enroll Your Voice (One-time, 5 seconds):
    • Click Record Voice (5s) and speak naturally into your microphone, or click Import WAV to use an existing clean sample.
    • Select your newly created profile from the dropdown.
  3. Select Language Direction:
    • Source: Auto (Detect) or Urdu (اردو) or English.
    • Target: English or Arabic (Ψ§Ω„ΨΉΨ±Ψ¨ΩŠΨ©).
  4. Start Translation:
    • Click Start Live Translation for continuous mode, or hold Push-to-Talk.
    • Speak in Urdu $\to$ callers on Discord or Zoom hear you in English with your cloned voice.
    • Your physical microphone is automatically suppressed so callers only hear the translated output.
    • Hit EMERGENCY STOP at any time to instantly flush queues and silence audio.

πŸ”Š Using the Soundboard

  1. Click the Sounds tab.
  2. Type in the search bar or browse trending clips from MyInstants.
  3. Click Play on any card to trigger it into your microphone.
  4. Click the Heart icon to favorite a sound for hotkey binding.

πŸ—£οΈ Using Text-to-Speech (Pocket-TTS)

  1. Click the TTS tab.
  2. Select one of the 23 conversational voices.
  3. Type your text. 500ms after you stop typing, the model synthesizes and plays the speech into your microphone.

πŸ”— Using the Link Player

  1. Click the Links tab.
  2. Paste any media link (YouTube, TikTok, Instagram Reel, Twitter video).
  3. Click Play β€” InstantBoard downloads and injects the audio track on the fly.

πŸŽ›οΈ Volume Controls

In the bottom control bar:

  • Playback Volume: Adjusts loudness in your local headphones/speakers.
  • Microphone Volume: Adjusts physical microphone sensitivity in calls (when translator is off).
  • Soundboard Volume: Adjusts media loudness sent to voice calls.
  • Soundboard / Normal Mode: Toggle continuous virtual mic routing for streaming.

Testing & Verification

InstantBoard includes an automated test suite and benchmark harness:

Run Unit Tests

.\venv\Scripts\python.exe -m unittest discover -s tests -p "test_*.py" -v

Verifies strict project-local storage, VAD frame buffering, Urdu/English/Arabic translation fidelity, physical mic suppression, and cancellation tokens.

Run Performance Benchmarks

# Benchmark Urdu -> English
.\venv\Scripts\python.exe benchmarks/benchmark_pipeline.py --source-lang ur --target-lang en --iterations 3

# Benchmark English -> Arabic
.\venv\Scripts\python.exe benchmarks/benchmark_pipeline.py --source-lang en --target-lang ar --iterations 3

Measures per-stage compute times, Real-Time Factor (RTF), memory consumption, and backlog.


Project Structure

instantboard/
β”œβ”€β”€ audio/
β”‚   β”œβ”€β”€ decoder.py          # Audio decoding (soundfile with ffmpeg fallback)
β”‚   β”œβ”€β”€ devices.py          # Device discovery and Windows CoreAudio switching
β”‚   β”œβ”€β”€ mixer.py            # Multitrack mixer, soft limiter, mic suppression
β”‚   β”œβ”€β”€ player.py           # High-level playback lifecycle
β”‚   └── recorder.py         # Mic capture with non-blocking listener fan-out
β”œβ”€β”€ benchmarks/
β”‚   └── benchmark_pipeline.py # Automated latency and RTF benchmark harness
β”œβ”€β”€ gui/
β”‚   β”œβ”€β”€ link_player_widget.py # yt-dlp media downloader panel
β”‚   β”œβ”€β”€ main_window.py      # Main window, tabs container, hotkey manager
β”‚   β”œβ”€β”€ player_widget.py    # Bottom control deck: volume sliders and mode toggles
β”‚   β”œβ”€β”€ search_widget.py    # MyInstants search grid and pagination
β”‚   β”œβ”€β”€ settings_dialog.py  # Device selector and hotkey manager dialog
β”‚   β”œβ”€β”€ translator_widget.py # Live Translator panel with RTL transcripts
β”‚   └── tts_widget.py       # Kyutai Pocket-TTS local synthesis panel
β”œβ”€β”€ myinstants/
β”‚   β”œβ”€β”€ api.py              # MyInstants web crawler
β”‚   └── parser.py           # Sound card and metadata parser
β”œβ”€β”€ resources/
β”‚   β”œβ”€β”€ icons.py            # Dynamic SVG icon loader
β”‚   └── theme.py            # Dark modern stylesheet (QSS)
β”œβ”€β”€ tests/
β”‚   β”œβ”€β”€ test_contracts_and_pipeline.py
β”‚   β”œβ”€β”€ test_mixer_routing.py
β”‚   β”œβ”€β”€ test_storage_bootstrap.py
β”‚   β”œβ”€β”€ test_translation_and_asr.py
β”‚   └── test_vad_stream.py
β”œβ”€β”€ translator/
β”‚   β”œβ”€β”€ asr.py              # Faster-Whisper ASR & language detection
β”‚   β”œβ”€β”€ bootstrap.py        # Strict project-local storage bootstrap
β”‚   β”œβ”€β”€ contracts.py        # Typed stage contracts and data models
β”‚   β”œβ”€β”€ models/             # Manifests, capability registry, atomic installer
β”‚   β”œβ”€β”€ pipeline.py         # Multi-threaded streaming translator pipeline
β”‚   β”œβ”€β”€ profiles.py         # Voice profile enrollment & reference manager
β”‚   β”œβ”€β”€ translation.py      # CTranslate2 NLLB-200 faithful translation
β”‚   β”œβ”€β”€ tts.py              # Voice cloning TTS client
β”‚   β”œβ”€β”€ tts_worker.py       # Isolated worker process (JSON-lines IPC)
β”‚   └── vad.py              # Streaming Silero VAD (ONNX) with recurrent state
β”œβ”€β”€ utils/
β”‚   β”œβ”€β”€ cache.py            # Disk cache with MD5 hashing
β”‚   └── settings.py         # JSON settings persistence
β”œβ”€β”€ main.py                 # Application bootstrap entry point
└── requirements.txt        # Frozen Python dependencies

Troubleshooting

  • "VB-CABLE not detected": Ensure VB-CABLE is installed from vb-audio.com and that you have rebooted Windows. In Windows Sound settings, verify that CABLE Input appears under Playback devices and CABLE Output appears under Recording devices.
  • Callers can't hear the soundboard or translation: In Discord, Zoom, or Teams audio settings, change the Input Device (Microphone) to CABLE Output.
  • Translating language: Make sure your microphone is selected in the bottom device bar or settings dialog. Click Record Voice (5s) to capture your voice profile before starting translation for the best cloning quality.

License

MIT License β€” see LICENSE for details.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages