Quick question: Asterisk 14 prints that it loaded this third party AGI, but skips straight on in the dialplan, even when the AGI config is set to print debug info and bomb out when the settings are wrong.
Can someone take a quick glance and let this newbie know if it’s something he’s doing wrong, or whether the script isn’t compatible?
#!/usr/bin/env perl
#
# AGI script that renders speech to text using Google's Cloud Speech API.
#
# Copyright (C) 2011 - 2016, Lefteris Zafiris <zaf@fastmail.com>
#
# This program is free software, distributed under the terms of
# the GNU General Public License Version 2. See the COPYING file
# at the top of the source tree.
#
# -----
# Usage
# -----
# agi(speech-recog.agi,[lang],[timeout],[intkey],[NOBEEP])
# Records from the current channel until 2 seconds of silence are detected
# (this can be set by the user by the 'timeout' argument, -1 for no timeout) or the
# interrupt key (# by default) is pressed. If NOBEEP is set, no beep sound is played
# back to the user to indicate the start of the recording.
# The recorded sound is send over to Google speech recognition service and the
This file has been truncated. show original
gjoseph
September 23, 2016, 9:01pm
2
Does it work with the latest Asterisk 13?
Thanks! No sure about 13, but I’m relying on 14 for the long-awaited (and incredibly useful) streaming.
As is often the case with Asterisk, the script/tutorial I was trying to follow is years old and probably last tested on Asterisk 1.8!
Long story cut short is that this works perfectly, for me, on 14, and gives me the basis for what I need: http://www.itp-redial.com/class/weekly-notes/week4-notes/agi-scripting-with-python