setting alipay wechat success appmanage dollor user cart order workorder logout left1 left2 app unfree free chart coupon note copy pencil price-tag database cog bin list link plus minus codepen 审核 cross table search user-tie eye github cancel-circle checkmark icon-upload icon-smartphon icon-auth-user icon-arroba-symbol icon-check-pass icon-red-cross icon-pwd-key icon-used icon-expired android appleinc tux windows8 java webAPI mail vip

iOS SDK初始化

这里介绍的是iOS API关于SDK初始化配置的相关说明,点击右侧目录可快速找到相应文件。

类IFlySpeechUtility

IFlySpeechUtility Class Reference

Inherits from
NSObject

Declared in
IFlySpeechUtility.h

简介

用户配置

方法

createUtility

创建用户语音配置

注册应用请前往讯飞开放平台

+ (IFlySpeechUtility *)createUtility:(NSString *)params

Parameters

  • params:启动参数,必须保证appid参数传入,示例:appid=123456

Return Value
语音配置对象

Declared In
IFlySpeechUtility.h

destroy

销毁用户配置对象

+ (BOOL)destroy

Return Value
成功返回YES,失败返回NO

Declared In
IFlySpeechUtility.h

getUtility

获取用户配置对象

+ (IFlySpeechUtility *)getUtility

Return Value
用户配置对象

Declared In
IFlySpeechUtility.h

setParameter:forKey:

设置MSC引擎的状态参数

- (BOOL)setParameter:(NSString *)value forKey:(NSString *)key

Parameters

  • value:参数值
  • key:参数名称

Return Value
成功返回YES,失败返回NO

Declared In
IFlySpeechUtility.h

parameterForKey:

获取MSC引擎状态参数

- (NSString *)parameterForKey:(NSString *)key

Parameters

  • key:参数名

Return Value
参数值

Declared In
IFlySpeechUtility.h

engineMode

引擎类型

@property (nonatomic, readonly) IFlyEngineMode engineMode

Declared In
IFlySpeechUtility.h

在这篇文章中: