DroneMind/voice_drone/config/wake_word.yaml
2026-04-14 09:54:26 +08:00

72 lines
1.7 KiB
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.

# 唤醒词配置
wake_word:
# 主唤醒词(标准形式)
primary: "无人机"
# 唤醒词变体映射(支持同音字、拼音、错别字等)
variants:
# 标准形式
- "无人机"
- "无 人 机" # 带空格
- "无人机,"
- "无人机 。"
- "无人机。"
- "喂 无人机"
- "喂,无人机"
- "嗨 无人机"
- "嘿 无人机"
- "哈喽 无人机"
# 常见误识别 / 近音
- "五人机"
- "吾人机"
- "无人鸡"
- "无认机"
- "无任机"
# 拼音变体(小写)
- "wu ren ji"
- "wurenj"
- "wu renji"
- "wuren ji"
- "wu ren, ji"
- "wu ren ji."
- "hey wu ren ji"
- "hi wu ren ji"
- "hello wu ren ji"
- "ok wu ren ji"
# 拼音变体(大小写混合)
- "Wu Ren Ji"
- "WU REN JI"
- "Wu ren ji"
- "Hey Wu Ren Ji"
- "Hi Wu Ren Ji"
# 短说 / 部分匹配(易与日常用语冲突时可删去「无人」单独一项)
- "无人"
# 勿单独使用「人机」:易在「牛人机学庭」等误识别里子串命中,导致假唤醒
- "hey 无人"
- "嗨 无人"
- "喂 无人"
# 匹配模式配置
matching:
# 是否启用模糊匹配(同音字、拼音)
enable_fuzzy: true
# 是否启用部分匹配(代码侧:主词长度足够时取前半段;短词依赖上面 variants
enable_partial: true
# 是否忽略大小写
ignore_case: true
# 是否忽略空格
ignore_spaces: true
# 最小匹配长度(字符数,用于部分匹配)
min_match_length: 2
# 相似度阈值0-1用于模糊匹配
similarity_threshold: 0.7