text to voice

new BookmarkLockedFalling
kokenge
Senior Member
****

kokenge Avatar

Posts: 261

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
Janet
Global Moderator
*****

Janet Avatar

Posts: 276

[br]
StefanPendl
Global Moderator
*****

StefanPendl Avatar

Run for BASIC ...
Posts: 945

[b]Stefan[/b] - [a href=http://stefanpendl.runbasichosting.com/]Homepage[/a][br][br][b]Please give credit if you use code I post, no need to ask for permission.[/b][br][br]Run BASIC 1.01, Fire-/Waterfox (IE11, Edge), Windows 10 Professional x64, Intel Core i7-4710MQ 2.5GHz, 16GB RAM
Carl Gundel - admin
Administrator
*****

Carl Gundel - admin Avatar

Posts: 550

Post by Carl Gundel - admin on Sept 17, 2009 8:48:51 GMT -5

Unfortunately the technique described there is Windows only. :-(

-Carl
StefanPendl Avatar
I think you are referring to Talking Web Clients with JavaScript and the Speech API.

ActiveX objects are a bit of a pain, since they have been misused in the past and the security is therefore very tight.
I did not even get the example web page to run.
kokenge
Senior Member
****

kokenge Avatar

Posts: 261

Post by kokenge on Sept 17, 2009 10:01:21 GMT -5

Carl Gundel - admin Avatar
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..

StefanPendl
Global Moderator
*****

StefanPendl Avatar

Run for BASIC ...
Posts: 945

[b]Stefan[/b] - [a href=http://stefanpendl.runbasichosting.com/]Homepage[/a][br][br][b]Please give credit if you use code I post, no need to ask for permission.[/b][br][br]Run BASIC 1.01, Fire-/Waterfox (IE11, Edge), Windows 10 Professional x64, Intel Core i7-4710MQ 2.5GHz, 16GB RAM
Janet
Global Moderator
*****

Janet Avatar

Posts: 276

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.

Last Edit: Sept 17, 2009 14:05:15 GMT -5 by Janet
[br]
bfraley
New Member
*

bfraley Avatar

Posts: 20

Post by bfraley on Oct 25, 2013 8:09:04 GMT -5

kokenge Avatar
Carl Gundel - admin Avatar
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
Last Edit: Oct 26, 2013 3:35:24 GMT -5 by StefanPendl
kokenge
Senior Member
****

kokenge Avatar

Posts: 261

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.


bfraley
New Member
*

bfraley Avatar

Posts: 20

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
kokenge
Senior Member
****

kokenge Avatar

Posts: 261

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.html

If 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..