SmartSpeechSdk class

Constructors

SmartSpeechSdk()
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancel() Future<void>
create(String cfg, RecordScoreCallBack initEngineCallBack) → dynamic
创建引擎 参数cfg:引擎配置,json字符串(同ios或android端sdk)
destroy() Future<void>
销毁引擎 当应用程序不再需要使用评测引擎时,须销毁,否则引擎内部资源不会得到释放
feed(Uint8List bytes, int length) Future<void>
getDeviceId() Future<String?>
getPlatformOS() Future<String?>
getPlatformVersion() Future<String?>
getSdkVersion() Future<String>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setAudioSavePath(String savePath) Future<void>
setAudioUrl(bool audioUrl) Future<void>
setClientData(String clientData) Future<void>
setConnectTimeout(int connectTimeout) Future<void>
setConnti(int connti) Future<void>
setLangType(LangType langType) Future<void>
setLooseness(int looseness) Future<void>
setMaxPrefixSilence(int prefixSilence) Future<void>
setMaxPrefixSilenceMs(int prefixSilenceMs) Future<void>
setMaxSuffixSilence(int suffixSilence) Future<void>
setMaxSuffixSilenceMs(int suffixSilenceMs) Future<void>
setMini(int mini) Future<void>
setModePath(double modePath) Future<void>
setOnline(bool online) Future<void>
setParamsJson(String paramsJson) Future<void>
setPrecision(String precision) Future<void>
setRatio(double ratio) Future<void>
setRealtime(bool realTime) Future<void>
setResponseTimeout(int responseTime) Future<void>
setSampleRate(int sampleRate) Future<void>
setSaveAudio(bool saveAudio) Future<void>
setScale(int scale) Future<void>
setServerAPI(String serverAPI) Future<void>
setUserId(String userId) Future<void>
start() Future<void>
startFile(String wavPath) Future<void>
startRecorder() Future<void>
stop() Future<void>
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

methodChannel MethodChannel?
getter/setter pair