|
Post by kokenge on Sept 16, 2009 9:56:57 GMT -5
Anyone know how to convert text to voice. I've tried this, but no voice.
html "<script> VoiceObj.Speak('Hello World'); </script>" wait
And tried this.
html "<script> var VoiceObj = new ActiveXObject('SAPI.SpVoice'); VoiceObj.Speak('Hello World'); </script>" wait
Thanks for the help
|
|
|
Post by Janet on Sept 16, 2009 11:51:02 GMT -5
When RB was first released, Alyce spent a great deal of time trying to get Merlin to appear to no avail. It would be great if you could get this script going.
|
|
|
Post by StefanPendl on Sept 17, 2009 3:27:15 GMT -5
|
|
|
Post by Carl Gundel - admin on Sept 17, 2009 8:48:51 GMT -5
Unfortunately the technique described there is Windows only. :-( -Carl
|
|
|
Post by kokenge on Sept 17, 2009 10:01:21 GMT -5
Unfortunately the technique described there is Windows only. :-( Exactly.. However I run into that a lot. I do want it on Linux - especially the new Chrome OS, and Android. The system I'm writing is a rewrite of a avionics systems I did in LB. Even though RB is not exactly suited for this, the advantages outweigh the disadvantages. Luckily I only need to pulse the instruments about once every 3 seconds. A RUNNED program continues to run and keep the instrument panel up to date. This allows the Parent to interact with the user. And since it is running NO-IP, you can actually watch the instrument panel from anywhere in the world while the pilot flies the plane. RB and web gives access to all kinds of web information like maps, airport information, gps, skype. So far it's looking great. All the graphics is using RB graphics, and I can get to the A to D cause it makes the USB look like a serial port. But I still need AUDIO for warnings and alerts. - I will find a way.. Thanks for the help..
|
|
|
Post by StefanPendl on Sept 17, 2009 11:38:41 GMT -5
Multimedia files will work on any O/S, so mp3 should be no problem There is a project going on at W3C about voice and the web, so the future will be interesting.
|
|
|
Post by Janet on Sept 17, 2009 14:01:25 GMT -5
head "<script type=text/javascript> function EvalSound(soundobj) { var thissound=document.getElementById(soundobj); thissound.Play(); } </script> <embed src=";chr$(34);"http://www.phon.ucl.ac.uk/home/mark/audio/success.wav";chr$(34);" autostart=false width=0 height=0 id=";chr$(34);"sound1";chr$(34);"enablejavascript=";chr$(34);"true";chr$(34);">"
print print "This code is adapted (okay, stolen is the more apt term) from a tutorial found at 'http://www.phon.ucl.ac.uk/home/mark/audio/play.htm'" print
html "<form><input type='button' value=";chr$(34);"Play Sound";chr$(34);" onClick=";chr$(34);"EvalSound('sound1')";chr$(34);"></form>"
Now, if you could get a program that will take text and write the wav file, you might be getting somewhere.
Edit - tested in FF3.5 and IE8. IE8 gives that annoying "Do you want your mime files to be associated with QuickTime?" message the first time it's run, but subsequent runs seem just fine.
|
|
|
Post by bfraley on Oct 25, 2013 8:09:04 GMT -5
Unfortunately the technique described there is Windows only. :-( Exactly.. However I run into that a lot. I do want it on Linux - especially the new Chrome OS, and Android. The system I'm writing is a rewrite of a avionics systems I did in LB. Even though RB is not exactly suited for this, the advantages outweigh the disadvantages. Luckily I only need to pulse the instruments about once every 3 seconds. A RUNNED program continues to run and keep the instrument panel up to date. This allows the Parent to interact with the user. And since it is running NO-IP, you can actually watch the instrument panel from anywhere in the world while the pilot flies the plane. RB and web gives access to all kinds of web information like maps, airport information, gps, skype. So far it's looking great. All the graphics is using RB graphics, and I can get to the A to D cause it makes the USB look like a serial port. But I still need AUDIO for warnings and alerts. - I will find a way.. Thanks for the help.. This is an extremely interesting application of RB. So, we're talking about real airplanes it seems ? Just checking. Thanks
|
|
|
Post by kokenge on Oct 25, 2013 10:30:57 GMT -5
Yes.. Basically you lay out what you want on your panel and how you want it to look.
The system:: *Used sqLite to hold readings. This let you review and get all kind of stats on how you fly. Things like gas to altitude and speed usage let you find your sweet spot to fly. *Had interfaces to any airport information. *It computed your best route from airport to airport using any type of aircraft. Interesting how much the routes changed for different aircraft. This gave you the flight plan with dates and times. *Set up the computer in the airplane to be a server and therefore anyone could watch you fly in real time by simply signing on to your site in the airplane. My wife watched my fly from home. * speed was derived from GPS so it was more accurate than most devices.
It worked, but with the advantages of UBUNTU on android gave me a better interface. Things like level and climb rate etc. So rewrote it in another language.
|
|
|
Post by bfraley on Oct 25, 2013 16:11:13 GMT -5
Absolutely amazing! The shows implications of how RB can be used in a diverse amount of settings and solutions.
I first found and started exploring RB due to a project for XML parsing for web-enabling TV and media devices, in the application of PDF viewing/reading on digital/non-digital televisions.
So, your airplane system is inspiring!
Thanks
|
|
|
Post by kokenge on Oct 26, 2013 16:08:55 GMT -5
Just took a look and the Avionics application and it is still available for download. This was a early version and I'm not sure it even works any more. But it will give you some idea how it works. I was using a Analog to Digital converter that no longer exists to get the analog readings from the engine. I haven't looked at the download for a long time, but I think it simulates A to D using the seconds since midnight just to get some information. You'd need to replace that with Arduino or something like that. Go here and click the Avionics link. kneware.com/rbp/index.htmlIf it don't download, let me know, and I'll see if I and set up the download. BTW there are other downloads on the site. The wine app will not download since I sell it. but it documents what it does. Good Luck..
|
|