sound_stream
0.4.2, released a year ago by casperpas.dev
A Flutter plugin for streaming audio data from mic and to audio engine without using a file.
What it does
It allows streaming raw audio data from the microphone as Uint8List chunks and playing back raw audio streams via an audio engine. Recorder and player can work simultaneously.
AI-written summary of version 0.4.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to stream audio via a network connection
- You want to process microphone input with speech-to-text or text-to-speech functions
- You need to play raw PCM 16bit mono audio streams
Skip it when
- You need audio formats other than PCM 16bit Mono
- You are targeting platforms other than Android and iOS, such as Web, Windows, or macOS
- You just want to play back standard audio files easily without dealing with raw streams
Strengths
- Provides direct streams of mic data as Uint8List
- Supports simultaneous recording and playing
- Cross-platform support for Android and iOS
Weaknesses
- Only supports PCM 16bit Mono currently
- Limited platform support (Android and iOS only)
- Plugin is still in early development stage
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
Requires microphone permissions on Android and iOS.
// Not documentedAlternatives
Packages that do the same job and could replace sound_stream.
- audioplayers
If you want to play standard audio files and URLs rather than low-level raw streams.
87Compare - record
If you need a dedicated audio recorder supporting various formats and output configurations.
94Compare - just_audio
If you need feature-rich audio playback with playlist and streaming capabilities.
80Compare