NERtcAudioRecordingConfiguration class

音频录制配置

Constructors

NERtcAudioRecordingConfiguration({required String filePath, int? sampleRate = 32000, int? quality = 1, int? position = 0, int? cycleTime = 0})

Properties

cycleTime int?
录制过程中,循环缓存的最大时间长度,单位(s)。详细信息请参考NERtcAudioRecordingCycleTime
getter/setter pair
filePath String
录音文件在本地保存的绝对路径,需要精确到文件名及格式。例如:sdcard/xxx/audio.aac。请确保指定的路径存在并且可写。目前仅支持 WAV 或 AAC 文件格式
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
position int?
录音文件所包含的内容。详细信息请参考NERtcAudioRecordingPosition
getter/setter pair
quality int?
录音音质,只在 AAC 格式下有效。详细信息请参考NERtcAudioRecordingQuality
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sampleRate int?
录音采样率(Hz),可以设为 16000、32000(默认)、44100 或 48000
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited