ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก

Convert Text To Real Human Speech With Google Cloud Text-To-Speech API In Python

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ส.ค. 2024
  • 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: TH-cam@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

ความคิดเห็น • 36

  • @AlexRodriguez-vl1ec
    @AlexRodriguez-vl1ec 5 หลายเดือนก่อน

    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?

  • @melhoresofertasapp
    @melhoresofertasapp 4 หลายเดือนก่อน +1

    Great video, this is the best I have found!

    • @jiejenn
      @jiejenn  4 หลายเดือนก่อน

      Thanks for the comment!

  • @sebastianrodriguez672
    @sebastianrodriguez672 3 หลายเดือนก่อน

    So useful, thanks

    • @jiejenn
      @jiejenn  3 หลายเดือนก่อน

      👍

  • @anavildidthasom6201
    @anavildidthasom6201 2 หลายเดือนก่อน

    Really good tutorial!

    • @jiejenn
      @jiejenn  2 หลายเดือนก่อน

      👍

  • @user-hq4im9wb8k
    @user-hq4im9wb8k 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
      @jiejenn  2 หลายเดือนก่อน

      You can. I have done it with most of TTS APIs.

  • @user-qr8ob4dz5g
    @user-qr8ob4dz5g 4 หลายเดือนก่อน

    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
      @jiejenn  4 หลายเดือนก่อน

      The limit is 5000 bytes per request. You will need to chunk the audio file individually. cloud.google.com/text-to-speech/quotas

  • @fabiolazza8182
    @fabiolazza8182 หลายเดือนก่อน

    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 ?

  • @dickiie9970
    @dickiie9970 3 หลายเดือนก่อน

    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
      @jiejenn  3 หลายเดือนก่อน

      Can you share the source?

  • @engitix
    @engitix 5 หลายเดือนก่อน

    Which python version do you use?

    • @jiejenn
      @jiejenn  5 หลายเดือนก่อน

      Currently Python 3.10. Looking to upgrade to Python 3.12 soon.

  • @HideBuz
    @HideBuz 3 หลายเดือนก่อน

    Can you go into how to chunk so that sentences are not broken up?

    • @jiejenn
      @jiejenn  3 หลายเดือนก่อน

      Not sure if I understand your question.

    • @HideBuz
      @HideBuz 3 หลายเดือนก่อน

      @@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!

  • @Legend.-.
    @Legend.-. 22 วันที่ผ่านมา

    Can we stream the response of google text to speech?

    • @jiejenn
      @jiejenn  22 วันที่ผ่านมา

      Yes, you can.

    • @Legend.-.
      @Legend.-. 22 วันที่ผ่านมา

      @@jiejenn ohh, can you share any resources for doing it? I am trying to accomplish it but its not working for me.

    • @jiejenn
      @jiejenn  22 วันที่ผ่านมา +1

      ​@@Legend.-. I need to check if I still have the script. I will let you know.

  • @w.davidwilliams2544
    @w.davidwilliams2544 หลายเดือนก่อน

    I am not a Python expert. Can someone help me set it up?

    • @shakil_ilham
      @shakil_ilham หลายเดือนก่อน

      Hi. I can help you.

  • @bringtolife9462
    @bringtolife9462 15 วันที่ผ่านมา

    This program is not working which every you showed in the video. Exactly did your code. but not working

    • @jiejenn
      @jiejenn  15 วันที่ผ่านมา

      @@bringtolife9462 okay.

  • @minhsenma
    @minhsenma 5 หลายเดือนก่อน

    Please makw video add drop shadow to around app

    • @jiejenn
      @jiejenn  5 หลายเดือนก่อน +1

      Can you be more specific? Not sure if I understand what you mean.

    • @minhsenma
      @minhsenma 5 หลายเดือนก่อน

      @@jiejenn yes add style specific to widget and add custom style to mainwindow drop shadow border ...

  • @ribeiro4642
    @ribeiro4642 23 วันที่ผ่านมา

    Wouldn't it be easier to create an API key?
    05:45

    • @jiejenn
      @jiejenn  23 วันที่ผ่านมา

      @@ribeiro4642Only a limited services support API key, TTS is not one of them.

    • @ribeiro4642
      @ribeiro4642 23 วันที่ผ่านมา

      @@jiejenn I'm using Google's TTS via API.
      This made things much simpler.

  • @dantesbytes
    @dantesbytes 4 หลายเดือนก่อน

    :(