ChatVoiceParam class

~english The voice file parameter class, which describes the format of the voice file to be converted to text. ~end

~chinese 语音文件参数类,用于描述待转文字的语音文件的格式。 ~end

Constructors

ChatVoiceParam({ChatVoiceFormat format = ChatVoiceFormat.pcm, int? sampleRate, int? bitsPerSample, int? channels})
~english Creates a voice file parameter. ~end
ChatVoiceParam.fromJson(Map map)
factory

Properties

bitsPerSample → int?
~english The number of bits per sample of the voice file. ~end
final
channels → int?
~english The number of channels of the voice file. ~end
final
format → ChatVoiceFormat
~english The format of the voice file. The default value is ChatVoiceFormat.pcm. ~end
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sampleRate → int?
~english The sample rate of the voice file, in Hz. ~end
final

Methods

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

Operators

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