Quantcast
Channel: VBForums - CodeBank - Visual Basic 6 and earlier
Viewing all articles
Browse latest Browse all 1460

Google Cloud Natural Language Text-To-Speech

$
0
0
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

Name:  ss.jpg
Views: 226
Size:  57.4 KB


GoogleCloudTTS.zip
Attached Images
 
Attached Files

Viewing all articles
Browse latest Browse all 1460

Trending Articles