<div dir="ltr">Hi Dmitry and Tim (and everyone else with input into this thread)<div><br></div><div>Just wanted to thank you all; with your guidance, I've managed to bolt something very clean and efficient together using Dmity and Tim's templates, piped into the ding-dong npm node package, which calls Google Speech API node package.</div><div><br></div><div>What I particularly like about DingDong is that it's well documented insofar as it's so simple, it barely needs documentation!</div><div><br></div><div>Once I've finished experimenting in a day or two, I'll stick a Gist up with everything together.</div><div><br></div><div>Once again, many, many thanks.</div><div><br></div><div>Refs:</div><div><a href="https://github.com/antirek/ding-dong">https://github.com/antirek/ding-dong</a><br></div><div><a href="https://github.com/googleapis/nodejs-speech">https://github.com/googleapis/nodejs-speech</a><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 21 January 2018 at 08:30, Dmitriy Serov <span dir="ltr"><<a href="mailto:serov.d.p@gmail.com" target="_blank">serov.d.p@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello.<br>
<br>
A little sub from my dialplan:<br>
<br>
[sub-Read]<br>
exten => s,1,NoOp(Read)<br>
same => n,Set(LOCAL(tmp_record_file)=/<wbr>tmp/asterisk-in/${EPOCH})<br>
same => n,Monitor(wav16,${tmp_record_f<wbr>ile},o)<br>
same => n,Read(tmp_ext,${ARG2},${ARG3}<wbr>,${ARG4},${ARG5},${ARG6})<br>
same => n,StopMonitor()<br>
same => n,NoOp(ReadStatus=${READSTATUS<wbr>})<br>
same => n,Gotoif($[ ${LEN(${tmp_ext})} > 0 ]?end)<br>
same => n,AGI(agi-ruvoip-net.php,speed<wbr>dial-voice,${ARG1},${tmp_recor<wbr>d_file}-in.wav16)<br>
same => n,NoOp(Voice recognition result: "${agi_result}")<br>
same => n,Gotoif($[ "${agi_result}" != "found" ]?end)<br>
same => n,Return(${agi_call_exten})<br>
same => n(end),return(${tmp_ext})<br>
<br>
<br>
21.01.2018 2:57, Jonathan H пишет:<div class="HOEnZb"><div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 20 January 2018 at 23:30, Tim S <<a href="mailto:tim.strommen@gmail.com" target="_blank">tim.strommen@gmail.com</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I have seen this take over 2 seconds before on a sluggish machine.<br>
</blockquote>
Thanks - my host uses SSD and everything seems pretty quick, but I'll<br>
give it a 1 second pause.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
you'd need to pipe that to a Google Speech API tunnel.<br>
That's probably not something you can hack away at with simple<br>
Asterisk dialplan applications.<br>
</blockquote>
Funnily enough, I had just found an old reply from last year to<br>
another similar question:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
---------- Forwarded message ----------<br>
From: Matt Riddell<br>
Date: 22 September 2017 at 16:01<br>
Subject: Re: [asterisk-users] Asterisk 15, Jack, streams, speech recognition… so many questions!<br>
At least in older versions you can use EAGI to get a handle to the audio stream.<br>
</blockquote>
So I had a look and found this:<br>
<br>
<a href="https://stackoverflow.com/questions/34026698/asterisk-write-plugin-to-catch-voice-stream" rel="noreferrer" target="_blank">https://stackoverflow.com/ques<wbr>tions/34026698/asterisk-write-<wbr>plugin-to-catch-voice-stream</a><br>
<br>
And read this:<br>
<br>
<a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+15+Application_EAGI" rel="noreferrer" target="_blank">https://wiki.asterisk.org/wiki<wbr>/display/AST/Asterisk+15+Appli<wbr>cation_EAGI</a><br>
<br>
There's a few knowledge gaps, but I think with a few days reading and<br>
the great help here, we might have a solution :)<br>
<br>
This is all very helpful - if anyone else feels like wading in, please do.<br>
<br>
Many thanks!<br>
<br>
</blockquote>
<br>
<br></div></div><div class="HOEnZb"><div class="h5">
-- <br>
______________________________<wbr>______________________________<wbr>_________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
<br>
Check out the new Asterisk community forum at: <a href="https://community.asterisk.org/" rel="noreferrer" target="_blank">https://community.asterisk.org<wbr>/</a><br>
<br>
New to Asterisk? Start here:<br>
<a href="https://wiki.asterisk.org/wiki/display/AST/Getting+Started" rel="noreferrer" target="_blank">https://wiki.asterisk.org/wik<wbr>i/display/AST/Getting+Started</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" rel="noreferrer" target="_blank">http://lists.digium.com/mailma<wbr>n/listinfo/asterisk-users</a></div></div></blockquote></div><br></div>