DeviceSpeech class
A class that handles audio streaming from the device's microphone.
This class manages recording audio, streaming it in chunks, and controlling playback settings like volume and balance.
Constructors
Properties
- audioChunkPlayer → AudioChunkPlayer
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- numChannels ↔ int
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sampleRates ↔ int
-
getter/setter pair
Methods
-
addAudioChunk(
Uint8List chunk) → void - Adds an audio chunk to the audio player.
-
dispose(
) → void - Disposes of resources used by DeviceSpeech.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setBalance(
double balance) → Future< void> - Sets the balance of the audio player.
-
setVolume(
double volume) → Future< void> - Sets the volume of the audio player.
-
startStreamingAudio(
) → Future< void> - Starts streaming audio data from the microphone.
-
stopStreamingAudio(
) → Future< void> - Stops streaming audio data from the microphone.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited