Play audio through your microphone in games using hotkeys
Project description
MUC Soundboard ๐ต๐ฎ
Play audio files through your microphone in multiplayer games like CS, Battlefield, and COD using hotkeys. Built with Python and Rich for a beautiful CLI experience!
โจ Features
- ๐ต Play audio through your mic - Route sound to your virtual microphone
- โจ๏ธ Hotkey support - F1-F10 keys for instant sound playback
- ๐จ Beautiful CLI - Rich-click powered interface with colors and tables
- ๐๏ธ Multiple formats - Supports WAV, MP3, OGG, FLAC, M4A
- ๐ Auto-detection - Finds VB-Cable and virtual audio devices automatically
- ๐ Organized library - Subdirectory support for sound organization
- ๐ Volume control - Adjustable playback volume with persistent settings
- ๐ฒ Auto-play mode - Play all sounds randomly or sequentially
- โ๏ธ Persistent config - Saves your settings to
~/.muc/config.json - ๐ฎ Gaming ready - Perfect for CS, Battlefield, COD, and more!
๐ Prerequisites
1. Python Environment
- Python 3.13 or higher
- uv or pip for package management
2. Virtual Audio Cable
CRITICAL: You need a virtual audio device to route audio to your microphone.
Recommended: VB-Cable (Free)
- Download from: https://vb-audio.com/Cable/
- Install the driver with admin privilege
- Restart your computer (required!)
- This creates:
CABLE Input- Where your soundboard outputs audioCABLE Output- What your game reads as a microphone
NOTE: This will switch your default audio and microphone devices to VB-Cable. Revert them back to your real devices.
๐ Installation
Quick Start
-
Install via uv or pip:
uv add muc # optional: with yt-dlp for downloading audio uv add muc[yt-dlp]
-
Add your audio files:
- Place audio files (MP3, WAV, OGG, FLAC, M4A) in the
sounds/directory - Organize in subdirectories if desired
- The app automatically scans and loads all audio files
- Place audio files (MP3, WAV, OGG, FLAC, M4A) in the
โ๏ธ Setup
Step 1: Configure VB-Cable
In Windows Sound Settings:
- Right-click speaker icon in taskbar โ Sound settings
- Under Input, select your real microphone (HyperX, Blue Yeti, etc.)
- This is for your actual voice
In Your Game Settings:
- Open game audio/voice settings
- Set Input Device to:
CABLE Output (VB-Audio Virtual Cable) - Your teammates will now hear audio from the soundboard + your voice (if using software mixing)
Step 2: Run Setup Wizard
muc setup
The setup wizard will:
- ๐ List all available audio devices in a beautiful table
- ๐ Auto-detect VB-Cable or similar virtual devices
- โ Let you confirm or manually select the output device
- ๐พ Save your configuration to
~/.muc/config.json
IMPORTANT: Select CABLE Input as the output device, not CABLE Output.
CABLE Input โ Soundboard outputs HERE
โ
CABLE Output โ Game reads FROM here
๐ฎ Usage
CLI Commands
MUC provides a modern CLI with multiple commands:
# Setup and configuration
muc setup # Run setup wizard
muc devices # List all audio devices
# Sound management
muc sounds # List available sounds in your library
muc play [name] # Play a specific sound (prompts if no name)
muc stop # Stop currently playing sound
muc auto # Play all sounds randomly (use --sequential for alphabetical order)
# Volume control
muc volume # Show current volume
muc volume 0.5 # Set volume to 50% (0.0 to 1.0)
# Hotkey control
muc hotkeys # Show hotkey bindings (F1-F10)
muc listen # Start hotkey listener (press ESC to stop)
# Interactive mode
muc interactive # Launch full interactive menu
# Help
muc --help # Show all commands
Quick Workflow
-
First time setup:
muc setup -
Check your sounds:
muc sounds -
Test a sound:
muc play rickroll
-
Start gaming with hotkeys:
muc listen- Press F1-F10 to play sounds
- Press ESC to stop
Hotkey Bindings
The first 10 sounds (alphabetically) are automatically mapped to:
- F1 โ First sound
- F2 โ Second sound
- F3 โ Third sound
- ... through F10
View bindings:
muc hotkeys
Interactive Menu Mode
For a full-featured text menu:
muc interactive
Menu options:
- List all sounds
- Play sound by name
- View hotkey bindings
- Start hotkey listener
- Stop current sound
- List audio devices
- Change output device
- Adjust volume
- Auto-play all sounds
- Exit
๐ต Audio File Management
Supported Formats
- WAV - Best quality, larger files
- MP3 - Good quality, smaller files
- OGG - Good quality, open format
- FLAC - Lossless quality, large files
- M4A - Apple format
Directory Organization
sounds/
โโโ music/
โ โโโ song1.mp3
โ โโโ song2.mp3
โโโ effects/
โ โโโ airhorn.wav
โ โโโ explosion.wav
โโโ memes/
โ โโโ rickroll.mp3
โโโ random_sound.mp3
The app recursively scans all subdirectories.
Recommendations
- Sample Rate: 48000 Hz
- Bit Depth: 16-bit (WAV)
- Bitrate: 192-320 kbps (MP3)
- Length: Under 30 seconds for best performance
- Volume: Normalize audio to -3dB to prevent clipping
- Naming: Use descriptive names without special characters
Getting Audio Files
# Download from YouTube (uses yt-dlp if installed)
yt-dlp -x --audio-format wav "https://youtube.com/watch?v=..."
# The file will be saved in your current directory
# Then move it to sounds/
๐ง Configuration
Configuration is automatically saved to ~/.muc/config.json:
{
"output_device_id": 6,
"sounds_dir": "C:/path/to/muc/sounds",
"volume": 1.0
}
You can manually edit this file or reconfigure using:
muc setup
๐ฏ Gaming Tips
-
Test First: Always test sounds before joining a match
muc play test-sound
-
Volume Control:
- Use
muc volume 0.5to set soundboard volume to 50% - Use audio editing software to normalize clips
- Set in-game voice volume appropriately
- Use
-
Quick Access:
- Keep a terminal with
muc listenrunning - Alt-tab is instant with hotkeys
- Or use a second monitor
- Keep a terminal with
-
Push-to-Talk:
- If your game uses PTT, you'll need to hold it while playing sounds
- Or configure the game to use voice activation
-
Be Respectful:
- Don't spam sounds excessively
- Use appropriate audio in competitive matches
- Some communities have rules about soundboards
๐ Troubleshooting
"No virtual audio cable detected"
Solution: Install VB-Cable and restart your computer
muc setup # Run again after restart
"Teammates can't hear the audio"
Check:
- Game microphone set to
CABLE Outputโ - Soundboard output set to
CABLE Inputโ - Test with:
muc play test-sound
Fix:
muc devices # Verify device IDs
muc setup # Reconfigure if needed
"Audio plays on my speakers, not through mic"
Problem: Wrong output device selected
Solution:
muc devices # Find CABLE Input ID
muc setup # Select correct device
Remember: CABLE Input (not Output) for soundboard output!
"Hotkeys don't work"
Causes:
- Windows blocking global hotkeys
- Another app using same keys
- Listener not started
Solutions:
# Run as administrator (Windows)
# Or try interactive mode
muc interactive # Then select option 4
"Audio quality is poor"
Improve quality:
- Use WAV or high-bitrate MP3 files
- Match sample rate to your device (usually 48000 Hz)
- Normalize audio levels
- Check VB-Cable settings in Windows Sound Control Panel
"Configuration not saving"
Check: Permissions for ~/.muc/ directory
# Windows - check directory
ls ~\.muc
# If missing, create manually
mkdir ~\.muc
๐๏ธ Architecture
This project implements a clean software architecture:
โโโโโโโโโโโโโโโ
โ CLI Layer โ โ Rich-click commands (cli.py)
โโโโโโโโฌโโโโโโโ
โ
โโโโโโโโผโโโโโโโ
โ Config โ โ Settings management (config.py)
โโโโโโโโฌโโโโโโโ
โ
โโโโโโโโผโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโ
โ Soundboard โ Audio Managerโ
โ (hotkeys, sounds) โ (devices, io)โ
โโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโ
โ โ
โโโโโโโโฌโโโโโโโโโโโโโโ
โผ
โโโโโโโโโโโโโโโโโโ
โ Audio Drivers โ
โ (sounddevice) โ
โโโโโโโโโฌโโโโโโโโโ
โผ
Virtual Audio Device
(VB-Cable, etc.)
Flow:
- User runs command โ CLI parses โ Config loads settings
- Soundboard scans sounds โ Sets up hotkeys
- User presses F1 โ Hotkey handler triggered
- Audio Manager loads file โ Outputs to virtual device
- Game reads from virtual device โ Teammates hear sound
๐ Project Structure
muc/
โโโ src/
โ โโโ __init__.py # Package initialization
โ โโโ cli.py # Rich-click CLI commands
โ โโโ config.py # Configuration management
โ โโโ audio_manager.py # Audio device & playback
โ โโโ soundboard.py # Sound library & hotkeys
โ โโโ main.py # Entry point
โโโ sounds/ # Audio files directory
โ โโโ README.md # Sound library guide
โโโ pyproject.toml # Project metadata & dependencies
โโโ README.md # This file
โโโ idea.md # Original design document
๐ค Contributing
This is a personal project, but contributions are welcome!
Ways to contribute:
- ๐ Report bugs or issues
- ๐ก Suggest new features
- ๐ต Share cool sound packs
- ๐ Improve documentation
- ๐ง Submit pull requests
โ๏ธ Legal & Ethics
Usage Guidelines:
- โ Personal use and education
- โ Private games with friends
- โ Harassment or abuse
- โ Circumventing game rules
- โ Competitive advantage in ranked games
Copyright:
- Ensure you have rights to audio files
- Respect copyright and fair use
- Don't distribute copyrighted content
Game ToS:
- Check your game's terms of service
- Some games prohibit audio injection
- Use responsibly to avoid bans
๐ License
This project is provided as-is for personal and educational use only. See LICENSE for details.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file muc-0.2.0.tar.gz.
File metadata
- Download URL: muc-0.2.0.tar.gz
- Upload date:
- Size: 39.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69f670fedae021e2c2cfc03afda6035e0269bf7df8f7537e69ee45b1a9347976
|
|
| MD5 |
ce6dde8d3f80d398fb4f7b37947d0254
|
|
| BLAKE2b-256 |
c9885442dc5498b6f1205a537b1fc72faee51da9460c11d3f48fe9980ae50596
|
Provenance
The following attestation bundles were made for muc-0.2.0.tar.gz:
Publisher:
python-publish.yml on Harshal6927/muc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
muc-0.2.0.tar.gz -
Subject digest:
69f670fedae021e2c2cfc03afda6035e0269bf7df8f7537e69ee45b1a9347976 - Sigstore transparency entry: 714075538
- Sigstore integration time:
-
Permalink:
Harshal6927/muc@c553ac66f133e7b56089993b16b5ed5c1bbaccea -
Branch / Tag:
refs/tags/0.2.0 - Owner: https://github.com/Harshal6927
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@c553ac66f133e7b56089993b16b5ed5c1bbaccea -
Trigger Event:
release
-
Statement type:
File details
Details for the file muc-0.2.0-py3-none-any.whl.
File metadata
- Download URL: muc-0.2.0-py3-none-any.whl
- Upload date:
- Size: 18.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b5a2b669b58fb401272fd6ac232156b9739a47f007ba1d612fe86b5877b92544
|
|
| MD5 |
3d6c813fc90ebb10bc16b9eabfa20d78
|
|
| BLAKE2b-256 |
d3b5b4f86734c12140c901bed29e1db2425219dbf5ee45697860686246c1d214
|
Provenance
The following attestation bundles were made for muc-0.2.0-py3-none-any.whl:
Publisher:
python-publish.yml on Harshal6927/muc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
muc-0.2.0-py3-none-any.whl -
Subject digest:
b5a2b669b58fb401272fd6ac232156b9739a47f007ba1d612fe86b5877b92544 - Sigstore transparency entry: 714075541
- Sigstore integration time:
-
Permalink:
Harshal6927/muc@c553ac66f133e7b56089993b16b5ed5c1bbaccea -
Branch / Tag:
refs/tags/0.2.0 - Owner: https://github.com/Harshal6927
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@c553ac66f133e7b56089993b16b5ed5c1bbaccea -
Trigger Event:
release
-
Statement type: