plivo / plivoframework

Open Source Telephony Application Prototyping Framework
http://www.plivo.com/open-source/
Other
418 stars 179 forks source link

Need to escape quote for speak #25

Closed mattwilliamson closed 13 years ago

mattwilliamson commented 13 years ago

The following XML should speak the entire sentence "To speak with a real person, press 1. Press 2 to 'record a message. Press any other key to start over." However it only says "To speak with a real person, press 1. Press 2 to 'record". I put the ' in to replicate a bug in another XML we have. It seems the single quote makes it stop speaking the text. A double quote is ok.

<?xml version="1.0"?>
<Response>
    <Record bothLegs="true" fileFormat="mp3" finishOnKey="#" maxLength="3600" playBeep="true" timeout="5"/>
    <Play loop="1">http://dl.dropbox.com/u/14573179/Audio/Freeswitch/sounds/en/us/callie/ivr/mp3/ivr-thank_you_for_calling.mp3</Play>
    <GetDigits action="http://127.0.0.1:8000/_plivo/got_digits/GET/L2l2ci9oZWxsby1wZXJzb24vaGFuZGxlLWdhdGhlcg==" finishOnKey="#" method="GET" numDigits="1" timeout="5">
        <Speak loop="1" voice="slt">To speak with a real person, press 1. Press 2 to 'record a message. Press any other key to start over.</Speak>
    </GetDigits>
</Response>

Here's what it looks like in the plivo log

2011-07-27 21:47:55,169 outboundserver[18605]: INFO: (6) GetDigits Started ["say:flite:slt:'To speak with a real person, press 1. Press 2 to 'record a message. Press any other key to start over.'"]

And freeswitch:

EXECUTE sofia/internal/1000@192.168.1.77 play_and_get_digits(1 1 1 5000 '#' file_string://silence_stream://1!say:flite:slt:'To speak with a real person, press 1. Press 2 to 'record a message. Press any other key to start over.' silence_stream://150 pagd_input (0|1|2|3|4|5|6|7|8|9|\*|#)+ 5000)
2011-07-27 21:47:55.188345 [DEBUG] switch_ivr_play_say.c:1279 Codec Activated L16@8000hz 1 channels 20ms
2011-07-27 21:47:55.458699 [DEBUG] switch_ivr_play_say.c:1649 done playing file
2011-07-27 21:47:55.727835 [DEBUG] switch_ivr_play_say.c:2376 OPEN TTS flite
2011-07-27 21:47:55.727835 [DEBUG] switch_ivr_play_say.c:2385 Raw Codec Activated
2011-07-27 21:47:55.831325 [DEBUG] switch_ivr_play_say.c:2076 Speaking text: To speak with a real person, press 1. Press 2 to record
mike-plivo commented 13 years ago

ok fixed in last commit

mattwilliamson commented 13 years ago

Confirmed it's working. Thanks!

mattwilliamson commented 13 years ago

I believe this may have resurfaced

mike-plivo commented 13 years ago

Hi matt, with same text ? Can you paste again the plivo logs and your RESTXML ?

Thanks

mattwilliamson commented 13 years ago

I need to double check, I have a feeling we have an old revision.

mike-plivo commented 13 years ago

oh ok waiting for your result .

mattwilliamson commented 13 years ago

Yeah this was our fault. Sorry for the re-open.