<div dir="ltr">Olas,<div><br></div><div> Também tentei: </div><div><br></div><div><div> p_channel.exec("Agi", "speech-recog.agi,pt-BR,2");</div></div><div><br></div><div> com o mesmo resultado.</div><div><br></div></div><div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br> <table style="border-top:1px solid #d3d4de">
        <tr>
<td style="width:55px;padding-top:18px"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&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&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank" style="color:#4453ea">www.avast.com</a>.                 </td>
        </tr>
</table>
<a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"></a></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 & Controle - Serviços Logann - T&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:23, Renato Santos <span dir="ltr"><<a href="mailto:renato473@gmail.com" target="_blank">renato473@gmail.com</a>></span> escreveu:<br><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="h5"><div>Em qui, 1 de fev de 2018 às 13:11, Nuno Cunha <<a href="mailto:nuno.cunha@engdb.com.br" target="_blank">nuno.cunha@engdb.com.br</a>> 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="h5"><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("Playback", "Fale o endereço!");</font></div><div><font face="monospace, monospace"> p_channel.exec("Agi", "speech-recog.agi", "pt-BR");</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 = "minha chave...";</div><div><br></div><div># Default language #</div><div>my $language = "pt-BR";</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 = "#";</div><div><br></div><div># Input audio sample rate #</div><div># Leave blank to auto-detect #</div><div>my $samplerate = "";</div><div><br></div><div># Profanity filter #</div><div>my $pro_filter = "false";</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("Playback", "Fale o endereço!");</div>
<div> p_channel.exec("Agi", "speech-recog.agi", "
<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>
", <font color="#ff0000">"2"</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_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 & Controle - Serviços Logann - T&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_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&utm_source=link&utm_campaign=sig-email&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&utm_source=link&utm_campaign=sig-email&utm_content=webmail" style="color:#4453ea" target="_blank">www.avast.com</a>.                 </td>
        </tr>
</tbody></table>
<a href="#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@<wbr>listas.asteriskbrasil.org</a></blockquote></div></div><span class="HOEnZb"><font color="#888888"><div dir="ltr">-- <br></div><div class="m_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">asteriskbrasil-unsubscribe@<wbr>listas.asteriskbrasil.org</a><br></blockquote></div><br></div>