首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >关于节日-星号的错误

关于节日-星号的错误
EN

Stack Overflow用户
提问于 2015-03-09 11:43:31
回答 1查看 1K关注 0票数 0

一切似乎都在工作,perfectly.But没有声音是audible.Corresponding配置文件& CLI输出附加在一起。在另一台配置相同的计算机中,节日服务器中出现新的错误。附加的文件名是SIOD错误。我正在用CLI输出附加配置文件。

节日服务器输出

代码语言:javascript
复制
root@IKVPLIB0056:/home/ingreens# festival --server
server    Mon Mar  9 16:48:57 2015 : Festival server started on port 1314
client(1) Mon Mar  9 16:49:48 2015 : accepted from localhost
client(1) Mon Mar  9 16:49:48 2015 : disconnected

SIP

代码语言:javascript
复制
[general]
transport=udp

[friends_internal](!)
type=friend
host=dynamic
context=from-internal
disallow=all
allow=ulaw

[demo-alice](friends_internal)
secret=1234 ; put a strong, unique password here instead

[demo-bob](friends_internal)
secret=123 ; put a strong, unique password here instead

[demo-sip](friends_internal)
secret=12345 ; put a strong, unique password here instead

SIOD误差

代码语言:javascript
复制
root@IKVPLIB0056:/home/ingreens# festival --server
server    Mon Mar  9 16:48:57 2015 : Festival server started on port 1314
client(1) Mon Mar  9 16:49:48 2015 : accepted from localhost
SIOD ERROR:unbound variable : string
client(1) Mon Mar  9 16:49:48 2015 : disconnected

Festival.scm

代码语言:javascript
复制
(Parameter.set 'Audio_Required_Format 'aiff)
(Parameter.set 'Audio_Method 'Audio_Command)
(Parameter.set 'Audio_Command "paplay $FILE --client-name=Festival --stream-name=Speech")



;;Server access list(hosts)
;(set! server_access_lists '("[^.]+" "127.0.0.1" "IKVPLIB0056.192.168.0.141" "192.168.0.141"))
;; Enable access to localhost (needed by debian users)
;(set! server_access_list '("IKVPLIB0056\\.192.168.0.141" "IKVPLIB0056"))
(set! server_access_list '("localhost\\.localdomain" "localhost"))
;; set italian voice (comment the following 2 lines to use british_american)
;(language_italian)
;(set! voice_default 'voice_pc_diphone)

;;; Command for Asterisk begin


(define (tts_textasterisk string mode)
"(tts_textasterisk STRING MODE)
Apply tts to STRING. This function is specifically designed for
use in server mode so a single function call may synthesize the string.
This function name may be added to the server safe functions."
(let ((wholeutt (utt.synth (eval (list 'Utterance 'Text string)))))
(utt.wave.resample wholeutt 8000)
(utt.wave.rescale wholeutt 5)
(utt.send.wave.client wholeutt)))

;;; Command for Asterisk end

星号CLI输出

代码语言:javascript
复制
 == Using SIP RTP CoS mark 5
    -- Executing [1234@from-internal:1] NoOp("SIP/demo-bob-00000001", "") in new stack
    -- Executing [1234@from-internal:2] Festival("SIP/demo-bob-00000001", "Hello world") in new stack
  == Parsing '/etc/asterisk/festival.conf':   == Found
    -- Executing [1234@from-internal:3] Hangup("SIP/demo-bob-00000001", "") in new stack
  == Spawn extension (from-internal, 1234, 3) exited non-zero on 'SIP/demo-bob-00000001'

Festival.conf

代码语言:javascript
复制
[general]
host=localhost
port=1314
usercache=no
cachedir=/var/cache/asterisk/festival/
festivalcommand=(tts_textasterisk "%s" 'file)(quit)\n

extensions.conf

代码语言:javascript
复制
[from-internal]
exten=>6001,1,Dial(SIP/demo-alice,20)
exten=>6002,1,Dial(SIP/demo-bob,20)
exten=>6003,1,Dial(SIP/demo-sip,20)
exten =>1234,1,NoOp()
exten=>1234,2,Festival(Hello world)
exten =>1234,3,Hangup()
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-03-10 03:32:15

在打节日电话之前你需要接听电话。只需加上

代码语言:javascript
复制
exten =>1234,1,Answer
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/28941179

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档