> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vivix.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# 配置语音识别

`vivix-asr` 是 Streaming Avatar 的默认语音识别服务，针对低延迟转写进行了优化，可自动识别包括中文、英语、日语、韩语、法语和西班牙语在内的受支持语言。遇到口音较重或带有明显地域口音的说话者时，转写准确率可能下降。

## 切换语音识别服务商

如需使用 `vivix-asr`，请在[创建会话](https://docs.vivix.ai/cn/streaming-avatar/api-references/sessions/create.md)请求中省略 `pipeline_config.asr_config`，并保留会话所需的其他处理流程配置。

如果转写准确率比速度更重要，特别是用户带有较重或明显的地域口音时，可选择豆包语音识别服务。将以下配置加入已有的创建会话请求。只提供 `provider`，即可使用豆包的默认配置，包括轮次结束检测。

```json theme={null}
{
  "pipeline_config": {
    "asr_config": {
      "provider": "doubao"
    }
  }
}
```

如需指定豆包的识别语言，可在 `asr_config` 中添加 `language`，例如 `zh-CN` 或 `en-US`。如果只需识别英语，也可以将 `provider` 设为 `nova-3`，并可选地将 `language` 设为 `en`。

对于从[已保存角色](https://docs.vivix.ai/cn/streaming-avatar/api-references/characters)启动的会话，请在角色的 `pipeline_config` 中设置或省略 `asr_config`。

## 检查识别结果

创建新会话，测试用户可能说出的短句、姓名和口音。识别语言只作用于输入语音；回答语言请在 [Persona](https://docs.vivix.ai/cn/streaming-avatar/character/persona.md) 中设置。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.