RecorderSettings class
Class to configure audio recording settings for Android and iOS.
Constructors
- RecorderSettings({AndroidEncoderSettings androidEncoderSettings = const AndroidEncoderSettings(), IosEncoderSetting iosEncoderSettings = const IosEncoderSetting(), int sampleRate = 44100, int bitRate = 128000})
-
Constructor for RecorderSettings.
const
Properties
- androidEncoderSettings → AndroidEncoderSettings
-
Encoder settings for Android devices.
final
- bitRate → int
-
Bit rate for encoding audio in bits per second (bps).
Higher values provide better quality but larger file sizes.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- iosEncoderSettings → IosEncoderSetting
-
Encoder settings for iOS devices.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sampleRate → int
-
Sampling rate for audio recording in Hertz (Hz).
Default is 44100 Hz.
final
Methods
-
androidToJson(
{String? path}) → Map< String, dynamic> - Converts the RecorderSettings instance to a JSON map for Android.
-
iosToJson(
{String? path, bool useLegacyNormalization = false, bool overrideAudioSession = true}) → Map< String, dynamic> - Converts the RecorderSettings instance to a JSON map for iOS.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited