Unable to get native voice recognition working

Hello,
I am trying to use the native voice recognition and I have activated the module in /etc/asterisk/modules.conf :

load => res_speech.so
[global]

But I got this error and the phone is Hanging Up at SpeechActivateGrammar:

[Feb 25 18:42:58] DEBUG[2865] chan_sip.c: Checking device state for peer 200
[Feb 25 18:42:58] DEBUG[2865] devicestate.c: Changing state for SIP/200 - state 1 (Not in use)
[Feb 25 18:42:58] DEBUG[2865] devicestate.c: device 'SIP/200' state '1'
[Feb 25 18:42:58] DEBUG[7063][C-0000005b] pbx.c: Launching 'Goto'
[Feb 25 18:42:58] DEBUG[7063][C-0000005b] pbx.c: Launching 'SpeechCreate'
[Feb 25 18:42:58] DEBUG[7063][C-0000005b] pbx.c: Launching 'SpeechActivateGrammar'
[Feb 25 18:42:58] DEBUG[7063][C-0000005b] pbx.c: Spawn extension (speech1,s,2) exited non-zero on 'SIP/200-0000004b'
[Feb 25 18:42:58] DEBUG[7063][C-0000005b] channel.c: Soft-Hanging up channel 'SIP/200-0000004b'

Here is the script /etc/asterisk/extensions.conf :

 [users]
exten => 8001,1,Goto(speech1,s,1)
[speech1]
exten => s,1,SpeechCreate()
exten => s,2,SpeechActivateGrammar(company-directory)
exten => s,3,SpeechStart()
exten => s,4,SpeechBackground(who-would-you-like-to-dial)
exten => s,5,SpeechDeactivateGrammar(company-directory)
exten => s,6,Goto(internal-extensions-${SPEECH_TEXT(0)})

The grammar file (I had to manually create the folder :

root@debian-voip:~# ls /etc/asterisk/grammars/
company-directory.gram

The grammar file :

#ABNF 1.0;
language en-US;
mode voice;
tag-format <lumenvox/1.0>;
root $company_directory;
$josh = ((Joshua | Josh) [Colp]):"6066";
$mark = (Mark [Spencer] | Markster):"4569";
$kevin = (Kevin [Fleming]):"2567";
$company_directory = ($josh | $mark | $kevin) { $ = $$ };

Could you please help me?

Thanks in advance

There is only an API defined in Asterisk for speech recognition, there is no default or included speech recognition engine.

Ok thanks.

Do you know one engine that is free and can work on a Debian and Raspbian ?
Thanks in advance

you may use pocketsphinx based on CMUsphinx speech recognition engine .

I use IBM speech for text as speech recognition.

Have similar issue where it hangs up at
> Launching Stasis(Sample Voice ServiceUxUGcC,4a97f6bc-1543-4d47-91a3-7a1235d4b56c) on SIP/janus23-0000042f
– Executing [s@dial-by-name:1] SpeechCreate(“SIP/janus23-0000042f”, “”) in new stack
– Executing [s@dial-by-name:2] SpeechActivateGrammar(“SIP/janus23-0000042f”, “/etc/asterisk/company-directory”) in new stack
== Spawn extension (dial-by-name, s, 2) exited non-zero on 'SIP/janus23-0000042f

is it still the issue with no default speech recognition engine.

could you please help me on this.