Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Interactive speach in a program using google-webservice

Author
Message
Attila
FPSC Reloaded TGC Backer
21
Years of Service
User Offline
Joined: 17th Aug 2004
Location:
Posted: 20th May 2011 16:27 Edited at: 20th May 2011 16:34
I'm working on a desktop for bad viewing people, thus I had to find a way to read out texts on the desktop. Windows 7 seems only to allow for TTS-functions in english. The desktop should work in any (western) language. I developed a function to use google-webservice TTS, the function could be usefull to others too.

Example:


If someone knows a method to call the windows native tts in any language. I would be thankfull to learn about, because my methode uses a permanent network connection to access the webservice.
Wyldhunt
16
Years of Service
User Offline
Joined: 27th Sep 2009
Location: The Dark Side
Posted: 21st May 2011 23:27
You'd need to make a wrapper dll, I think.
If you or anyone else who reads this wants to take a shot at it, here's a few links to get started:

Wikipedia overview of the SAPI system:
http://en.wikipedia.org/wiki/Microsoft_Speech_API

Microfail Tellme webpage for desktop developers
http://www.microsoft.com/en-us/Tellme/developers/default.aspx#tab=desktop

Windows SDK
http://msdn.microsoft.com/en-us/bb980924.aspx
Diggsey
20
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 22nd May 2011 12:36 Edited at: 22nd May 2011 12:37
AFAIK you can only use text-to-speech with languages which have been installed on the user's computer (ie. their main language).

[b]
Attila
FPSC Reloaded TGC Backer
21
Years of Service
User Offline
Joined: 17th Aug 2004
Location:
Posted: 22nd May 2011 20:59 Edited at: 22nd May 2011 21:02
Thanks for your answers
_______________________________________________________________________________________________________________

@Wyldhunt

Quote: "You'd need to make a wrapper dll, I think."


Yes - I think so, too
But if there where a dll I could call ist similar to say-function I made in the above example - would be nice though, my C++ is a bit weak...

_______________________________________________________________________________________________________________

@Diggsey

Quote: "you can only use text-to-speech with languages which have been installed"


Yes I know, but under XP there where on MS-sites language packages that could be downloaded and the package for the language of windows running was always installed with the OS.

With Win7 there are no downloads and when you install windows in an european language (a.e. german [de-de or de-sg]) you will only get the us [en-us] variant installed.

thx for the links

Login to post a reply

Server time is: 2026-07-10 18:03:06
Your offset time is: 2026-07-10 18:03:06