SDK初始化
#类SpeechUtility
com.iflytek.cloud
java.lang.Object
com.iflytek.cloud.msc.module.SpeechInterface
com.iflytek.cloud.SpeechUtility
public class SpeechUtility
extends com.iflytek.cloud.msc.module.SpeechInterface
#SDK配置类简介
#嵌套类概要
从类继承的嵌套类/接口 com.iflytek.cloud.msc.module.SpeechInterface
com.iflytek.cloud.msc.module.SpeechInterface.ENGINE_MODE
#字段概要
限定符和类型 | 字段和说明 |
---|---|
static com.iflytek.cloud.msc.module.SpeechInterface.ENGINE_MODE | DEF_ENGINE_MODE 默认引擎模式 |
static java.lang.String | TAG_RESOURCE_CONTENT 本地资源信息JSON格式的字符串类型 |
static java.lang.String | TAG_RESOURCE_RESULT 本地资源信息JSON返回的result |
static java.lang.String | TAG_RESOURCE_RET 本地资源信息JSON返回的code |
#方法概要
限定符和类型 | 字段和说明 |
---|---|
static SpeechUtility | createUtility(android.content.Context context, java.lang.String params) 创建配置单例 创建配置单例,同时,也是初始化SDK的操作。 |
boolean | destroy() 销毁单例对象 通过本函数,销毁由createutility(android.content.Context, java.lang.String)创建的单例对象,同时也是逆初始化SDK。 |
java.lang.String | getComponentUrl() 直接获取组件下载地址 |
com.iflytek.cloud.msc.module.SpeechInterface.ENGINE_MODE | getEngineMode() 获得引擎选择模式 |
java.lang.String | getParameter(java.lang.String key) 获取MSC引擎的状态参数 |
static SpeechUtility | getUtility() 获取配置单例 通过函数获取已创建的单例对象。 |
int | openEngineSettings(java.lang.String engineName) 打开引擎设置下载页面 传入引擎名称,打开引擎设置。 |
java.lang.String[] | queryAvailableEngines() 查询本地组件支持的引擎列表 引擎列表:local.tts,cloud.tts,local.asr |
boolean | setParameter(java.lang.String key, java.lang.String value) 设置MSC引擎的状态参数 |
setParameter
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
#字段详细资料
#DEF_ENGINE_MODE
public static final com.iflytek.cloud.msc.module.SpeechInterface.ENGINE_MODE DEF_ENGINE_MODE
默认引擎模式
#TAG_RESOURCE_CONTENT
public static final java.lang.String TAG_RESOURCE_CONTENT
本地资源信息JSON格式的字符串类型
默认引擎模式
#TAG_RESOURCE_RET
public static final java.lang.String TAG_RESOURCE_RET
本地资源信息JSON返回的code
#TAG_RESOURCE_RESULT
public static final java.lang.String TAG_RESOURCE_RESULT
本地资源信息JSON返回的result
#方法详细资料
#createUtility
public static SpeechUtility createUtility(android.content.Context context,
java.lang.String params)
SpeechConstant.APPID,必须,如:12345678;
server_url,可选,如:http://dev.voicecloud.cn/msp.do;
SpeechConstant.LIB_NAME,可选,如:mylibname;
各参数间,以英文逗号分隔,如"appid=12345678,server_url=