Convert Text To Real Human Speech With Google Cloud Text-To-Speech API In Python
Google Text-to-Speech is a cloud service by Google that turns text into natural-sounding speech. Using advanced machine learning, it offers a variety of voices and languages, making digital content more engaging and accessible to a wide audience. In this tutorial, we are going to learn how to get started with Google Cloud Text To Speech API in Python.
📋 Source Code: / source-code-text-10231...
📋 Voice List: cloud.google.com/text-to-spee...
📋 GCP Text-To-Speech Pricing: cloud.google.com/text-to-spee...
► Buy Me a Coffee? Your support is much appreciated!
-------------------------------------------------------------------------------------------
☕ Paypal: www.paypal.me/jiejenn/5
☕ Venmo: @Jie-Jenn
💸 Join Robinhood with my link and we'll both get a free stock: bit.ly/3iWr7LC
► Support my channel so I can continue making free contents
---------------------------------------------------------------------------------------------------------------
🛒 By shopping on Amazon → amzn.to/2JkGeMD
👩💻 Follow me on Linked: / jiejenn
🌳 Becoming a Patreon supporter: / jiejenn
✉️ Business Inquiring: KZread@LearnDataAnalysis.org
00:00 - Intro & Demo
02:44 - Pricing
03:56 - Create a Google Cloud project (optional)
05:05 - Enable GCP Text-To-Speech API
05:35 - Create a service account
08:25 - Text-To-Speech Python script development
#gcp #googlecloud #python #texttospeech
Пікірлер: 33
Great video, this is the best I have found!
@jiejenn
3 ай бұрын
Thanks for the comment!
My code works fine but whenever I try to change the speaking rate it does not work. I have tried to find more documentation on it but I cannot figure out why it will not register. If I go outside the range it will come up with an error, which means it does know what float number I am using. Does changing the speaking rate work for you?
Really good tutorial!
@jiejenn
2 ай бұрын
👍
I was lost when you started explaining the Python Env script. So how do you initialize it ? Could you please detail that step for me ?
So useful, thanks
@jiejenn
2 ай бұрын
👍
hi does it work like you give the text and it converted to the mp3 then you play? If i give everytime new text so it will create that mp3????
@jiejenn
2 ай бұрын
You can. I have done it with most of TTS APIs.
has the pricing changed? as of 1st of May 2024, it says that text to speech on-device per device USD XX.XX , this means that every device that use this API, have to pay x amount?
@jiejenn
2 ай бұрын
Can you share the source?
hi. how long at most the desired text strings can be? i want to create mp3 for 10hour audiobook from a 85000 words text file as input. tnx
@jiejenn
3 ай бұрын
The limit is 5000 bytes per request. You will need to chunk the audio file individually. cloud.google.com/text-to-speech/quotas
Which python version do you use?
@jiejenn
4 ай бұрын
Currently Python 3.10. Looking to upgrade to Python 3.12 soon.
Can you go into how to chunk so that sentences are not broken up?
@jiejenn
2 ай бұрын
Not sure if I understand your question.
@HideBuz
2 ай бұрын
@@jiejennMy bad: "Can you go into the chunking of texts, so that sentences are not broken up / split into the middle in order to solve the google api max chunk size problem?" Also how can we generate a single large audiofile instead of many small chunks the the google api returns? I would appreciate a version 2 of the video with improved code on how to deal with the api limit. Many thanks! You earned a sub!
Can we stream the response of google text to speech?
@jiejenn
Күн бұрын
Yes, you can.
@Legend.-.
Күн бұрын
@@jiejenn ohh, can you share any resources for doing it? I am trying to accomplish it but its not working for me.
@jiejenn
Күн бұрын
@@Legend.-. I need to check if I still have the script. I will let you know.
I am not a Python expert. Can someone help me set it up?
@shakil_ilham
Ай бұрын
Hi. I can help you.
Please makw video add drop shadow to around app
@jiejenn
5 ай бұрын
Can you be more specific? Not sure if I understand what you mean.
@minhsenma
5 ай бұрын
@@jiejenn yes add style specific to widget and add custom style to mainwindow drop shadow border ...
Wouldn't it be easier to create an API key? 05:45
@jiejenn
2 күн бұрын
@@ribeiro4642Only a limited services support API key, TTS is not one of them.
@ribeiro4642
2 күн бұрын
@@jiejenn I'm using Google's TTS via API. This made things much simpler.
:(