Files
voicepaste/config.example.yaml
imbytecat 4120d6451e refactor: 简化热词配置为豆包控制台 ID
- 移除本地热词列表配置,改为直接使用豆包控制台的热词表 ID
- 删除 internal/asr/hotwords.go(不再需要本地解析)
- 简化 client.go 逻辑,直接传递 boosting_table_id
- 移除 protocol.go 中的 boosting_table_name 字段
- 更新配置示例,添加控制台链接说明

使用方法:
1. 在豆包控制台创建热词表:https://console.volcengine.com/speech/hotword
2. 复制热词表 ID 到 config.yaml 的 boosting_table_id 字段
2026-03-02 01:16:34 +08:00

19 lines
666 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# VoicePaste config
# Environment variables override these values (prefix: none, direct mapping)
# 火山引擎豆包 ASR 配置
doubao:
app_id: "" # env: DOUBAO_APP_ID
access_token: "" # env: DOUBAO_ACCESS_TOKEN
resource_id: "volc.seedasr.sauc.duration" # env: DOUBAO_RESOURCE_ID
boosting_table_id: "" # 可选:热词表 ID从控制台 https://console.volcengine.com/speech/hotword 创建)
# 服务配置
server:
port: 8443 # env: PORT
tls_auto: true # env: TLS_AUTO — 自动 TLS (AnyIP + 自签名降级)
# 安全配置
security:
token: "" # 留空则不需要认证;填写后访问需携带 token 参数