ChatVoiceParam class

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

Constructors

ChatVoiceParam({ChatVoiceFormat format = ChatVoiceFormat.pcm, int? sampleRate, int? bitsPerSample, int? channels})
创建语音文件参数。
ChatVoiceParam.fromJson(Map map)
factory

Properties

bitsPerSample int?
语音文件的采样位数。
final
channels int?
语音文件的声道数。
final
format ChatVoiceFormat
语音文件格式,默认为 ChatVoiceFormat.pcm
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?
语音文件的采样率,单位为 Hz。
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