SpeechToText class

Constructors

SpeechToText.initWithFetchedToken({Map fetchedToken})

Properties

appKey String
read / write
channel IOWebSocketChannel
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
token String
read / write

Methods

convert(Stream<List<int>> audioStream, {int sampleRate: 16000, String langCode: 'zh-CN', MODEL_TYPE modelType: MODEL_TYPE.DEFAULT, dynamic useEnhanced: false}) Stream<Map>
getStartPayload({int sampleRate: 16000}) String
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
patchStream(Stream<List<int>> inputStream, int chunkSize) Stream<List<int>>
toString() String
Returns a string representation of this object.
inherited

Operators

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

Constants

wsURL → const String
"wss://nls-gateway.cn-shanghai.aliyuncs.com/ws/v1"