🎡 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.

Libraries

realtime_audio