Hi there,
I've developed an agi script a while ago to use google speech
recognition and by then I've used
http://legroom.net/files/software/convtoflac.sh to convert files from
wav to flac.
You can the use the command:
*/usr/local/bin/convtoflac.sh -o /var/lib/asterisk/sounds/myfile.wav*
It will then create create a flac file in the same directory as the
source file.
I hope it helps.
regards
Lobito
On 1/4/2012 5:51 AM, Bruce B wrote:
And with recent version 14.3.2 I get:
/usr/local/bin/sox FAIL formats: no handler for file extension `flac'
-- speech-recog.agi: /usr/local/bin/sox failed: 512
-- <SIP/5555-0000002e>AGI Script speech-recog.agi completed,
returning 0
Regards,
On Wed, Jan 4, 2012 at 12:43 AM, Bruce B <bruceb...@gmail.com
<mailto:bruceb...@gmail.com>> wrote:
Very interesting. I just tried to get it to work but it complains
about sox. Probably you used a different version of sox?
*PBX-*CLI> /usr/bin/sox: invalid option -- -*
*/usr/bin/sox: invalid option -- n*
*/usr/bin/sox: invalid option -- o*
*/usr/bin/sox: -r must be given a positive integer*
* -- speech-recog.agi: /usr/bin/sox failed: 512*
I am using: *Package sox-12.18.1-1.el5_5.1.i386 *
Thanks,
On Tue, Jan 3, 2012 at 9:42 PM, Lefteris Zafiris
<zaf....@gmail.com <mailto:zaf....@gmail.com>> wrote:
Hello,
I have written an agi script that uses google voice API for voice
recognition.
The script records from the current channel untill the pound
key (#) is
pressed or the timeout (15 seconds) is reached. The recording
is send
over to google speech recognition service and the returned
text string
is assigned to a channel variable.
More info and dialplan examples can be found in the README file:
https://raw.github.com/zaf/asterisk-speech-recog/master/README
The script is available here:
https://github.com/zaf/asterisk-speech-recog
The code is still young and not roughly tested so comments,
suggestions
and bug reports are more than welcome.
----------------
Lefteris Zafiris
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by
http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every
Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users