Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Text To Speech
I'm using the latest Microsoft v11 driver and voice. 

I am using the httptrigger to send a parameter like this: 

"http://my.dns:11002/httpspeech?P1=Hello World"

My action is 

The voice response is "Hello percent twenty world"

Seems like spaces in a url are converted to %20. Is there a CQC function that would strip out %20 and replace it with space?

Thanks, Richard
My Other web server is Dropbox.
Actually probably the trigger driver should unescape the parameters itself, since there can be more than that. I'll do that for the next drop.

In the meantime, if you just want to get around that, use the ReplaceSubStr command on the variables target. So put the value into a local variable, then do:

LocalVars::ReplaceSubStr(LVar:CQCActParm_2, %20, , False)

That should update that variable appropriately. Keeping in mind of course that you have now altered the original incoming parameter. I don't think there's any issue with that, and it shoudln't matter here. But, to be really safe and in case you ever needed to get back to the original, I'd probably copy it first to a local of your own.

LocalVars::SetVariable(LVar:Temp, %(LVar:CQCActParm_2)
LocalVars::ReplaceSubStr(LVar:Temp, %20, , False)

Something like that. Then use %(LVar:Temp) in the TTS command.
Dean Roddey
Explorans limites defectum
Actually, maybe it's no a good idea for me to unescape them, since then that would become two separate parameters. I need to address this in a better way, maybe by being able to quote parameters so as to get around this, and have the underlying code know to watch for this and strip off the quotes. But I don't have time to do that right right now. So I'll just put it on the list to look at. In the meantime, the above will get you going.
Dean Roddey
Explorans limites defectum
That's what I was looking for. Don't think you need to address this any further.

Thanks, Richard
My Other web server is Dropbox.

Possibly Related Threads…
Thread Author Replies Views Last Post
  Text to Speach Voice George M 2 390 02-10-2022, 10:55 AM
Last Post: George M
  Underline of Static Text kblagron 1 1,060 03-04-2020, 01:01 PM
Last Post: Dean Roddey
  Reading Text File of Google Calendar Entries kblagron 30 10,281 06-10-2019, 04:31 PM
Last Post: kblagron
  Question on Formatting of Variable Text kblagron 2 2,841 09-07-2018, 08:52 PM
Last Post: kblagron
  Embedded Variable in Text zra 2 2,496 05-07-2018, 09:59 AM
Last Post: zra
  Test to Speech TTS - No voice available NightLight 1 2,200 12-02-2017, 08:49 PM
Last Post: NightLight
  Field Boolean Text Widget issue greymatter 5 5,535 08-26-2017, 04:45 PM
Last Post: greymatter
  Pop Up Text Transparent sic0048 10 7,686 08-18-2017, 01:45 PM
Last Post: Dean Roddey
  Text Entry pjgregory 5 5,465 03-15-2017, 08:35 AM
Last Post: Dean Roddey
  Concatenated field text widgets? dlmorgan999 6 5,846 03-09-2017, 02:54 PM
Last Post: dlmorgan999

Forum Jump:

Users browsing this thread: 1 Guest(s)