Speech-To-Text Configuration
本文主要介绍如何在 开始 AI 对话任务 StartAIConversation 接口中配置第三方
STT。目前我们支持接入 Azure, Deepgram, Tencent 的 STT,如有其他需求,欢迎来咨询我们。请求示例
STTConfig 中支持隐藏参数 CustomParam,可以参考以下示例来配置第三方 STT:"STTConfig": {"Language": "zh","VadSilenceTime": 1200,"CustomParam": "{\"STTType\": \"azure\",\"SubscriptionKey\": \"xxxxx\",\"Region\": \"chinanorth3\"}",},}
支持的第三方 STT 配置
Tencent
STTConfig {Language: "16k_zh_en"CustomParam: "{"STTType":"tencent","AppId":"131991....","SecretId":"IK..","SecretKey":"7C..."}"VadSilenceTime: 1000}
Azure STT
{"STTType": "azure", // 必填:String STT类型"SubscriptionKey": "xxxxx", // 必填:String 订阅的Key"Region": "chinanorth3" // 必填:String 地区}
输入示例:
"CustomParam": "{\"STTType\": \"azure\", \"SubscriptionKey\": \"xxxxx\", \"Region\": \"chinanorth3\"}"
Deepgram STT
{"STTType": "deepgram", // 必填:String STT类型"ApiKey": "XXXXXX", // 必填:String 用来鉴权"Model" : "nova-2" // 必填:String 选择STT Model}
输入示例:
"CustomParam": "{\"STTType\": \"deepgram\", \"AppKey\": \"xxxxx\", \"Model\": \"nova-2\"}"