Skip to content

语音命令若添加单个字的命令 导致系统重启 (AIS-2235) #171

@cjccjj

Description

@cjccjj

Checklist

  • Checked the issue tracker for similar issues to ensure this is not a duplicate
  • Read the documentation to confirm the issue is not addressed there and your configuration is set correctly
  • Tested with the latest version to ensure the issue hasn't been fixed

How often does this bug occurs?

always

Expected behavior

可添加

Actual behavior (suspected bug)

溢出重启

Error logs or terminal output

Steps to reproduce the behavior

通过api添加单个字的命令 例如 "yi"

Project release version

latest

System architecture

Intel/AMD 64-bit (modern PC, older Mac)

Operating system

Windows

Operating system version

windows 11

Shell

PowerShell

Additional context

esp_mn_commands_add(1, "yi");
esp_mn_commands_add(2, "er");
esp_mn_commands_update();

如上 添加只有一个汉字, 或者说一个音节的语音命令, 会溢出重启.

esp_mn_commands_add(1, "yi yi");
esp_mn_commands_add(2, "er er");
esp_mn_commands_update();

修改为多音节就可以正常添加和识别.

请问是否不支持单字, 或者说单音节的添加和识别? 我理解这样影响识别率, 但是文档没有提到有这样的限制.

我主要想把 一二三....九十, 百, 千, 万 这些作为单个命令录入, 并使用连续识别模式, 从而实现离线语音输入任意数字. 请问有没有办法实现?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions