Speech-To-Text Configuration
请求示例
STTConfig
中支持隐藏参数 CustomParam
,可以参考以下示例来配置第三方 STT
:"STTConfig": {"Language": "zh","VadSilenceTime": 1200,"CustomParam": "{\"STTType\": \"azure\",\"SubscriptionKey\": \"xxxxx\",\"Region\": \"chinanorth3\"}",},}
支持的第三方 STT 配置
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\"}"