mic_stream
0.7.2, released 2 years ago by an unverified publisher
Receive raw byte streams from a device's microphone.
Copyleft license
What it does
Provides an easy-to-use audio stream from the microphone of mobile and desktop devices. Audio data is returned as a raw PCM Stream of bytes or individual samples.
AI-written summary of version 0.7.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need raw PCM audio byte streams from the microphone.
- You are building custom audio analysis or recording features.
Skip it when
- You just want to playback audio files.
- You need stable 32-bit or floating-point PCM (currently experimental WIP).
Strengths
- Simple API centered around a single Stream method.
- Supports customizable sample rates, bit depths, and channel configurations.
Weaknesses
- Some configuration options are platform-dependent.
- Advanced formats like 32-bit and floating-point PCM are experimental.
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
Requires adding RECORD_AUDIO permission for Android, NSMicrophoneUsageDescription for iOS, and checking 'Audio Input' in macOS capabilities.
Stream<List<int>> stream = await MicStream.microphone(sampleRate: 44100);
StreamSubscription<List<int>> listener = stream.listen((samples) => print(samples));Alternatives
Packages that do the same job and could replace mic_stream.
Works with
Packages commonly used together with mic_stream: ones it builds on, ones built on it, and its own family.