I would like to understand more about how to apply the functions
Example:
exten=> _123,2,SpeechCreate(unimrcp)
exten=> _123,3,SpeechLoadGrammar(grammar,/usr/local/unimrcp/data/${ARG2}.xml)
exten=> _123,4,SpeechActivateGrammar(grammar)
exten=> _123,5,SpeechBackground(MYSOUND},2)
exten=> _123,6,Log(VERBOSE, RESULTS: ${SPEECH(results)} - TYPE: ${SPEECH_GRAMMAR(0)} - SCORE: ${SPEECH_SCORE(0)})
exten=> _123,7,SpeechDeactivateGrammar(grammar)
exten=> _123,8,SpeechUnloadGrammar(grammar)
exten=> _123,9,SpeechDestroy()
Questions:
1) Is it correct to do the following each time I want to process ASR or some of the functions as SpeechCreate should be at the beginning of the call and called upon hangup as SpeechDestroy?
2) When using UnloadGrammar this way the call is hangup with
SpeechUnloadGrammar("SIP/1000-00000026", "grammar") in new stack
[Jun 20 18:56:53] NOTICE[5520][C-0000003a]: res_speech_unimrcp.c:488 uni_recog_unload_grammar: (RSU-45) Unload grammar name: grammar
[Jun 20 18:56:53] WARNING[5520][C-0000003a]: res_speech_unimrcp.c:1185 uni_recog_mrcp_request_send: (RSU-45) MRCP request failed method-id: 2 status-code: 407
[Jun 20 18:56:53] WARNING[5520][C-0000003a]: res_speech_unimrcp.c:513 uni_recog_unload_grammar: (RSU-45) Failed to unload grammar
any advice?
thanks