SmartSpeechSdkWeb class
A web implementation of the SmartSpeechSdkPlatform of the SmartSpeechSdk plugin.
- Inheritance
-
- Object
- PlatformInterface
- SmartSpeechSdkPlatform
- SmartSpeechSdkWeb
Constructors
- SmartSpeechSdkWeb()
- Constructs a SmartSpeechSdkWeb
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
-
engineCancel(
) → Future< void> -
取消评测
inherited
-
engineCreate(
String cfg) → Future< void> -
创建引擎
inherited
-
engineDelete(
) → Future< void> -
销毁引擎
inherited
-
engineFeed(
Uint8List bytes, int length) → Future< void> -
inherited
-
engineGetDeviceId(
) → Future< String?> -
获取设备唯一id
inherited
-
engineGetSdkVersion(
) → Future< String> -
获取引擎sdk的版本号
inherited
-
engineSetAudioSavePath(
String savePath) → Future< void> -
设置当前评测的音频保存地址
inherited
-
engineSetAudioUrl(
bool audioUrl) → Future< void> -
设置是否保存audioUrl
inherited
-
engineSetClientData(
String clientData) → Future< void> -
设置客户端自定义参数,只支持string 类型
inherited
-
engineSetConnectTimeout(
int connectTimeout) → Future< void> -
设置评测的连接超时时间,只设置一次即可
inherited
-
engineSetConnti(
int connti) → Future< void> -
设置评测 是否开启连读和失爆检测,默认为0,只针对英文
inherited
-
engineSetLangType(
LangType langType) → Future< void> -
设置当前评测的语种信息
inherited
-
engineSetLooseness(
int looseness) → Future< void> -
设置评测的 评分宽松度,聚会范围为0-9,默认为为4
inherited
-
engineSetMaxPrefixSilence(
int prefixSilence) → Future< void> -
设置评测 的前置静音时间,单位秒,默认为0 ,不开启静音检测
inherited
-
engineSetMaxPrefixSilenceMs(
int prefixSilenceMs) → Future< void> -
设置评测 的前置静音时间,单位毫秒,默认为0 ,不开启静音检测,优先级大于 maxPrefixSilence
inherited
-
engineSetMaxSuffixSilence(
int suffixSilence) → Future< void> -
设置评测 的后置静音时间, 单位秒,默认为0 ,不开启静音检测
inherited
-
engineSetMaxSuffixSilenceMs(
int suffixSilenceMs) → Future< void> -
设置评测 的后置静音时间, 单位毫秒,默认为0 ,不开启静音检测,优先级大于 maxSuffixSilence
inherited
-
engineSetMini(
int mini) → Future< void> -
设置评测返回的结果是否只有简单数据(总分、流利度、完整度、准确度等)
inherited
-
engineSetModePath(
double modePath) → Future< void> -
设置离线资源的存储目录,需要在初使化前设置,将将资源包提前放于此目录下
inherited
-
engineSetOnline(
bool online) → Future< void> -
设置使用在线或者离线引擎
inherited
-
engineSetParamsJson(
String paramsJson) → Future< void> -
设置评测需要传的参数(文本类的参数,非公共参数)
inherited
-
engineSetPrecision(
String precision) → Future< void> -
设置评分精度,默认为0,只支持0、0.1、0.25、0.5、1,如果设置的值不是这五个中的一个,则按0处理
inherited
-
engineSetRatio(
double ratio) → Future< void> -
设置评测的 拉升系数,取值范围为0.8-1.5,默认为1.0
inherited
-
engineSetRealtime(
bool realTime) → Future< void> -
设置评测 是否实时返回结果
仅支持中/英文 sentence、chapter、freedom、recite 题型,以及中文 poem 题型
inherited
-
engineSetResponseTimeout(
int responseTime) → Future< void> -
设置评测的响应超时时间,只设置一次即可
inherited
-
engineSetSampleRate(
int sampleRate) → Future< void> -
设置当前评测的采样率信息
inherited
-
engineSetSaveAudio(
bool saveAudio) → Future< void> -
设置当前评测是否保存音标信息
inherited
-
engineSetScale(
int scale) → Future< void> -
设置评测的分制(0-100],只用设置一次即可
inherited
-
engineSetServerAPI(
String serverAPI) → Future< void> -
设置评测的域名信息,必须在engineCreate前调用,非私有化部署可以不用设置
inherited
-
engineSetUserId(
String userId) → Future< void> -
设置评测的用户信息,只设置一次即可,一般是在初初使化的时候设置
inherited
-
engineStart(
) → Future< void> -
开始评测,录音数据由业务传入
inherited
-
engineStartFile(
String wavPath) → Future< void> -
开始评测,录音由sdk 实现
inherited
-
engineStartRecorder(
) → Future< void> -
开始评测,录音由sdk 实现
inherited
-
engineStop(
) → Future< void> -
结束评测
inherited
-
getChannel(
) → MethodChannel -
inherited
-
getPlatformOS(
) → Future< String?> -
inherited
-
getPlatformVersion(
) → Future< String?> -
Returns a String containing the version of the platform.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
registerWith(
Registrar registrar) → void