> For the complete documentation index, see [llms.txt](https://docs.convai.com/api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/unreal-engine/mac-microphone-permission-required-for-ue-5.0-and-5.3.md).

# Mac 麦克风权限：UE 5.0 和 5.3 必需

## 编辑器麦克风 **权限设置**

1. 临时禁用 SIP - 请按照中提供的说明操作 [禁用和启用 SIP](https://developer.apple.com/documentation/security/disabling_and_enabling_system_integrity_protection) 指南 - 注意：请确保运行命令 `csrutil disable` 在终端中。
2. 克隆 tccutil 仓库 - 打开终端，并输入以下命令以克隆仓库：\
   `git clone https://github.com/DocSystem/tccutil`
3. 通过输入以下命令切换到 tccutil 目录 `cd tccutil` 到终端中。
4. 确保 [Python 已安装](https://www.dataquest.io/blog/installing-python-on-mac/) 在你的系统上。请在终端中运行 tccutil 命令，以允许 Unreal Engine 访问麦克风：\
   `sudo python3 tccutil.py -e -id com.epicgames.UnrealEditor --microphone --enable`
5. 重新启用 SIP 在修改完成后， [按照同样的指南](https://developer.apple.com/documentation/security/disabling_and_enabling_system_integrity_protection) 重新启用系统完整性保护，但这次运行命令 `csrutil enable`.

## 使用 Convai 打包应用程序（MacOS 14.x 不需要）

在打包游戏后，如果你注意到任何崩溃或麦克风无法工作，请继续执行以下步骤

1. 找到 `Info.plist` 文件位于打包后的游戏目录中。通常可以通过右键单击该包，选择“显示包内容”，并编辑 `/Contents/Mac/Info.plist`.
2. 添加以下条目以请求麦克风访问权限：

```xml
<key>NSMicrophoneUsageDescription</key>
<string>你的自定义消息，用于说明 Convai 为什么需要麦克风访问权限</string>
```

<figure><img src="/files/e0e47f43e2b8196b25bb374709f6e5bec768e420" alt=""><figcaption><p>添加麦克风权限行后的 Info.plist 示例</p></figcaption></figure>

3. 将更改保存到 `Info.plist` 文件。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/unreal-engine/mac-microphone-permission-required-for-ue-5.0-and-5.3.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
