Hi everyone! I'd like to share audio-stream-player...
# feed
a
Hi everyone! I'd like to share audio-stream-player, an audio player built for voice AI on KMP. I'm using voice AI in some of my side projects and realized most media players still prefer URLs and files. So I built a low-latency audio player specifically designed for handling raw audio bytes. You feed it bytes as they arrive from your TTS/voice API:
Copy code
player.play()
player.feed(chunk) // as bytes arrive
player.endOfStream()
Audio starts playing as soon as the first chunk arrives: no pre-buffering delay, no decoding overhead. It recovers from underruns if the network stutters, and exposes playback state as a
StateFlow
. GitHub: github.com/adrianczuczka/audio-stream-player-kmp Maven Central:
implementation("com.adrianczuczka:audio-stream-player:0.1.0")
If you're thinking about including voice features in your projects, try it out. Any feedback is welcome!
🚀 4