<div dir="ltr">Ola,<div><br></div><div>  Ou é só mudar a URL?<br><div><br></div><div><div>my %AGI;</div><div>my $format;</div><div>my @result;</div><div>my $silence;</div><div>my $results    = 1;</div><div>my $beep       = &quot;BEEP&quot;;</div><div>my $comp_level = -8;</div><div>my $ua_timeout = 30;</div><div>my $tmpdir     = &quot;/tmp&quot;;</div><div>my $url        = &quot;<a href="https://speech.googleapis.com/">https://speech.googleapis.com/</a><font color="#ff0000">v1</font>/speech&quot;;</div></div></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><br></div><div>----</div><div><table style="border-collapse:collapse;border-spacing:0px;background-color:transparent;color:rgb(102,102,102);font-family:Montserrat,sans-serif;font-size:13px;letter-spacing:0.1px"><tbody><tr><td style="padding:0px"><table style="border-collapse:collapse;border-spacing:0px;background-color:transparent;font-family:Montserrat,sans-serif;letter-spacing:0.1px"><tbody><tr><td style="padding:0px"><img src="http://assinatura.engdb.com.br/img/logo.png" style="border:0px;vertical-align:middle"></td><td style="padding:0px"><img src="http://assinatura.engdb.com.br/img/element.png" style="border:0px;vertical-align:middle"></td><td style="padding:0px"><div style="color:rgb(196,0,75);font-size:14px;line-height:14px;font-weight:bold">Nuno Correia dos Santos Cunha</div><br><div style="color:rgb(0,0,0);font-size:12px;line-height:12px">Analista de sistemas</div><div style="color:rgb(0,0,0);font-size:12px;line-height:12px;font-weight:bold">Automação &amp; Controle - Serviços Logann - T&amp;T</div></td><td style="padding:0px">                                </td><td style="padding:0px"><div style="color:rgb(0,47,85);font-weight:bold;font-size:12px;line-height:12px">Office:</div><div style="color:rgb(0,47,85);font-weight:bold;font-size:12px;line-height:12px">Skype:</div></td><td style="padding:0px">      </td><td style="padding:0px"><div style="font-size:12px;line-height:12px">(31) 3211-7396</div><div style="font-size:12px;line-height:12px">nuno.cunha.engdb</div></td></tr></tbody></table><table style="border-collapse:collapse;border-spacing:0px;background-color:transparent;font-family:Montserrat,sans-serif;letter-spacing:0.1px"><tbody><tr><td style="padding:0px"><img src="http://assinatura.engdb.com.br/img/element2.png" style="border:0px;vertical-align:middle"></td></tr></tbody></table><table style="border-collapse:collapse;border-spacing:0px;background-color:transparent;font-family:Montserrat,sans-serif;letter-spacing:0.1px"><tbody><tr><td style="padding:0px"><a href="http://www.engdb.com.br/" style="background-color:transparent;color:rgb(0,47,85)" target="_blank"><img src="http://assinatura.engdb.com.br/img/eng-icon.png" style="border:0px;vertical-align:middle"></a></td><td style="padding:0px"><a href="https://www.facebook.com/engdb/" style="background-color:transparent;color:rgb(0,47,85)" target="_blank"><img src="http://assinatura.engdb.com.br/img/face-icon.png" style="border:0px;vertical-align:middle"></a></td><td style="padding:0px"><a href="https://www.linkedin.com/company-beta/27862?pathWildcard=27862" style="background-color:transparent;color:rgb(0,47,85)" target="_blank"><img src="http://assinatura.engdb.com.br/img/in-icon.png" style="border:0px;vertical-align:middle"></a></td><td style="padding:0px"><a href="https://www.youtube.com/channel/UCEUvHtjrY3-kD1tFryzCJyA" style="background-color:transparent;color:rgb(0,47,85)" target="_blank"><img src="http://assinatura.engdb.com.br/img/youtube-icon.png" style="border:0px;vertical-align:middle"></a></td><td style="padding:0px">        </td><td style="padding:0px">Avenida Getúlio Vargas, nº 1.300, 9º e 10º andares | Belo Horizonte – MG | CEP 30112-021</td></tr></tbody></table></td><td style="padding:0px"></td><td style="padding:0px"></td><td style="padding:0px"></td><td style="padding:0px"></td><td style="padding:0px"></td><td style="padding:0px"></td></tr></tbody></table></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">Em 1 de fevereiro de 2018 14:48, Nuno Cunha <span dir="ltr">&lt;<a href="mailto:nuno.cunha@engdb.com.br" target="_blank">nuno.cunha@engdb.com.br</a>&gt;</span> escreveu:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Ola Renato,<div><br></div><div>  Peguei o arquivo speech-recog.agi em <a href="http://zaf.github.io/asterisk-speech-recog." target="_blank">http://zaf.github.io/<wbr>asterisk-speech-recog.</a>..</div><div><br></div><div>  Sabe a URL para pegar outra versão?</div><div><br></div><div>Att,</div><div><br></div></div><span class=""><div id="m_1787547361847829358DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br> <table style="border-top:1px solid #d3d4de">
        <tbody><tr>
      <td style="width:55px;padding-top:18px"><a href="https://www.avast.com/sig-email?utm_medium=email&amp;utm_source=link&amp;utm_campaign=sig-email&amp;utm_content=webmail" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif" alt="" width="46" height="29" style="width:46px;height:29px"></a></td>
                <td style="width:470px;padding-top:17px;color:#41424e;font-size:13px;font-family:Arial,Helvetica,sans-serif;line-height:18px">Livre de vírus. <a href="https://www.avast.com/sig-email?utm_medium=email&amp;utm_source=link&amp;utm_campaign=sig-email&amp;utm_content=webmail" style="color:#4453ea" target="_blank">www.avast.com</a>.                 </td>
        </tr>
