Using RevSpeak

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
jsburnett
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 121
Joined: Fri Mar 09, 2007 9:47 pm

Using RevSpeak

Post by jsburnett » Fri Jan 16, 2009 12:15 am

I have never tried to use RevSpeak. The command seems simple. However when I use it:

put "test" into vSpeak
revSpeak vSpeak

Nothing happens. I get no error too (the result is empty). My computer should be able to handle text-to-speech. My speakers are on and the volme is medium.

Any thoughts?

Randy Hengst
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 157
Joined: Thu Jun 29, 2006 4:16 pm

Post by Randy Hengst » Fri Jan 16, 2009 2:26 am

This won't be much help, but your codes works as is for me on a PowerBook G4 OSX.4.11 using Studio 2.8.1, 2.9, and 3.0

edljr
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 56
Joined: Sun Oct 26, 2008 6:47 am
Contact:

Using revSpeak

Post by edljr » Fri Jan 16, 2009 5:06 am

I have only used revSpeak once.

revSetSpeechVoice "Vicki"
put "Happy Days" into mySound
revSpeak mySound

This works perfectly on my Mac (OSX.5.5) with Rev 3.0.

It works sporadically on my Vista machine (frustrating).

jsburnett
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 121
Joined: Fri Mar 09, 2007 9:47 pm

RevSpeak

Post by jsburnett » Fri Jan 16, 2009 3:19 pm

Hi,
I tried your script on windows xp.
No sound came out.
I am wondering if I am missing something basic - something I need to set up with text - to - speech.

Any more ideas would be helpful.

Thanks again

edljr
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 56
Joined: Sun Oct 26, 2008 6:47 am
Contact:

revSpeak

Post by edljr » Fri Jan 16, 2009 5:40 pm

I am not sure what the problem could be. There were no preparatory or setup steps involved. The only think I can think to check is:

1. Use play "filename.wav" to ensure there are no hardware issues.
2. Ensure the variable "mySound" is properly declared.
3. Try the code the code using the multi-line message box. If it works there, then there is something wrong with your stack. If it does not work there, then you need someone with more experience than me to help.

revSetSpeechVoice "Vicki"
put "Happy Days" into mySound
revSpeak mySound

If you send me your stack, I will test it on my Mac to see if the problem is specific to your setup or if it is stack-related.

Ed

jsburnett
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 121
Joined: Fri Mar 09, 2007 9:47 pm

RevSpeak

Post by jsburnett » Sat Jan 17, 2009 8:58 pm

I tried the command revSpeechVoices() to get a list of available voices to use and it is empty - although voices are listed on my computer under the system - I looked in the control panel "Speech".

I am using a Windows XP service pack 3.


So, I can't even set a voice - I get an error.

Any help or thoughts here?

Thanks for [u]all [/u]your interest.

edljr
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 56
Joined: Sun Oct 26, 2008 6:47 am
Contact:

revSpeak

Post by edljr » Sat Jan 17, 2009 9:53 pm

Let me download the trial version for Windows (I develop on the Mac) to see if I can figure this out. I will post more in a later post.

edljr
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 56
Joined: Sun Oct 26, 2008 6:47 am
Contact:

revSpeak

Post by edljr » Sat Jan 17, 2009 10:26 pm

J.S. Burnett,

I tried this out on a Vista machine. It works fine with one quirk. The message box does not provide the right results (makes no sense), but when I put the code against a button, it works fine.

This must be a Windows (or Vista) issue because I do not have that problem on the Mac.

~ Ed

Janschenkel
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 977
Joined: Sat Apr 08, 2006 7:47 am
Contact:

Post by Janschenkel » Sun Jan 18, 2009 9:00 am

In the message box, did you do type it in the 'single line' tab or the 'multiple line' tab? The reason I'm asking is that if you're using the 'single line' box, every command is executed in its own little world - and so the call to revSpeak will pass it an empty parameter as the message box doesn't know the variable 'vSpeak' any longer.
It should work if you type the following as one line and then hit return:

Code: Select all

put "test" into vSpeak ; revSpeak vSpeak
The message box will interpret and execute the two lines together as a whole if you use the semicolon as line separator.

HTH,

Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com

edljr
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 56
Joined: Sun Oct 26, 2008 6:47 am
Contact:

revSpeak

Post by edljr » Sun Jan 18, 2009 9:35 am

Hi Jan,

I use the message box extensively on my Mac (primary development area) with both the single multi-line modes. What a great tool! I have never had a problem there.

The only issue I had was with the trial version on my Vista PC. This one does not need to be solved; I just downloaded the trial there to try and help troubleshoot J.S. Burnett's issue.

Thanks for weighing in. I am hoping someone that develops on the PC can help J.S. with his issue.

Ed

jsburnett
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 121
Joined: Fri Mar 09, 2007 9:47 pm

RevSpeak

Post by jsburnett » Sun Jan 18, 2009 6:50 pm

Thanks for all your help.

I've tried using the message box and code in a button and it doesnt speak, so to speak.

I've even tried 'revSpeak "Test this out!" ' and it doesnt work.

I think it is something related to not having any voices recognized in the revSpeechVoices() or windows xp or most likely - i am using version 2.2 (not 3.0 or other versions like ya all!)

Any ideas on 'seeing' the voices - wuld be helpful. I have them on the computer and 'Navigator' and other programs can do text-to-speech with out trouble.

Thanks again.

jsburnett
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 121
Joined: Fri Mar 09, 2007 9:47 pm

revSpeak trouble

Post by jsburnett » Tue Jan 20, 2009 10:10 pm

If there is anyone who could help me using revSpeak that would be great.

I really do appreciate all the help as above.

I am using a tablet PC - with windows XP. revSpeechVoices=false (??). I think this is the problem. Otherwise revSpeak "Script looks easy" and should speak that phrase, but doesnt.

I am not 'setting' up text to speech correctly. Is version 2.2 wrong (documentation states it does support this function).

Thanks.

edljr
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 56
Joined: Sun Oct 26, 2008 6:47 am
Contact:

revSpeak

Post by edljr » Sat Jan 24, 2009 8:05 pm

One thing to check is if you have "Microsoft Text-to-Speech Engine 4.0" installed on your PC. It should be listed in the "Programs and Features" section of the Control Panel.

The following posting from the Microsoft Help & Support Forum might help.
http://support.microsoft.com/kb/306902

Agnar Tonheim
Posts: 10
Joined: Sun Jan 25, 2009 3:27 pm

revSpeak

Post by Agnar Tonheim » Sun Jan 25, 2009 3:48 pm

Hi

My system :
Microsoft® Windows Vista™ Home Premium
Service Pack: 1.0

I also had a problem getting revSpeak to work. The sound was to low.
The solution for me was to open the "Volume mixer" (click on the loadspeaker in the bottom right corner of the screen) and set the volume for "Revolution Engine for Windows " to max. After I did that, revSpeak worked OK

I used this code in a button :

Code: Select all

on mouseUp
   local mySound
   revSetSpeechVolume 100
   put "Happy Days, together with Jesus for ever" into mySound 
revSpeak mySound 
end mouseUp
PS! I have not compiled standalone and tested.

acidjazz
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 93
Joined: Mon Feb 16, 2009 2:37 am

Post by acidjazz » Sat Apr 18, 2009 12:30 am

Thanks Agnar, I had the same experience (vista, volume too low) , and your solution worked! I also created a stand alone and it still worked okay.

Mark

Post Reply