LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
urbaud
- Posts: 120
- Joined: Tue Feb 24, 2009 12:10 am
Post
by urbaud » Wed Jan 12, 2011 10:21 pm
I have built a very simple app to test revSpeak on Windows XP. However when I try the app in windows it does not work. It works in the Rev IDE and as a standalone in the Mac OSX environment, but not in Windows XP Home Edition (ver 5.1, Build 2600, SP3). I have an Intel based iMac with Windows XP installed on a partitioned drive, separate from the MAC drive; I used Boot Camp to install Windows.
This is the code for the app:
Code: Select all
on mouseUp
revSpeak "The quick brown fox jumps over the lazy dog"
end mouseUp
I have checked to make sure speech works in Windows, which it does. Also, I have done what it says in the Rev dictionary under RevSpeak: In the Inclusions section on the General screen of the Standalone Application Settings window, make sure "Speech" is selected in the list of script libraries. Yet, after all of these checks the app still doesn't work under Windows XP. I couldn't find any posts in the forum that directly addressed this issue, so any ideas as to what the problem might be?
urbaud
urbaud
-
paul_gr
- Posts: 319
- Joined: Fri Dec 08, 2006 7:38 pm
Post
by paul_gr » Wed Jan 12, 2011 11:42 pm
Hi urbaud,
when you build the standalone, is the revspeech.dll in the externals folder?
otherwise it seems to work for me here in XP Pro SP3.
In the inclusions for standalone, I usually just check the "search for required inclusions when saving the standalone application."
cheers
Paul
-
JosepM
- VIP Livecode Opensource Backer

- Posts: 344
- Joined: Tue Jul 20, 2010 12:40 pm
Post
by JosepM » Thu Jan 13, 2011 1:03 am
Hi,
Keep in mind that in XP only exist one voice by default, "Mr Smith" I guess

and speek very low...
Salut,
Josep
-
urbaud
- Posts: 120
- Joined: Tue Feb 24, 2009 12:10 am
Post
by urbaud » Thu Jan 13, 2011 1:05 am
Hi Paul,
Yes, the revSpeech.dll is in the externals folder and I even copied it to the same folder in Windows as the standalone is in, but no go. Still doesn't work. I also checked the "search for required inclusions when saving the standalone application." Is there a specific folder in Windows that the revSpeech.dll should be in? Perhaps it has to be in a special .dll folder! Any other thoughts?
Dan
urbaud
-
paul_gr
- Posts: 319
- Joined: Fri Dec 08, 2006 7:38 pm
Post
by paul_gr » Thu Jan 13, 2011 2:01 am
Can you build the standalone on XP and see if it works?
Sometimes when I build a standalone on one platform it doesn't work when I move it across to another platform.
Otherwise I can't think of any obvious reason why revSpeak is not working...
Paul
-
urbaud
- Posts: 120
- Joined: Tue Feb 24, 2009 12:10 am
Post
by urbaud » Thu Jan 13, 2011 4:14 am
Hi Paul,
Interesting idea, I hadn't thought of that. However, don't think I can as I don't have a license for a Windows version of LiveCode. Mine is for Mac OSX. I don't think Windows XP would let me install a Mac version of the program on a Windows formatted drive. I'd also have to create another account at RunRev in order to download a trial version of LiveCode Studio, Windows version, so I'm thinking, is it worth it? Anyway, I'll let you know what I decide. Thanks again.
Dan
urbaud
-
paul_gr
- Posts: 319
- Joined: Fri Dec 08, 2006 7:38 pm
Post
by paul_gr » Thu Jan 13, 2011 10:02 am
Hi Dan,
Just a long shot from memory...
Several times in the last couple of years I have made standalones that would not work on XP if Quicktime was not installed...
cheers
Paul
-
urbaud
- Posts: 120
- Joined: Tue Feb 24, 2009 12:10 am
Post
by urbaud » Fri Jan 14, 2011 11:10 pm
Hi Paul,
I tried your suggestion about installing QuickTime, but again, no go. I'm thinking there's a bug in Rev which is why it's not working, but I don't know enough about it to be able to determine that. Anyway, I think I'll just let this one go--wish I didn't have to 'cause I think my granddaughter would have liked the program. Oh well. Thanks again for your help and suggestions.
Dan
urbaud
-
doc
- Posts: 148
- Joined: Fri Jun 09, 2006 4:30 pm
Post
by doc » Sat Jan 15, 2011 3:27 am
Hello urbaud,
I have Win XP running in a virtual machine on my Mini-Mac, so I gave this situation a quick try for you.
I have a field where I can type or past text and a button with the following:
Code: Select all
on mouseUp
put fld "Field1" into tSayIt
revSpeak tSayIt
end mouseUp
Works without any problems here on my end, using XP.
Best regards,
Doc
-
Mark
- Livecode Opensource Backer

