1

http://zaf.github.io/asterisk-speech-recog/

;;Simple speech recognition
exten => 1234,1,Answer()
exten => 1234,n,agi(speech-recog.agi,en-US)
exten => 1234,n,Verbose(1,The text you just said is: ${utterance})
exten => 1234,n,Verbose(1,The probability to be right is: ${confidence})
exten => 1234,n,Hangup()

但它给出了以下结果: -

The text you just said is: -1
The probability to be right is: -1
4

1 回答 1

0

仔细检查您是否安装了所有依赖项。

Perl: The Perl Programming Language 
perl-libwww: The World-Wide Web
library for Perl flac: Free Lossless Audio Codec

在 CentOS 上安装的软件包示例,用于我实现此 Google Speech Recognition API、AGI 脚本之一:

[user@box ~]$ sudo rpm -qa | grep -Pi "libwww|flac|^perl\-\d"
perl-libwww-perl-5.833-2.el6.noarch
flac-devel-1.2.1-6.1.el6.x86_64
perl-5.10.1-130.el6_4.x86_64
flac-1.2.1-6.1.el6.x86_64
于 2013-05-28T14:07:56.930 回答