title: Googl ASR integration using UniMRCP for two way communication
body: <p>I wanted to capture all the voice conversation between customer and agent in text format.</p>
  
  <p>I have done the integration with <strong>Asterisk</strong> and <strong>Google Speach-to-Text</strong> using <strong>UniMRCP</strong>. I'm successfully able to capture customer side speech only but I wanted to captured agent's conversation too.</p>
  
  <p>Sample dialplan:</p>
  
  <pre><code>exten =&gt; s,1,Answer()
  
  exten =&gt; s,2,Originate(SIP/101,exten,google,s,3)
  
  exten =&gt; s,3,SpeechCreate()
  
  exten =&gt; s,4,SpeechActivateGrammar(builtin:speech/transcribe)
  
  exten =&gt; s,5,SpeechBackground(beep, 20)
  
  exten =&gt; s,6,Verbose(1, "Recognition result count: ${SPEECH(results)}")
  
  exten =&gt; s,7,GotoIf($["${SPEECH(results)}" = "0"]?7:9)
  
  exten =&gt; s,8,Playback(error)
  
  exten =&gt; s,9,Goto(3)
  
  exten =&gt; s,10,Verbose(1, "Recognition result: ${SPEECH_TEXT(0)}, confidence score: ${SPEECH_SCORE(0)}, grammar-uri: ${SPEECH_GRAMMAR(0)}")
  
  exten =&gt; s,11,SpeechDestroy()
  </code></pre>
  
  <p>I want to save both parties communication in a text format need suggestion on dialplan part to achieve the same.</p>