rhythmic-plumber-379
10/09/2025, 10:33 AMtall-airline-16756
10/09/2025, 10:34 AMtall-airline-16756
10/09/2025, 10:34 AMcargo run -- \
--url "wss://your-project.livekit.cloud" \
--api-key "your-api-key" \
--api-secret "your-api-secret" \
--input-device "USB Microphone"
• Python SDK: The sounddevice library helps capture audio from either the default or a specified microphone. You can also enable echo cancellation and start streaming like this:
streamer = AudioStreamer(enable_aec=True)
streamer.start_audio_devices()
• Web and Mobile: LiveKit will prompt users for microphone permissions automatically in browsers. On mobile devices, just make sure microphone permissions are properly declared in your Info.plist or AndroidManifest.xml.
• Embedded Systems: If you're working with devices like Raspberry Pi, you can capture and stream audio using USB or I2S microphones.
If you have any questions or need help with a specific platform, please don’t hesitate to reach out—I’m here to help!
Sources: examples/local_audio/README.md | stream_audio.py | docs/index.yaml | Camera & microphone | LiveKit Docs | Understanding "silence detected on local audio track" warningrhythmic-plumber-379
10/09/2025, 10:36 AMtall-airline-16756
10/09/2025, 10:36 AMsounddevice library to handle audio I/O and automatically detects your audio devices. Configuration is done through a .env file where you add your LIVEKIT_URL, API credentials, and room name. You run the script with uv run stream_audio.py. The terminal UI shows connection stats, audio levels, and participant info, and lets you set your participant name, disable AEC, or enable debug logging.
One important tip: both examples work best with headphones to avoid audio feedback and ensure the best sound quality. If you have any questions or would like help setting these up, just let me know—I’m here to help!
Sources: stream_audio.py | README.md