</tbody></table>
<a href="#m_1787547361847829358_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"></a></div></span><div class="gmail_extra"><span class=""><br clear="all"><div><div class="m_1787547361847829358gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><br></div><div>----</div><div><table style="border-collapse:collapse;border-spacing:0px;background-color:transparent;color:rgb(102,102,102);font-family:Montserrat,sans-serif;font-size:13px;letter-spacing:0.1px"><tbody><tr><td style="padding:0px"><table style="border-collapse:collapse;border-spacing:0px;background-color:transparent;font-family:Montserrat,sans-serif;letter-spacing:0.1px"><tbody><tr><td style="padding:0px"><img src="http://assinatura.engdb.com.br/img/logo.png" style="border:0px;vertical-align:middle"></td><td style="padding:0px"><img src="http://assinatura.engdb.com.br/img/element.png" style="border:0px;vertical-align:middle"></td><td style="padding:0px"><div style="color:rgb(196,0,75);font-size:14px;line-height:14px;font-weight:bold">Nuno Correia dos Santos Cunha</div><br><div style="color:rgb(0,0,0);font-size:12px;line-height:12px">Analista de sistemas</div><div style="color:rgb(0,0,0);font-size:12px;line-height:12px;font-weight:bold">Automação &amp; Controle - Serviços Logann - T&amp;T</div></td><td style="padding:0px">                              <wbr>  </td><td style="padding:0px"><div style="color:rgb(0,47,85);font-weight:bold;font-size:12px;line-height:12px">Office:</div><div style="color:rgb(0,47,85);font-weight:bold;font-size:12px;line-height:12px">Skype:</div></td><td style="padding:0px">      </td><td style="padding:0px"><div style="font-size:12px;line-height:12px">(31) 3211-7396</div><div style="font-size:12px;line-height:12px">nuno.cunha.engdb</div></td></tr></tbody></table><table style="border-collapse:collapse;border-spacing:0px;background-color:transparent;font-family:Montserrat,sans-serif;letter-spacing:0.1px"><tbody><tr><td style="padding:0px"><img src="http://assinatura.engdb.com.br/img/element2.png" style="border:0px;vertical-align:middle"></td></tr></tbody></table><table style="border-collapse:collapse;border-spacing:0px;background-color:transparent;font-family:Montserrat,sans-serif;letter-spacing:0.1px"><tbody><tr><td style="padding:0px"><a href="http://www.engdb.com.br/" style="background-color:transparent;color:rgb(0,47,85)" target="_blank"><img src="http://assinatura.engdb.com.br/img/eng-icon.png" style="border:0px;vertical-align:middle"></a></td><td style="padding:0px"><a href="https://www.facebook.com/engdb/" style="background-color:transparent;color:rgb(0,47,85)" target="_blank"><img src="http://assinatura.engdb.com.br/img/face-icon.png" style="border:0px;vertical-align:middle"></a></td><td style="padding:0px"><a href="https://www.linkedin.com/company-beta/27862?pathWildcard=27862" style="background-color:transparent;color:rgb(0,47,85)" target="_blank"><img src="http://assinatura.engdb.com.br/img/in-icon.png" style="border:0px;vertical-align:middle"></a></td><td style="padding:0px"><a href="https://www.youtube.com/channel/UCEUvHtjrY3-kD1tFryzCJyA" style="background-color:transparent;color:rgb(0,47,85)" target="_blank"><img src="http://assinatura.engdb.com.br/img/youtube-icon.png" style="border:0px;vertical-align:middle"></a></td><td style="padding:0px">        </td><td style="padding:0px">Avenida Getúlio Vargas, nº 1.300, 9º e 10º andares | Belo Horizonte – MG | CEP 30112-021</td></tr></tbody></table></td><td style="padding:0px"></td><td style="padding:0px"></td><td style="padding:0px"></td><td style="padding:0px"></td><td style="padding:0px"></td><td style="padding:0px"></td></tr></tbody></table></div></div></div></div></div></div></div></div></div></div>
<br></span><div class="gmail_quote"><span class="">Em 1 de fevereiro de 2018 14:23, Renato Santos <span dir="ltr">&lt;<a href="mailto:renato473@gmail.com" target="_blank">renato473@gmail.com</a>&gt;</span> escreveu:<br></span><div><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div dir="auto">Acho que está api foi descontinuada pois ela está na V1 e o Google usa a V3</div><br><div class="gmail_quote"><div><div class="m_1787547361847829358h5"><div>Em qui, 1 de fev de 2018 às 13:11, Nuno Cunha &lt;<a href="mailto:nuno.cunha@engdb.com.br" target="_blank">nuno.cunha@engdb.com.br</a>&gt; escreveu:<br></div></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_1787547361847829358h5"><div>Ola,<div><br></div><div>  Em meu AGI (fastAGI, em java) tenho estas duas linhas:</div><div><font face="monospace, monospace"><br></font></div><div><div><font face="monospace, monospace">            p_channel.exec(&quot;Playback&quot;, &quot;Fale o endereço!&quot;);</font></div><div><font face="monospace, monospace">            p_channel.exec(&quot;Agi&quot;, &quot;speech-recog.agi&quot;, &quot;pt-BR&quot;);</font></div><div><br></div><div><br></div><div>  O problema é que após ler a pergunta o tempo de fala parece estar sendo de zero segundos, mal começo a falar e já recebo a mensagem que o endereço não foi compreendido (que é a lógica logo a seguir a estas duas linhas).</div><div><br></div><div>  No script  

