PLEASE SEE THE INCLUDED READ ME FILE FOR COMPLETE INSTRUCTIONS BEFORE RUNNING THE PROJECT
Here is a project I did that shows you how to use the power of Google Cloud for next level natural sounding Text-To-Speech (TTS).
It shows you how to use either Windows Media Player or the Common Controls MultiMedia control to play the audio files. Google Cloud TTS Documentation
Unfortunately, you can NOT just open the project and run it... It requires you to have a google cloud account with text to speech API enabled. It is complicated to set up but once you do its trivial to use. It is completely free to sign up but does require a credit/debit card. It is completely free for the first 1-4 million characters.They don't charge your account but access will be denied once the limit is reached till you upgrade your account.
Normally you would have a server (called the backend) that processes the request for you in client applications as not to leak your access tokens.Google cloud tts is free for 1 million characters and after they charge $4 per milllion. I plan on using this in future applications so i couldn't include the access tokens in the code. YOU MUST HAVE YOUR OWN GOOGLE CLOUD ACCOUNT TO RUN THE PROGRAM!
(Note: If someone would like to donate their first 1 million free characters for this example let me know.)
PLEASE SEE THE INCLUDED READ ME FILE FOR COMPLETE INSTRUCTIONS BEFORE RUNNING THE PROJECT
This sample app uses and requires the following technologies:
1. Inet transfer control (MSINET.OCX)
2. Windows Media Player Control (wmp.dll)
3. Common Controls 6.0 (mscomctl.ocx)
4. Common controls multimedia control (mci32.ocx)
5. Google Cloud SDK (see readme file)
It also uses code from the following sources:
1. JSONBAG by Robert D. Riemersma, Jr. (dilettante)
2. GetCommandOutPut by Mattias Sjögren
1. Added MP3 and OGG Opus audio capability.
2. Added Volume (Gain) for output audio
3. Fixed a small bug in Voice selection
4. MP3 is now the default audio format.
5. Added ability to cancel sound playing
Last edited by vbLewis; Jul 12th, 2018 at 02:05 PM.
Thanks for your awesome program. I have been attempting to try it out but have been unable to compile it in visual studio. At the risk of appearing to be a total newb, which i am when it comes to vb haha, how should i go about compiling this vb program? Is there a thread that could step me through the compiling of this project? Any help would be greatly appreciated.
Also, I was able to get the Google Cloud/API all set up without issue, thank you for your in depth readme on that.