- Posts: 5150
- Joined: Thu Feb 23, 2006 9:24 pm
-
Contact:
Post
by Mark » Sat Jan 15, 2011 11:17 pm
Hi,
I'm starting to think that revSpeech doesn't work on the platform you build your standalone on but will work on all other platforms. I don't know why but I consider this a bug. Here's a possible solution.
Add a substack to the mainstack of your project (I mean the stack that is used to build the standalone). Call this stack Speech Wrapper. Add the following to the preOpenStack handler of your stack (or the startUp handler even, if you want):
Code: Select all
set the itemDel to slash
if the platform is "MacOS then
put item 1 to -2 of the effective filename of me & "/Externals/revspeech.bundle" into myPath
else
put item 1 to -2 of the effective filename of me & "/Externals/revspeech.dll" into myPath
end if
set the externals of stack "Speech Wrapper" to myPath
go inv stack "Speech Wrapper"
start using stack "Speech Wrapper"
set the defaultStack to me
You might replace the last line with something else, e.g.
or
Code: Select all
go stack "Splash Stack" in new window
.
Kind regards,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
-
doc
- Posts: 148
- Joined: Fri Jun 09, 2006 4:30 pm
Post
by doc » Sat Jan 15, 2011 11:36 pm
I'm starting to think that revSpeech doesn't work on the platform you build your standalone on but will work on all other platforms. I don't know why but I consider this a bug.
Bug? The standalone for the simple stack I described previously was originally built on Windows 7...
It runs and works as intended on Windows 7, Windows Vista, Windows XP (virtual machine) and the Mac standalone works on Mac. In this case I did not try Linux, but can if needed.
Seems like that if it works, it works and rather than a bug, the problem lies elsewhere.
-Doc-
-
Mark
- Livecode Opensource Backer

- Posts: 5150
- Joined: Thu Feb 23, 2006 9:24 pm
-
Contact:
Post
by Mark » Sat Jan 15, 2011 11:39 pm
It might work for some and not for others (you). I call the fact that it doesn't always work for everyone, even if they do everything correctly, a bug.
Kind regards,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
-
urbaud
- Posts: 120
- Joined: Tue Feb 24, 2009 12:10 am
Post
by urbaud » Sun Jan 16, 2011 3:05 am
Hi Doc and Mark,
Doc, thank you for your suggestions. I took your advise and built a simple stack exactly the way you suggested, a textfield to enter text and a button with your suggested code. I tried it in Windows XP on the partitioned disk-didn't work, then tried it on my virtual machine (using Parallels v 4.0.3848; same version of Windows XP) and it too didn't work.
Doc, the last sentence on your reply post, Jan 15, 2011, 2:36pm, seems to suggest that the reason revSpeak isn't working for me is because of me. Perhaps your right, but you may also be wrong. I have built several small apps, and everyone of them work fine, which suggests that I am building standalones correctly. Also, you saw the code that I used for the app-nothing fancy or complicated; perhaps if it was complicated you could argue that it was something about my code. It just may be too early to make judgements.
Mark, thank you for your suggestions. Being relatively new to Rev I wonder if there is a simpler way to do what you'd suggest I do. As I read the posts in the forum I realize that you're one of the experts that frequent the forum and you know your stuff. So, the reason I ask is because I have never created a substack, and don't really know how to proceed; you've probably created lots of them. I feel a bit dumb telling you this. Any suggestions would be appreciated.
Dan
urbaud
-
doc
- Posts: 148
- Joined: Fri Jun 09, 2006 4:30 pm
Post
by doc » Sun Jan 16, 2011 3:16 am
Doc, the last sentence on your reply post, Jan 15, 2011, 2:36pm, seems to suggest that the reason revSpeak isn't working for me is because of me. Perhaps your right, but you may also be wrong. I have built several small apps, and everyone of them work fine, which suggests that I am building standalones correctly. Also, you saw the code that I used for the app-nothing fancy or complicated; perhaps if it was complicated you could argue that it was something about my code. It just may be too early to make judgements.
Hello Dan,
Absolutely not my intent, sir... and sorry you read it that way.
My intended point is that it is unlikely that there is a "bug" specifically with LiveCode on XP, since it does work here on my end.
In comparison to Win 7 and Vista, XP is pretty insecure in terms of protecting system and registry files, so it could easily be a problem with the operating system itself. Perhaps that Mark is correct, but to automatically place the fault with LiveCode didn't seem reasonable in light that I *know* it works here.
...that's what I meant, no more, no less.
-Doc-
-
Mark
- Livecode Opensource Backer

- Posts: 5150
- Joined: Thu Feb 23, 2006 9:24 pm
-
Contact:
Post
by Mark » Sun Jan 16, 2011 1:10 pm
Hi Dan,
As you have noticed, the simple way doesn't work apparently, which leaves us with the complicated way.
Choose Create Substack of... from the File menu to create a substack.
Kind regards,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode