sphinx-ue4A speech recognition plugin for Unreal Engine 4. This is essentially a port of Pocketsphinx, to be used within an Unreal Engine project.项目地址:https://gitcode.com/gh_mirrors/sp/sphinx-ue4
Sphinx-UE4 是一个用于 Unreal Engine 4 的语音识别插件,基于 Pocketsphinx 库。项目的目录结构如下:
sphinx-ue4/
├── Plugins/
│ └── SpeechRecognition/
│ ├── _other/
│ │ └── PocketSphinx/
│ └── ...
├── Binaries/
├── License.md
├── README.md
└── ...
Plugins/SpeechRecognition/
: 包含语音识别插件的核心代码和资源。
_other/PocketSphinx/
: 包含修改版的 Pocketsphinx 库。Binaries/
: 包含编译后的二进制文件。License.md
: 项目的许可证文件。README.md
: 项目的介绍和使用说明。项目的启动文件主要是 Plugins/SpeechRecognition/Source/SpeechRecognition/SpeechRecognition.uplugin
,这是一个 Unreal Engine 插件描述文件,包含了插件的基本信息和依赖关系。
{
"FileVersion": 3,
"Version": 1,
"VersionName": "1.0",
"FriendlyName": "Speech Recognition",
"Description": "A speech recognition plugin for Unreal Engine 4",
"Category": "Other",
"CreatedBy": "Shane Colbert",
"CreatedByURL": "",
"DocsURL": "",
"MarketplaceURL": "",
"SupportURL": "",
"CanContainContent": true,
"IsBetaVersion": false,
"IsExperimentalVersion": false,
"Installed": false,
"Modules": [
{
"Name": "SpeechRecognition",
"Type": "Runtime",
"LoadingPhase": "Default",
"WhitelistPlatforms": []
}
]
}
项目的配置文件主要是 Plugins/SpeechRecognition/Config/DefaultSpeechRecognition.ini
,这个文件包含了插件的配置参数。
[SpeechRecognition]
; 设置识别模式(关键词/语法)
RecognitionMode=Keyword
; 设置识别的关键词
Keywords=["open browser", "close browser"]
; 其他配置参数
...
这个配置文件允许用户设置识别模式和关键词,以及其他相关的配置参数。
以上是 Sphinx-UE4 项目的目录结构、启动文件和配置文件的介绍。希望这份教程能帮助你更好地理解和使用这个开源项目。
sphinx-ue4A speech recognition plugin for Unreal Engine 4. This is essentially a port of Pocketsphinx, to be used within an Unreal Engine project.项目地址:https://gitcode.com/gh_mirrors/sp/sphinx-ue4