# Speech Recognition Plugin - Sphinx-UE4

**URL:** <https://forums.unrealengine.com/t/speech-recognition-plugin-sphinx-ue4/50375>\
**Category:** Plugins\
**Tags:** unreal-engine\
**Created:** [December 18, 2015, 3:37pm UTC](https://forums.unrealengine.com/t/speech-recognition-plugin-sphinx-ue4/50375 "2015-12-18T15:37:30Z")\
**Posts on this page:** 19\
**Page:** 5

<div class="post-metadata">

**Author:** ![anonymous\_user\_389e656c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_389e656c](https://forums.unrealengine.com/u/anonymous_user_389e656c)\
**Post date:** [November 30, 2016, 3:47pm UTC](https://forums.unrealengine.com/t/speech-recognition-plugin-sphinx-ue4/50375/81 "2016-11-30T15:47:59Z")

</div>

Great work! I’m interested too in the Android version of the plugin. Any update or ETA?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e1a50695](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e1a50695](https://forums.unrealengine.com/u/anonymous_user_e1a50695)\
**Post date:** [December 19, 2016, 4:01pm UTC](https://forums.unrealengine.com/t/speech-recognition-plugin-sphinx-ue4/50375/82 "2016-12-19T16:01:07Z")

</div>

I think the plugin is not working once you export the project, although it is loaded as showed in the log:  
“Loaded Plugin OVRLipSync”  
then, it will not work (not initialized), any fix for this?

---

<div class="post-metadata">

**Author:** ![Rhynedahll](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rhynedahll](https://forums.unrealengine.com/u/Rhynedahll)\
**Post date:** [February 7, 2017, 2:43pm UTC](https://forums.unrealengine.com/t/speech-recognition-plugin-sphinx-ue4/50375/83 "2017-02-07T14:43:42Z")

</div>

What sort of license does this have?

---

<div class="post-metadata">

**Author:** ![Dark\_Nuke](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dark\_Nuke](https://forums.unrealengine.com/u/Dark_Nuke)\
**Post date:** [April 18, 2017, 8:44pm UTC](https://forums.unrealengine.com/t/speech-recognition-plugin-sphinx-ue4/50375/84 "2017-04-18T20:44:11Z")

</div>

I have crash error when i exit project

Fatal error: [File:D:\Build++UE4+Release-4.15+Compile\Sync\Engine\Source\Runtime\Core\Private\GenericPlatform\GenericPlatformMemory.cpp] [Line: 160]  
Ran out of memory allocating 42949672940 bytes with alignment 0

KERNELBASE  
UE4Editor\_Core  
UE4Editor\_Core  
UE4Editor\_Core  
UE4Editor\_Core  
UE4Editor\_Core  
UE4Editor\_SpeechRecognition!TArray\<TScriptDelegate\<FWeakObjectPtr\>,FDefaultAllocator\>::ResizeForCopy() [d:\unreal engine\epic games\ue\_4.15\engine\source\runtime\core\public\containers\array.h:2281]  
UE4Editor\_SpeechRecognition!TMulticastScriptDelegate\<FWeakObjectPtr\>::TMulticastScriptDelegate\<FWeakObjectPtr\>()  
UE4Editor\_SpeechRecognition!ASpeechRecognitionActor::StartedSpeaking\_method() [d:\My\_Project\plugins\speechrecognition\source\speechrecognition\private\speechrecognitionactor.cpp:122]  
UE4Editor\_SpeechRecognition!FSpeechRecognitionWorker::Run() [d:\My\_Project\plugins\speechrecognition\source\speechrecognition\private\speechrecognitionworker.cpp:488]  
UE4Editor\_Core  
UE4Editor\_Core  
kernel32  
ntdll

But if i not INIT Speech, exit without error.

---

<div class="post-metadata">

**Author:** ![Dark\_Nuke](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dark\_Nuke](https://forums.unrealengine.com/u/Dark_Nuke)\
**Post date:** [April 18, 2017, 8:46pm UTC](https://forums.unrealengine.com/t/speech-recognition-plugin-sphinx-ue4/50375/85 "2017-04-18T20:46:25Z")

</div>

When i press escape (to exit and close preview) i get error

Fatal error: [File:D:\Build++UE4+Release-4.15+Compile\Sync\Engine\Source\Runtime\Core\Private\GenericPlatform\GenericPlatformMemory.cpp] [Line: 160]  
Ran out of memory allocating 42949672940 bytes with alignment 0

KERNELBASE  
UE4Editor\_Core  
UE4Editor\_Core  
UE4Editor\_Core  
UE4Editor\_Core  
UE4Editor\_Core  
UE4Editor\_SpeechRecognition!TArray\<TScriptDelegate\<FWeakObjectPtr\>,FDefaultAllocator\>::ResizeForCopy() [d:\unreal engine\epic games\ue\_4.15\engine\source\runtime\core\public\containers\array.h:2281]  
UE4Editor\_SpeechRecognition!TMulticastScriptDelegate\<FWeakObjectPtr\>::TMulticastScriptDelegate\<FWeakObjectPtr\>()  
UE4Editor\_SpeechRecognition!ASpeechRecognitionActor::UnknownPhrase\_method() [d:\my\_project\plugins\speechrecognition\source\speechrecognition\private\speechrecognitionactor.cpp:106]  
UE4Editor\_SpeechRecognition!FSpeechRecognitionWorker::Run() [d:\my\_project\plugins\speechrecognition\source\speechrecognition\private\speechrecognitionworker.cpp:561]  
UE4Editor\_Core  
UE4Editor\_Core  
kernel32  
ntdll

---

<div class="post-metadata">

**Author:** ![6r0m](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/6r0m/32/1194563_2.png) [@6r0m](https://forums.unrealengine.com/u/6r0m)\
**Post date:** [May 9, 2017, 10:56am UTC](https://forums.unrealengine.com/t/speech-recognition-plugin-sphinx-ue4/50375/86 "2017-05-09T10:56:05Z")

</div>

Hi, !

could you give some instructions how to improve recognition a single phrases like “yes” or “no”, may be in cpp, please?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_8940c9d5](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8940c9d5](https://forums.unrealengine.com/u/anonymous_user_8940c9d5)\
**Post date:** [June 1, 2017, 8:01pm UTC](https://forums.unrealengine.com/t/speech-recognition-plugin-sphinx-ue4/50375/87 "2017-06-01T20:01:30Z")

</div>

Hello,  
Is this plugin still supported in the latest version of Unreal Engine?

---

<div class="post-metadata">

**Author:** ![Thoth\_FN](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Thoth\_FN](https://forums.unrealengine.com/u/Thoth_FN)\
**Post date:** [June 3, 2017, 7:45am UTC](https://forums.unrealengine.com/t/speech-recognition-plugin-sphinx-ue4/50375/88 "2017-06-03T07:45:01Z")

</div>

> [@coltenbrown129;718093](#):
>
> Hello,  
> Is this plugin still supported in the latest version of Unreal Engine?

Just compiled and tested on 4.16 and appears to be working for me - but I haven’t tried a packaged build yet.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_9056fb05](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_9056fb05](https://forums.unrealengine.com/u/anonymous_user_9056fb05)\
**Post date:** [November 2, 2017, 5:16pm UTC](https://forums.unrealengine.com/t/speech-recognition-plugin-sphinx-ue4/50375/89 "2017-11-02T17:16:35Z")

</div>

Any easy way to get the text of any speech without having to match keywords or predefined phrases? Maybe get the I know this can be inaccurate, but perfect sentences is not important for what I need this for. Manager-\>UnknownPhrase\_method(return the whatever phrase); ???

---

<div class="post-metadata">

**Author:** ![Antidamage](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/antidamage/32/918692_2.png) [@Antidamage](https://forums.unrealengine.com/u/Antidamage)\
**Post date:** [December 19, 2017, 10:04am UTC](https://forums.unrealengine.com/t/speech-recognition-plugin-sphinx-ue4/50375/90 "2017-12-19T10:04:59Z")

</div>

I’m having a problem with a grammar script.

```auto

#JSGF V1.0;

public <final_rule> = ( <s1> | <s2> | <s3> | <s4> | <s5> | <s6> ) <element> ( <f1> | <f2> | <f3> | <f4> | <f5> );

<s1> = <count> <shape>;
<s2> = <count> <direction>;
<s3> = <count> <direction> <shape>;
<s4> = <shape>;
<s5> = <direction>;
<s6> = <direction> <shape>;

<f1> = <range> <rate>;
<f2> = <range> <rate> <intent>;
<f3> = <range> <intent>;
<f4> = <intent>;
<f5> = <count>;

<element> = ( roth | mara | corda | ashti | kava | dolo | hana );
<shape> = ( vort | para | nama | haku | mado );
<direction> = ( chiya | kanto | vanti | bren );
<count> = ( mapa | haya );
<range> = ( juna | toda | wato );
<intent> = ( dema | cora | seto );
<rate> = ( gen | turb | rata );

```

Is anyone able to see what’s wrong with that? The words all exist in the dictionary and if I Enable Grammar Mode with the “numbers” script it starts fine. But if I use the script above I get “Speech recognition thread failed to start”.

Is there any way to debug this?

Edit: fixed it. I’ll share how I debugged it since it’s pretty non-obvious.

Even if you’re using grammar mode, switch to keyword mode and feed it all of your new words in a word list. Then comment all of your new words out in the .dict file using a semi-colon ;

After that, re-enable them one at a time and hit play. If it “fails to start utterance” then your syllables in the word you just uncommented are wrong. I kept getting caught out by G (should be JH), H (HH) and O (OW).

---

<div class="post-metadata">

**Author:** ![frostic](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@frostic](https://forums.unrealengine.com/u/frostic)\
**Post date:** [November 23, 2018, 12:43pm UTC](https://forums.unrealengine.com/t/speech-recognition-plugin-sphinx-ue4/50375/92 "2018-11-23T12:43:31Z")

</div>

why can’t i compile this? im getting this error

UATHelper: Packaging (HTML5): In file included from E:\WLS\_HELIX\AoAllowwishes\Plugins\SpeechRecognition\Source\SpeechRecognition\Public\SpeechRecognitionActor.h:4:  
UATHelper: Packaging (HTML5): E:\WLS\_HELIX\AoAllowwishes\Plugins\SpeechRecognition\Source\SpeechRecognition\Public/SpeechRecognitionWorker.h(3,10): fatal error: ‘sphinxbase/err.h’ file not found  
UATHelper: Packaging (HTML5): #include \<sphinxbase/err.h\>  
UATHelper: Packaging (HTML5): ^ ~~~~~~~~~~~~~~~~~  
UATHelper: Packaging (HTML5): 1 error generated.  
UATHelper: Packaging (HTML5): ERROR:root:compiler frontend failed to generate LLVM bitcode, halting

where can i get this file it is not in the folders?

---

<div class="post-metadata">

**Author:** ![NextWorldVR](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NextWorldVR](https://forums.unrealengine.com/u/NextWorldVR)\
**Post date:** [January 21, 2019, 1:29am UTC](https://forums.unrealengine.com/t/speech-recognition-plugin-sphinx-ue4/50375/93 "2019-01-21T01:29:02Z")

</div>

This works amazingly well in 4.18! THANK YOU Wow,. I have read the entire thread before I ask you for help, but:  
The once thing i cannot figure out how to do is to link an added phrase to a new Function (or Blueprint?)! I can see to add a phrase add a ‘+’ PIN to the ‘Make Array’ and I know there will be a corresponding Function. I already got it to play a Wav file as it does Start Game and nearly passed out when it worked! WOW WOW WOW…

any help greatly appreciated! THANK YOU!

_ **EDIT: I always find things on my own right after asking, it is the ‘WordsSpoke’ Function 🙂 And as I hoped there is another easy to understand array!** _

Although I still welcome any and all advice about optimizing recognition… Phrases like thank you do not seem to work even though I found ‘thank’, ‘you’ and ‘thankyou’ in the dict file!..

THANK YOU!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4b4317b0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4b4317b0](https://forums.unrealengine.com/u/anonymous_user_4b4317b0)\
**Post date:** [February 7, 2020, 10:33pm UTC](https://forums.unrealengine.com/t/speech-recognition-plugin-sphinx-ue4/50375/95 "2020-02-07T22:33:03Z")

</div>

> [@frostic](#):
>
> why can’t i compile this? im getting this error
> 
> UATHelper: Packaging (HTML5): In file included from E:\WLS\_HELIX\AoAllowwishes\Plugins\SpeechRecognition\Source\SpeechRecognition\Public\SpeechRecognitionActor.h:4:  
> UATHelper: Packaging (HTML5): E:\WLS\_HELIX\AoAllowwishes\Plugins\SpeechRecognition\Source\SpeechRecognition\Public/SpeechRecognitionWorker.h(3,10): fatal error: ‘sphinxbase/err.h’ file not found  
> UATHelper: Packaging (HTML5): #include \<sphinxbase/err.h\>  
> UATHelper: Packaging (HTML5): ^ ~~~~~~~~~~~~~~~~~  
> UATHelper: Packaging (HTML5): 1 error generated.  
> UATHelper: Packaging (HTML5): ERROR:root:compiler frontend failed to generate LLVM bitcode, halting
> 
> where can i get this file it is not in the folders?

same problem, have you solved it?

---

<div class="post-metadata">

**Author:** ![frostic](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@frostic](https://forums.unrealengine.com/u/frostic)\
**Post date:** [February 12, 2020, 3:21am UTC](https://forums.unrealengine.com/t/speech-recognition-plugin-sphinx-ue4/50375/96 "2020-02-12T03:21:18Z")

</div>

> [@anonymous\_user\_4b4317b0](#):
>
> same problem, have you solved it?

no fix for it. the guy has stopped suppoting his system. its unusable atm.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_d710d2ad](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d710d2ad](https://forums.unrealengine.com/u/anonymous_user_d710d2ad)\
**Post date:** [July 1, 2020, 5:02pm UTC](https://forums.unrealengine.com/t/speech-recognition-plugin-sphinx-ue4/50375/97 "2020-07-01T17:02:42Z")

</div>

What solutions have folk come up with. I would be keen to learn this software and help improve it. Is there a view to revitalise the project and grow it?

---

<div class="post-metadata">

**Author:** ![CHADALAK1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CHADALAK1](https://forums.unrealengine.com/u/CHADALAK1)\
**Post date:** [August 18, 2021, 12:26am UTC](https://forums.unrealengine.com/t/speech-recognition-plugin-sphinx-ue4/50375/98 "2021-08-18T00:26:30Z")

</div>

Hi All!

I wasn’t sure where to post on issues with this, but I made a post on another related thread.

[Related forum thread post.](https://forums.unrealengine.com/t/sphinx-ue4-speech-recognition-plugin-release-v1-0/69405/38)

I managed to get this to compile in 4.26, but I’m having issues with the SetConfigParam stuff not working.

---

<div class="post-metadata">

**Author:** ![CHADALAK1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CHADALAK1](https://forums.unrealengine.com/u/CHADALAK1)\
**Post date:** [August 18, 2021, 5:42am UTC](https://forums.unrealengine.com/t/speech-recognition-plugin-sphinx-ue4/50375/99 "2021-08-18T05:42:00Z")

</div>

> **[GitHub - CHADALAK1/sphinx-ue4: A speech recognition plugin for Unreal Engine...](https://github.com/CHADALAK1/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. - GitHub - CHADALAK1/sphinx-ue4: A speech recognition plugin...

Here’s a fork of a functional 4.26 version of sphinx UE4

---

<div class="post-metadata">

**Author:** ![wudilai](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@wudilai](https://forums.unrealengine.com/u/wudilai)\
**Post date:** [November 24, 2021, 6:41am UTC](https://forums.unrealengine.com/t/speech-recognition-plugin-sphinx-ue4/50375/100 "2021-11-24T06:41:28Z")

</div>

I have used it in UE4.24,becauce I can’t access GoogleDrive，so,if you need,just send Email to me([2876704397@qq.com](mailto:2876704397@qq.com)).

---

<div class="post-metadata">

**Author:** ![SkyeEden](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/skyeeden/32/1116094_2.png) [@SkyeEden](https://forums.unrealengine.com/u/SkyeEden)\
**Post date:** [March 16, 2022, 12:34pm UTC](https://forums.unrealengine.com/t/speech-recognition-plugin-sphinx-ue4/50375/101 "2022-03-16T12:34:12Z")

</div>



[Previous page](https://forums.unrealengine.com/t/speech-recognition-plugin-sphinx-ue4/50375.md?page=4)
