Quick Start with Python
Your First Python Program
Here’s a complete example that transcribes an audio file:Live Microphone Transcription
For real-time transcription with updates as you speak:Voice Commands
Recognize voice commands using semantic matching:- “turn on the lights” → Matches perfectly
- “switch on the lights” → Also matches
- “lights on please” → Matches
- “illuminate the room” → Matches with lower confidence
Quick Start: Other Platforms
- iOS
- Android
- macOS
- Linux
- Windows
- Download the iOS examples
- Extract and open
Transcriber/Transcriber.xcodeprojin Xcode - Build and run on your device or simulator
Troubleshooting
No audio detected
No audio detected
- Check microphone permissions for your terminal/app
- Verify microphone is working with other apps
- Try adjusting VAD threshold:
Poor transcription quality
Poor transcription quality
- Use a higher quality model (SMALL_STREAMING or MEDIUM_STREAMING)
- Ensure audio is clear with minimal background noise
- Check audio format is mono PCM
- Enable debug logging:
Model download fails
Model download fails
- Check internet connection
- Ensure you have disk space (~100-500MB per model)
- Set custom cache location:
Next Steps
Installation guide
Detailed installation for all platforms
Python API
Complete API reference
Concepts
Understand how Moonshine works
Examples
Explore example projects