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];