WhisperRecorder class
Audio recorder with built-in permission handling for Whisper API integration
Constructors
Properties
- currentRecordingPath → String?
-
The path of the current recording (null if not recording)
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isRecording → bool
-
Whether the recorder is currently recording
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
cancelRecording(
) → Future< void> - Cancels the current recording and deletes the file
-
dispose(
) → Future< void> - Disposes of the recorder and cleans up resources
-
getAmplitude(
) → Future< double?> - Gets the current amplitude of the recording (0.0 to 1.0)
-
hasPermission(
) → Future< bool> - Checks if microphone permission is granted
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pauseRecording(
) → Future< void> - Pauses the current recording (if supported by the platform)
-
requestPermission(
) → Future< bool> - Requests microphone permission
-
resumeRecording(
) → Future< void> - Resumes a paused recording (if supported by the platform)
-
startRecording(
{String? fileName, WhisperAudioQuality quality = WhisperAudioQuality.medium}) → Future< String> - Starts recording audio
-
stopRecording(
) → Future< File?> - Stops the current recording
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited