dcsimg
Results 1 to 5 of 5

Thread: Google Cloud Natural Language Text-To-Speech

  1. #1

    Thread Starter
    New Member vbLewis's Avatar
    Join Date
    Feb 2009
    Location
    USA
    Posts
    11

    Google Cloud Natural Language Text-To-Speech

    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: 633
Size:  57.4 KB


    GoogleCloudTTS.zip

  2. #2

    Thread Starter
    New Member vbLewis's Avatar
    Join Date
    Feb 2009
    Location
    USA
    Posts
    11

    Re: Google Cloud Natural Language Text-To-Speech

    Ive updated the project.

    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

    Name:  ss2.jpg
Views: 218
Size:  49.1 KB
    Attached Files Attached Files
    Last edited by vbLewis; Jul 12th, 2018 at 02:05 PM.

  3. #3
    New Member
    Join Date
    Sep 2018
    Posts
    2

    Re: Google Cloud Natural Language Text-To-Speech

    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.

  4. #4
    New Member
    Join Date
    Sep 2018
    Posts
    2

    Re: Google Cloud Natural Language Text-To-Speech

    bump

  5. #5
    PowerPoster
    Join Date
    Oct 2013
    Posts
    3,186

    Re: Google Cloud Natural Language Text-To-Speech

    What version of Visual Basic are you using?
    This sample project will only work with Visual Basic 6.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width