<span style="color:rgb(34,34,34);font-family:monospace,monospace;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">speech-recog.agi tenho as configurações:</span></div><div><span style="color:rgb(34,34,34);font-family:monospace,monospace;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br></span></div><div><span style="text-align:start;text-indent:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><font face="monospace, monospace"><div># ----------------------------- #</div><div>#   User defined parameters:    #</div><div># ----------------------------- #</div><div># Speech API key                #</div><div>my $key = &quot;minha chave...&quot;;</div><div><br></div><div># Default language              #</div><div>my $language = &quot;pt-BR&quot;;</div><div><br></div><div># Default max silence timeout   #</div><div>my $timeout = 2;</div><div><br></div><div># Absolute Recording timeout    #</div><div>my $abs_timeout = -1;</div><div><br></div><div># Default interrupt key         #</div><div>my $intkey = &quot;#&quot;;</div><div><br></div><div># Input audio sample rate       #</div><div># Leave blank to auto-detect    #</div><div>my $samplerate = &quot;&quot;;</div><div><br></div><div># Profanity filter              #</div><div>my $pro_filter = &quot;false&quot;;</div><div><br></div><div># Verbose debugging messages    #</div><div>my $debug = 0;</div><div><br></div><div># ----------------------------- #</div></font></span></div><div><br></div><div><br></div><div>  Testei colocando explicitamente na chamada do agi do Google o tempo de timeout, como mostrado abaixo, mas não mudou o comportamento.</div><div><br></div><div>

