π΅ Realtime Audio
RealtimeAudio
is a Flutter package that handles audio recording and playback of data chunks from real-time sources, like OpenAI Realtime API or HumeAI Voice.
β¨ Features
- π€ Audio recording with variable chunk length in milliseconds.
- π Audio playback of data chunks.
- β±οΈ Duration tracking of audio chunks.
- π Necessary permission & audio session handling.
- βΈοΈ Pause support.
- ποΈ Voice processing on iOS.
π Usage
To use this package, add realtime_audio
as a dependency in your pubspec.yaml file.
After initializing the RealtimeAudio
object, you can start recording and playing audio chunks by calling start()
.
Audio will be played back in real-time, as soon as the first chunk is queued with queueChunk()
.
See the example project for a complete example.