AudioRecordingConfiguration class
Recording configuration.
- Annotations
-
- @JsonSerializable.new(explicitToJson: true, includeIfNull: false)
Properties
- encode → bool?
-
Specifies whether to encode the audio data: true : Encode the audio data using AAC. false : (Default) Do not encode the audio data; save the raw recorded audio data directly.
final
- filePath → String?
-
The absolute path where the recording file is saved locally. Must include the file name and extension. For example: C:\music\audio.aac. Make sure the specified path exists and is writable.
final
- fileRecordingType → AudioFileRecordingType?
-
Recording content. See AudioFileRecordingType.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- quality → AudioRecordingQualityType?
-
Recording quality. See audiorecordingqualitytype. This parameter applies only to AAC files.
final
- recordingChannel → int?
-
The actual recorded audio channel depends on the captured audio channel:
If the captured audio is mono and recordingChannel is set to 2, the recorded audio will be stereo with duplicated mono data, not true stereo.
If the captured audio is stereo and recordingChannel is set to 1, the recorded audio will be mono with mixed stereo data. In addition, the integration scheme may affect the final recorded audio channel. If you want to record true stereo, please contact technical support for assistance. Number of audio channels to record. Supported values:
1: (Default) Mono.
2: Stereo.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sampleRate → int?
-
If you set this parameter to 44100 or 48000, to ensure recording quality, it is recommended to record in WAV format or use AAC files with quality set to audioRecordingQualityMedium or audioRecordingQualityHigh. Recording sample rate (Hz).
16000
32000 (default)
44100
48000
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited