realtime_audio 0.0.6 copy "realtime_audio: ^0.0.6" to clipboard
realtime_audio: ^0.0.6 copied to clipboard

Audio package to handle streaming chunk playback & recording to use with realtime APIs like OpenAI Realtime, HumeAI Voice and others.

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

4
likes
140
points
540
downloads

Publisher

verified publishervolskaya.dev

Weekly Downloads

Audio package to handle streaming chunk playback & recording to use with realtime APIs like OpenAI Realtime, HumeAI Voice and others.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

collection, flutter, freezed_annotation, json_annotation, uuid

More

Packages that depend on realtime_audio