Author Topic: random line read for TTS  (Read 6232 times)

0 Members and 1 Guest are viewing this topic.

ryz4eva

  • Jr. Member
  • **
  • Posts: 40
  • Karma: -2
  • Chasing The Tech Dragon
    • View Profile
Re: random line read for TTS
« Reply #15 on: December 20, 2013, 03:42:58 PM »
i have copied the file to desktop and changed the file path in the scrape. i also added a pause seeing as this is what i needed to do this to get the read random line 1-8 earlier.

it now reads
Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<command id="735" name="tts random read" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>Scrape</cmdType>
    <cmdString>C:\Users\Ryan\Desktop\Intro.txt</cmdString>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>Results.RegEx</cmdType>
    <cmdString>/(.+)</cmdString>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>VC.Pause</cmdType>
    <cmdString>1000</cmdString>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>TTS.Speak</cmdType>
    <cmdString>{Match.Rnd}</cmdString>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <phrase>Read Random</phrase>
</command>

i was using save and execute, however now i have added the "read random", still isnt working though :S have you had any luck?
Rocking:
Lenovo Ideapad Z580
Samsung Galaxy Note 10.1
LG Nexus 4
Voxcommando
Eventghost
XBMC Frodo
Vera Lite

View my site to see what im up to with vox...

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 2009
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: random line read for TTS
« Reply #16 on: December 20, 2013, 03:52:40 PM »
i was using save and execute, however now i have added the "read random", still isnt working though :S have you had any luck?

:) I have had no problems reading random statements from my text file or from the file you uploaded, either in a public dropbox folder, my desktop, wherever, using the initial xml that I shared. Hence my confusion.
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: random line read for TTS
« Reply #17 on: December 20, 2013, 03:56:24 PM »
Testing this last version exactly as is with your text file and it works perfectly.

You are probably using an old version, or possibly a cracked version of VC (which we do not recommend ;))

If you are using an uncracked version of VC version 1.1.8.2 it should work just fine exactly as you have posted it, as long as the path matches that of the file.

If you still can't get it to work, please turn on VC logging, test the command and then upload the log file.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: random line read for TTS
« Reply #18 on: December 20, 2013, 03:58:08 PM »
... i also added a pause seeing as this is what i needed to do this to get the read random line 1-8 earlier...

I can't think of any reason why a pause would be needed with either method.

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 2009
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: random line read for TTS
« Reply #19 on: December 20, 2013, 04:00:12 PM »
when doing it with the way i posted before, it was able to generate the line, it just said the / at the beginning

Initially you said that you were getting a gibberish response using the file.read action:
Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<command id="736" name="read file line" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>File.Read</cmdType>
    <cmdString>C:\YourPath\intro.txt&amp;&amp;{Rnd.1.8}</cmdString>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>TTS.SpeakSync</cmdType>
    <cmdString>{LastResult}</cmdString>
    <cmdRepeat>1</cmdRepeat>
  </action>
</command>

I just noticed here that it sounds like at some point this changed? When were you able to get the command to work, but saying "slash" at the beginning? Using which code?
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

ryz4eva

  • Jr. Member
  • **
  • Posts: 40
  • Karma: -2
  • Chasing The Tech Dragon
    • View Profile
Re: random line read for TTS
« Reply #20 on: December 20, 2013, 04:06:18 PM »
looks like i was running an old version of voxcommando. when i installed it the other day, i used CNET downloads because i was having a problem getting onto the voxcommando website. just downloaded straight from vox.

finally getting somewhere. turned the /(.+) into (.+) and now i have a bit more success, saying the entire command, but including the / at the moment.
Rocking:
Lenovo Ideapad Z580
Samsung Galaxy Note 10.1
LG Nexus 4
Voxcommando
Eventghost
XBMC Frodo
Vera Lite

View my site to see what im up to with vox...

ryz4eva

  • Jr. Member
  • **
  • Posts: 40
  • Karma: -2
  • Chasing The Tech Dragon
    • View Profile
Re: random line read for TTS
« Reply #21 on: December 20, 2013, 04:07:18 PM »
i was getting gibberish because during the {Rnd.1.8} i had wrote {Rnd .1 8.}
Rocking:
Lenovo Ideapad Z580
Samsung Galaxy Note 10.1
LG Nexus 4
Voxcommando
Eventghost
XBMC Frodo
Vera Lite

View my site to see what im up to with vox...

ryz4eva

  • Jr. Member
  • **
  • Posts: 40
  • Karma: -2
  • Chasing The Tech Dragon
    • View Profile
Re: random line read for TTS
« Reply #22 on: December 20, 2013, 04:10:10 PM »
huge thank you nime5ter, all working and complete.
Rocking:
Lenovo Ideapad Z580
Samsung Galaxy Note 10.1
LG Nexus 4
Voxcommando
Eventghost
XBMC Frodo
Vera Lite

View my site to see what im up to with vox...

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 2009
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: random line read for TTS
« Reply #23 on: December 20, 2013, 04:14:16 PM »
Glad it's working. I should have asked which version you were using earlier. Both {Rnd.1.x} and {Match.Rnd} were variables added in version 1.163.

(It's one thing we always ask users to state upfront--version number, for just this reason!  :bonk)
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: random line read for TTS
« Reply #24 on: December 20, 2013, 04:17:36 PM »
i was getting gibberish because during the {Rnd.1.8} i had wrote {Rnd .1 8.}
This is where the history window can come in handy (or the log file).

I created your command again using the incorrect parameter as you did: {Rnd .1 8.}

See the attached.  When you focus the main window, look at the history window and hover your mouse over the red item you can see that there is a problem with the parameter... it is expecting an integer and not getting one.  This would be a clue that you formated the random variable string incorrectly.  At the very least you should check to see if there are actions in your macro that are generating errors (and mention it when seeking support).

Thanks for the heads up about download.com

I will see about getting them to update to the latest version.

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2319
  • Karma: 47
    • View Profile
Re: random line read for TTS
« Reply #25 on: December 20, 2013, 04:25:34 PM »
Did you restart VC after changing the command? If not, tried it.
***********  get excited and make things  **********

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: random line read for TTS
« Reply #26 on: December 20, 2013, 04:40:20 PM »
Hi Kalle, I think you did not read the whole thread...

huge thank you nime5ter, all working and complete.

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2319
  • Karma: 47
    • View Profile
Re: random line read for TTS
« Reply #27 on: December 20, 2013, 04:44:12 PM »
Hi James, you've right  :bonk
I've read only the first page - sorry  ::duh
***********  get excited and make things  **********

ryz4eva

  • Jr. Member
  • **
  • Posts: 40
  • Karma: -2
  • Chasing The Tech Dragon
    • View Profile
Re: random line read for TTS
« Reply #28 on: December 20, 2013, 04:48:22 PM »
can anybody tell me if its possible to ping an ip address from voxcommando?
Rocking:
Lenovo Ideapad Z580
Samsung Galaxy Note 10.1
LG Nexus 4
Voxcommando
Eventghost
XBMC Frodo
Vera Lite

View my site to see what im up to with vox...

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: random line read for TTS
« Reply #29 on: December 20, 2013, 05:00:30 PM »
Yes, you just use scrape.

but please try not to start new topics in an unrelated thread.  (we all do it, but anyway... please try  :P)

Sorry, I see that you started another thread here: http://voxcommando.com/forum/index.php?topic=1301.0

If you wanted to bump it that's OK.  Sometimes we miss stuff when there is a lot of other activity.
« Last Edit: December 20, 2013, 05:05:31 PM by jitterjames »