Skip to content

[Bug] v1.3.8 macOS Apple 语音 ASR 报错,且未触发语音识别系统授权弹窗 #667

@phlips5437

Description

@phlips5437

问题描述 (Describe the bug)

在使用 OpenLess v1.3.8-tauri (macOS) 版本时,将 ASR 供应商设置为 Apple 语音 (macOS) 后,触发语音录入会直接报错,无法正常使用。

重现步骤 (To Reproduce)

  1. 在“设置 -> 服务 -> ASR 语音 (转写)”中,将供应商选择为 Apple 语音 (macOS)
  2. 触发全局录音快捷键进行语音输入。
  3. 此时并没有弹出 macOS 系统的“是否允许 OpenLess 访问语音识别”的权限弹窗,而是直接触发报错提示。

补充说明 (Additional context)

  1. 已经在终端中执行过 xattr -cr /Applications/OpenLess.app,排除了 Quarantine 标签导致的静默隔离。
  2. 检查了 系统设置 -> 隐私与安全性 -> 语音识别 列表,里面没有出现 OpenLess,说明系统级权限请求根本没有成功发起。
  3. 怀疑是在 macOS 版本打包时,Info.plist 中可能遗漏了 NSSpeechRecognitionUsageDescription 权限声明,或者是本地 ASR 引擎在触发授权弹窗的逻辑执行上存在问题,导致请求被 macOS 静默拦截。

运行环境 (Environment)

  • OS: macOS
  • OpenLess Version: v1.3.8-tauri (macOS)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions