A short while ago, I did a quick search for speech recognition implementation within UE4.
Since I came up empty, I decided to port PocketSphinx into a plugin.
Note: I am not a game developer, nor do I regularly code in C++
This is a rough WIP, and any advice would be appreciated.
To make use of the plugin, try the following:
- Copy Content and Plugins from GitHub - shanecolb/sphinx-ue4: A speech recognition plugin for Unreal Engine 4. This is essentially a port of Pocketsphinx, to be used within an Unreal Engine project. into your project folder.
- Startup the project, and emulate the blueprint from Screenshot2, for an actor of your choice.
Event Word Spoken is an event that is triggered when a detected word is spoken.
WordSpoken is a function which simply prints the text to the screen (as seen in Screenshot3)
**Note:**Ensure that a list of words you wish to recognise are added as an array to AddWords.
Otherwise, no words will be recognised.
False positives do occur, eg. speaking triangle will trigger translate in my example.
This is more than suitable for my needs.
Any feedback is appreciated.