Basically we wanted to capture all the voice conversation between customer and agent in text format for every conversation
I have done the integration with Asterisk and Google Speach-to-Text using UniMRCP . I’m successfully able to capture customer side speech only but I wanted to captured agent’s conversation too.
Sample dialplan 1:
[google]
exten => s,1,Answer()
exten => s,2,Originate(SIP/101,exten,google,s,3)
exten => s,3,SpeechCreate()
exten => s,4,SpeechActivateGrammar(builtin:speech/transcribe)
exten => s,5,SpeechBackground(beep, 20)
exten => s,6,Verbose(1, “Recognition result count: ${SPEECH(results)}”)
exten => s,7,GotoIf(["{SPEECH(results)}" = “0”]?7:9)
exten => s,8,Playback(error)
exten => s,9,Goto(3)
exten => s,10,Verbose(1, “Recognition result: {SPEECH_TEXT(0)}, confidence score: {SPEECH_SCORE(0)}, grammar-uri: ${SPEECH_GRAMMAR(0)}”)
exten => s,11,SpeechDestroy()
By using the below dialplan I can only able to recognize the voice of the callee not able to recognize speech of the caller.
Sample Dialplan 2:
[testing]
exten => 1,1,NoOp()
same => n,Dial(SIP/${EXTEN}@telco,U(google^arg1))
same => n,Hangup()
[google]
exten => s,1,Answer()
exten => s,2,Noop(Hi…!)
exten => s,3,MRCPRecog(“builtin:speech/transcribe”, spl=en-US&f=beep&p=uni2)
exten => s,4,Verbose(Status is: {RECOGSTATUS} and result is: {RECOG_RESULT})
Can anyone suggest on this how I can achieve the requirement.