<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">            p_channel.exec(&quot;Playback&quot;, &quot;Fale o endereço!&quot;);</div>

<div>            p_channel.exec(&quot;Agi&quot;, &quot;speech-recog.agi&quot;, &quot;

<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">pt-BR</span>

&quot;, <font color="#ff0000">&quot;2&quot;</font>);</div></div><div><br></div><div>  Alguma ideia de como ter mais tempo para falar o endereço?</div><div><br></div><div>Obrigado,</div><div><br></div><div><div class="m_1787547361847829358m_3515590836011688728m_-8075362843129180750gmail_signature"><div><div><div><div><div><div><div><div><br></div><div>----</div><div><table style="border-collapse:collapse;background-color:transparent;color:rgb(102,102,102);font-family:Montserrat,sans-serif;font-size:13px;letter-spacing:0.1px"><tbody><tr><td style="padding:0px"><table style="border-collapse:collapse;background-color:transparent;font-family:Montserrat,sans-serif;letter-spacing:0.1px"><tbody><tr><td style="padding:0px"><img src="http://assinatura.engdb.com.br/img/logo.png" style="border:0px;vertical-align:middle"></td><td style="padding:0px"><img src="http://assinatura.engdb.com.br/img/element.png" style="border:0px;vertical-align:middle"></td><td style="padding:0px"><div style="color:rgb(196,0,75);font-size:14px;line-height:14px;font-weight:bold">Nuno Correia dos Santos Cunha</div><br><div style="color:rgb(0,0,0);font-size:12px;line-height:12px">Analista de sistemas</div><div style="color:rgb(0,0,0);font-size:12px;line-height:12px;font-weight:bold">Automação &amp; Controle - Serviços Logann - T&amp;T</div></td><td style="padding:0px">                              <wbr>  </td><td style="padding:0px"><div style="color:rgb(0,47,85);font-weight:bold;font-size:12px;line-height:12px">Office:</div><div style="color:rgb(0,47,85);font-weight:bold;font-size:12px;line-height:12px">Skype:</div></td><td style="padding:0px">      </td><td style="padding:0px"><div style="font-size:12px;line-height:12px">(31) 3211-7396</div><div style="font-size:12px;line-height:12px">nuno.cunha.engdb</div></td></tr></tbody></table><table style="border-collapse:collapse;background-color:transparent;font-family:Montserrat,sans-serif;letter-spacing:0.1px"><tbody><tr><td style="padding:0px"><img src="http://assinatura.engdb.com.br/img/element2.png" style="border:0px;vertical-align:middle"></td></tr></tbody></table><table style="border-collapse:collapse;background-color:transparent;font-family:Montserrat,sans-serif;letter-spacing:0.1px"><tbody><tr><td style="padding:0px"><a href="http://www.engdb.com.br/" style="background-color:transparent;color:rgb(0,47,85)" target="_blank"><img src="http://assinatura.engdb.com.br/img/eng-icon.png" style="border:0px;vertical-align:middle"></a></td><td style="padding:0px"><a href="https://www.facebook.com/engdb/" style="background-color:transparent;color:rgb(0,47,85)" target="_blank"><img src="http://assinatura.engdb.com.br/img/face-icon.png" style="border:0px;vertical-align:middle"></a></td><td style="padding:0px"><a href="https://www.linkedin.com/company-beta/27862?pathWildcard=27862" style="background-color:transparent;color:rgb(0,47,85)" target="_blank"><img src="http://assinatura.engdb.com.br/img/in-icon.png" style="border:0px;vertical-align:middle"></a></td><td style="padding:0px"><a href="https://www.youtube.com/channel/UCEUvHtjrY3-kD1tFryzCJyA" style="background-color:transparent;color:rgb(0,47,85)" target="_blank"><img src="http://assinatura.engdb.com.br/img/youtube-icon.png" style="border:0px;vertical-align:middle"></a></td><td style="padding:0px">        </td><td style="padding:0px">Avenida Getúlio Vargas, nº 1.300, 9º e 10º andares | Belo Horizonte – MG | CEP 30112-021</td></tr></tbody></table></td><td style="padding:0px"></td><td style="padding:0px"></td><td style="padding:0px"></td><td style="padding:0px"></td><td style="padding:0px"></td><td style="padding:0px"></td></tr></tbody></table></div></div></div></div></div></div></div></div></div></div>
</div></div><div id="m_1787547361847829358m_3515590836011688728m_-8075362843129180750DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br> <table style="border-top:1px solid #d3d4de">
        <tbody><tr>
      <td style="width:55px;padding-top:18px"><a href="https://www.avast.com/sig-email?utm_medium=email&amp;utm_source=link&amp;utm_campaign=sig-email&amp;utm_content=webmail" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif" alt="" width="46" height="29" style="width:46px;height:29px"></a></td>
                <td style="width:470px;padding-top:17px;color:#41424e;font-size:13px;font-family:Arial,Helvetica,sans-serif;line-height:18px">Livre de vírus. <a href="https://www.avast.com/sig-email?utm_medium=email&amp;utm_source=link&amp;utm_campaign=sig-email&amp;utm_content=webmail" style="color:#4453ea" target="_blank">www.avast.com</a>.                 </td>
        </tr>
