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