Azure
本文主要介绍如何在接口中配置 Azure STT。
Microsoft Azure Speech Services 提供企业级语音识别,支持 100+ 语言和变体。在可定制语音模型、关键词识别和合规部署方面表现突出。如果你已在 Azure 生态中,或需要广泛的多语言覆盖并要求企业级 SLA,Azure 是很好的选择。
使用方式
// json — STTConfig{"Language": "en","VadSilenceTime": 1000,"CustomParam": "{\"STTType\":\"azure\",\"SubscriptionKey\":\"<your_azure_subscription_key>\",\"Region\":\"eastus\"}"}
参数参考
STTConfig 字段
字段 | 类型 | 必填 | 说明 |
Language | String | 否 | |
VadSilenceTime | Integer | 否 |
CustomParam 字段
CustomParam 不属于标准 STTConfig 字段,仅在使用第三方 STT 引擎时需要,用于传递服务提供商的认证参数。字段 | 类型 | 必填 | 说明 |
STTType | String | 是 | 固定值: "azure"。 |
SubscriptionKey | String | 是 | |
Region | String | 是 |