</tbody></table>
<a href="#m_1787547361847829358_m_3515590836011688728_m_-8075362843129180750_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"></a></div></div></div>
______________________________<wbr>_________________<br>
KHOMP: completa linha de placas externas FXO, FXS, GSM e E1<br>
Media Gateways de 1 a 64 E1s para SIP com R2, ISDN e SS7<br>
Intercomunicador e acesso remoto via rede IP e telefones IP<br>
Conheça todo o portfólio em <a href="http://www.Khomp.com" rel="noreferrer" target="_blank">www.Khomp.com</a><br>
______________________________<wbr>_________________<br>
Para remover seu email desta lista, basta enviar um email em branco para <a href="mailto:asteriskbrasil-unsubscribe@listas.asteriskbrasil.org" target="_blank">asteriskbrasil-unsubscribe@lis<wbr>tas.asteriskbrasil.org</a></blockquote></div></div><span class="m_1787547361847829358HOEnZb"><font color="#888888"><div dir="ltr">-- <br></div><div class="m_1787547361847829358m_3515590836011688728gmail_signature" data-smartmail="gmail_signature">Enviado do Gmail para celular</div>
</font></span><br>______________________________<wbr>_________________<br>
KHOMP: completa linha de placas externas FXO, FXS, GSM e E1<br>
Media Gateways de 1 a 64 E1s para SIP com R2, ISDN e SS7<br>
Intercomunicador e acesso remoto via rede IP e telefones IP<br>
Conheça todo o portfólio em <a href="http://www.Khomp.com" rel="noreferrer" target="_blank">www.Khomp.com</a><br>
______________________________<wbr>_________________<br>
Para remover seu email desta lista, basta enviar um email em branco para <a href="mailto:asteriskbrasil-unsubscribe@listas.asteriskbrasil.org" target="_blank">asteriskbrasil-unsubscribe@lis<wbr>tas.asteriskbrasil.org</a><br></blockquote></div></div></div><br></div>
</blockquote></div><br></div>