You need to enable JavaScript to run this app.
导航
大模型流式识别SDK
最近更新时间:2024.09.30 13:36:15首次发布时间:2024.09.30 13:36:15

版本信息:

Android: com.bytedance.speechengine:speechengine_asr_tob:1.1.7
iOS: pod 'SpeechEngineAsrToB', '1.1.7'

接入指南:

Android:
集成指南:https://www.volcengine.com/docs/6561/113641
调用流程:https://www.volcengine.com/docs/6561/113642
仅有鉴权部分发生变化:

//【必需配置】识别服务域名,固定值
mSpeechEngine.setOptionString(SpeechEngineDefines.PARAMS_KEY_ASR_ADDRESS_STRING, "wss://openspeech.bytedance.com");
//【必需配置】识别服务Uri,参考大模型流式语音识别API--简介
mSpeechEngine.setOptionString(SpeechEngineDefines.PARAMS_KEY_ASR_URI_STRING, "/api/v3/sauc/bigmodel");
//【必需配置】鉴权相关:Appid,参考控制台使用FAQ--Q1
mSpeechEngine.setOptionString(SpeechEngineDefines.PARAMS_KEY_APP_ID_STRING, "YOUR APPKEY");
//【必需配置】鉴权相关:Token,无需添加Bearer; 前缀,参考控制台使用FAQ--Q1
mSpeechEngine.setOptionString(SpeechEngineDefines.PARAMS_KEY_APP_TOKEN_STRING, "YOUR ACCESS TOKEN");
//【必需配置】识别服务资源信息ResourceId,参考大模型流式语音识别API--鉴权
mSpeechEngine.setOptionString(SpeechEngineDefines.PARAMS_KEY_RESOURCE_ID_STRING, "YOUR RESOURCE ID");
//【必需配置】协议类型,大模型流式识别协议需设置为Seed,
mSpeechEngine.setOptionInt(SpeechEngineDefines.PARAMS_KEY_PROTOCOL_TYPE_INT, SpeechEngineDefines.PROTOCOL_TYPE_SEED);

iOS:
集成指南:https://www.volcengine.com/docs/6561/113643
调用流程:https://www.volcengine.com/docs/6561/113644
仅有鉴权部分发生变化:

//【必需配置】识别服务域名,固定值
[self.curEngine setStringParam:@"wss://openspeech.bytedance.com" forKey:SE_PARAMS_KEY_ASR_ADDRESS_STRING];
//【必需配置】识别服务Uri,参考大模型流式语音识别API--简介
[self.curEngine setStringParam:@"/api/v3/sauc/bigmodel" forKey:SE_PARAMS_KEY_ASR_URI_STRING];
//【必需配置】鉴权相关:Appid,参考控制台使用FAQ--Q1
[self.curEngine setStringParam:@"YOUR APPKEY" forKey:SE_PARAMS_KEY_APP_ID_STRING];
//【必需配置】鉴权相关:Token,无需添加Bearer; 前缀,参考控制台使用FAQ--Q1
[self.curEngine setStringParam:@"YOUR ACCESS TOKEN" forKey:SE_PARAMS_KEY_APP_TOKEN_STRING];
//【必需配置】识别服务资源信息ResourceId,参考大模型流式语音识别API--鉴权
[self.curEngine setStringParam:@"YOUR RESOURCE ID" forKey:SE_PARAMS_KEY_RESOURCE_ID_STRING];
//【必需配置】协议类型,BigAsr协议需设置为Seed
[self.curEngine setIntParam:SEProtocolTypeSeed forKey:SE_PARAMS_KEY_PROTOCOL_TYPE_INT];