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