Skip to content

ispeech-tts.agi Not playing audio #3

@rumakoshi

Description

@rumakoshi

Hi! Lefteris

I am testing your script (TTS) and for some reason it is not playing audio. Can you help find what is wrong?

---- AGI DEBUG
== Using SIP RTP CoS mark 5
> 0x73f3e730 -- Strict RTP learning after remote address set to: 192.168.15.20:9434
-- Executing [3@House:1] Answer("SIP/1001-0000006b", "") in new stack
> 0x73f3e730 -- Strict RTP switching to RTP target address 192.168.15.20:9434 as source
-- Executing [3@House:2] AGI("SIP/1001-0000006b", "ispeech-tts.agi,"This is a test of the ispeech text to speech engine in asterisk."") in new stack
-- Launched AGI Script /usr/share/asterisk/agi-bin/ispeech-tts.agi
<SIP/1001-0000006b>AGI Tx >> agi_request: ispeech-tts.agi
<SIP/1001-0000006b>AGI Tx >> agi_channel: SIP/1001-0000006b
<SIP/1001-0000006b>AGI Tx >> agi_language: en
<SIP/1001-0000006b>AGI Tx >> agi_type: SIP
<SIP/1001-0000006b>AGI Tx >> agi_uniqueid: 1597327235.202
<SIP/1001-0000006b>AGI Tx >> agi_version: 16.2.1~dfsg-1+deb10u1
<SIP/1001-0000006b>AGI Tx >> agi_callerid: 1001
<SIP/1001-0000006b>AGI Tx >> agi_calleridname: 1001
<SIP/1001-0000006b>AGI Tx >> agi_callingpres: 0
<SIP/1001-0000006b>AGI Tx >> agi_callingani2: 0
<SIP/1001-0000006b>AGI Tx >> agi_callington: 0
<SIP/1001-0000006b>AGI Tx >> agi_callingtns: 0
<SIP/1001-0000006b>AGI Tx >> agi_dnid: 3
<SIP/1001-0000006b>AGI Tx >> agi_rdnis: unknown
<SIP/1001-0000006b>AGI Tx >> agi_context: House
<SIP/1001-0000006b>AGI Tx >> agi_extension: 3
<SIP/1001-0000006b>AGI Tx >> agi_priority: 2
<SIP/1001-0000006b>AGI Tx >> agi_enhanced: 0.0
<SIP/1001-0000006b>AGI Tx >> agi_accountcode:
<SIP/1001-0000006b>AGI Tx >> agi_threadid: 1861800864
<SIP/1001-0000006b>AGI Tx >> agi_arg_1: This is a test of the ispeech text to speech engine in asterisk.
<SIP/1001-0000006b>AGI Tx >>
<SIP/1001-0000006b>AGI Rx << CHANNEL STATUS
<SIP/1001-0000006b>AGI Tx >> 200 result=6
<SIP/1001-0000006b>AGI Rx << STREAM FILE /tmp/de8307548a61bee10a147d54a076b8a8 ""
[Aug 13 11:00:38] WARNING[22358][C-00000067]: file.c:779 ast_openstream_full: File /tmp/de8307548a61bee10a147d54a076b8a8 does not exist in any format
<SIP/1001-0000006b>AGI Tx >> 200 result=-1 endpos=0
-- <SIP/1001-0000006b>AGI Script ispeech-tts.agi completed, returning -1
-- Executing [3@House:3] Hangup("SIP/1001-0000006b", "") in new stack
== Spawn extension (House, 3, 3) exited non-zero on 'SIP/1001-0000006b'
---eof;

During the debugging process I thought the problem was due to the API KEY but when creating an API Key and changing it in your script I have the same problem with only one difference being the WARNING "does not exist in any format".

--- AGI DEBUG

== Using SIP RTP CoS mark 5
> 0x73f3e730 -- Strict RTP learning after remote address set to: 192.168.15.20:9434
-- Executing [3@House:1] Answer("SIP/1001-0000006c", "") in new stack
> 0x73f3e730 -- Strict RTP switching to RTP target address 192.168.15.20:9434 as source
-- Executing [3@House:2] AGI("SIP/1001-0000006c", "ispeech-tts.agi,"This is a test of the ispeech text to speech engine in asterisk."") in new stack
-- Launched AGI Script /usr/share/asterisk/agi-bin/ispeech-tts.agi
<SIP/1001-0000006c>AGI Tx >> agi_request: ispeech-tts.agi
<SIP/1001-0000006c>AGI Tx >> agi_channel: SIP/1001-0000006c
<SIP/1001-0000006c>AGI Tx >> agi_language: en
<SIP/1001-0000006c>AGI Tx >> agi_type: SIP
<SIP/1001-0000006c>AGI Tx >> agi_uniqueid: 1597328048.204
<SIP/1001-0000006c>AGI Tx >> agi_version: 16.2.1~dfsg-1+deb10u1
<SIP/1001-0000006c>AGI Tx >> agi_callerid: 1001
<SIP/1001-0000006c>AGI Tx >> agi_calleridname: 1001
<SIP/1001-0000006c>AGI Tx >> agi_callingpres: 0
<SIP/1001-0000006c>AGI Tx >> agi_callingani2: 0
<SIP/1001-0000006c>AGI Tx >> agi_callington: 0
<SIP/1001-0000006c>AGI Tx >> agi_callingtns: 0
<SIP/1001-0000006c>AGI Tx >> agi_dnid: 3
<SIP/1001-0000006c>AGI Tx >> agi_rdnis: unknown
<SIP/1001-0000006c>AGI Tx >> agi_context: House
<SIP/1001-0000006c>AGI Tx >> agi_extension: 3
<SIP/1001-0000006c>AGI Tx >> agi_priority: 2
<SIP/1001-0000006c>AGI Tx >> agi_enhanced: 0.0
<SIP/1001-0000006c>AGI Tx >> agi_accountcode:
<SIP/1001-0000006c>AGI Tx >> agi_threadid: 1842398112
<SIP/1001-0000006c>AGI Tx >> agi_arg_1: This is a test of the ispeech text to speech engine in asterisk.
<SIP/1001-0000006c>AGI Tx >>
<SIP/1001-0000006c>AGI Rx << CHANNEL STATUS
<SIP/1001-0000006c>AGI Tx >> 200 result=6
-- <SIP/1001-0000006c>AGI Script ispeech-tts.agi completed, returning 0
-- Executing [3@House:3] Hangup("SIP/1001-0000006c", "") in new stack
== Spawn extension (House, 3, 3) exited non-zero on 'SIP/1001-0000006c'
elcamino*CLI>

--- eof

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions