Convert Text to Speech Using Python | GeeksforGeeks

Поділитися
Вставка
  • Опубліковано 14 жов 2024
  • In this video, we're going to discuss how to convert Text to Speech using Python. In this project, the user will be required to enter the text as input and then the Python program will transform the entered text into audio speech. Here, we will use the pyttsx3 library in Python to create this project. So, let's get started now.
    Check Out the Related Articles:
    Convert Text to Speech in Python [www.geeksforge...]
    Complete Python Tutorial [www.geeksforge...]
    Apply For Video Internship Program - script.geeksfo...
    Our courses: practice.geeks...
    This video is contributed by Shambhavi Gupta.
    Please Like, Comment, and Share the Video with your friends.
    #python #projects #texttospeech #beginner #gtts
    Install our Android App:
    play.google.co...
    If you wish, translate into the local language and help us reach millions of other geeks:
    www.youtube.com...
    Follow us on our Social Media Handles -
    Twitter- / geeksforgeeks
    LinkedIn- / geeksforgeeks
    Facebook- / geeksforgeeks.org
    Instagram- www.instagram....
    Reddit- / geeksforgeeks
    Telegram- t.me/s/geeksfo...
    Also, Subscribe if you haven't already! :)

КОМЕНТАРІ • 41

  • @GeeksforGeeksVideos
    @GeeksforGeeksVideos  3 роки тому +2

    Apply For Video Internship Program - script.geeksforgeeks.org/on-boarding/youtube

  • @dostirathi8254
    @dostirathi8254 6 місяців тому +7

    import pyttsx3
    text_speech= pyttsx3.init()
    answer = input("myself robo")
    while True:
    answer = input("what you convert")
    if(answer=="q"):
    break
    text_speech.say(answer)
    text_speech.runAndWait()
    Little efforts to the existing code:)

  • @charuarora6621
    @charuarora6621 2 роки тому +10

    Code runs successfully .. thanks for tutorial 😄😄

  • @theanonymoustechie
    @theanonymoustechie Рік тому +2

    Hello and thanks for your explanation. I only recommend that in future videos, that you slightly slow down the explanation. Ty!

  • @najamnawazish2779
    @najamnawazish2779 2 роки тому +1

    After lot of attempts found this and it works..... Thank you

  • @adipurnama_workshop
    @adipurnama_workshop 10 місяців тому +1

    thank you very much

  • @xinwenzhang4150
    @xinwenzhang4150 2 роки тому +1

    HI !Thanks a lot for this video. BUt I have one question,if python vonvert text data in foreign language such as Russia, how should I change it ,in order to speech in Russian? Thanks!!!

    • @releasethequakin
      @releasethequakin Рік тому +1

      Not sure if you still need help but the stack overflow page with the title "Change pyttsx3 language" helped me change it to Spanish. It seems like you have to have a voice on your computer in the language you want

  • @Feelinglonely007
    @Feelinglonely007 Рік тому +1

    This video is very helpful, thank you so much.

  • @life_inked
    @life_inked Рік тому +1

    How can this be done on jupyter?

  • @shraddhapatil2538
    @shraddhapatil2538 Рік тому

    Thank you so much for this video

  • @callformusic2428
    @callformusic2428 Рік тому +1

    Thanks a lot but how can we change the voice sample ? And how to control the seed?

    • @Mohan12-3
      @Mohan12-3 Рік тому +1

      By the help of cmd using pip

  • @deepikat4520
    @deepikat4520 8 місяців тому

    Thank you

  • @subhzz
    @subhzz 8 місяців тому

    Thank you mam

  • @bertramnicolaisen7463
    @bertramnicolaisen7463 Рік тому

    Thank you so much. It made my day

  • @ntumbabutshiteya6151
    @ntumbabutshiteya6151 2 роки тому

    Ooh thank you so much you save my life

  • @MuhammadAwais-wn7pc
    @MuhammadAwais-wn7pc 11 місяців тому

    Helpful

  • @darkwo0d
    @darkwo0d Рік тому

    It worked tnx.

  • @gayathri1525
    @gayathri1525 2 роки тому

    Hey my friend , its not executing...
    Just process finished with exit code 0
    And nothing is happening!
    Pls give me the solution ☹️

    • @jatin1110
      @jatin1110 5 місяців тому

      run in terminal

  • @sunakshisingh4926
    @sunakshisingh4926 2 роки тому

    Ma'am can you please tell how to download pyttsx3 module?

    • @vaishnavivaishu5174
      @vaishnavivaishu5174 2 роки тому +1

      Go to command prompt and try pip install yours module name

  • @rushikeshdeshmukhmarathibo7465
    @rushikeshdeshmukhmarathibo7465 3 роки тому +1

    Great video

  • @TheStickCollector
    @TheStickCollector 3 роки тому

    I want to do this but with c#
    Good info

  • @tdgamers365
    @tdgamers365 2 роки тому

    Mam how we delay in voice🙄🙄

  • @phantomofficial
    @phantomofficial 11 місяців тому

    Not working on linux

  • @mariamyloth6179
    @mariamyloth6179 2 роки тому

    its not working

  • @maulikgohil8344
    @maulikgohil8344 2 роки тому

    How to download that audio?

  • @shahirnaga4507
    @shahirnaga4507 2 роки тому

    How about a certain accent?

    • @Mohan12-3
      @Mohan12-3 Рік тому +1

      We can change in cmd by commanding using pip

  • @samirsasa9763
    @samirsasa9763 2 роки тому

    what about Arabic language??

    • @Mohan12-3
      @Mohan12-3 Рік тому

      We can use arbaic accent dont know about the language

  • @carlosdiazreyes9849
    @carlosdiazreyes9849 Рік тому +2

    Why almost all Hindi can't pronunce properly in english? So difficult to understand a word! The voice generated has a nice pronunciation and I can understand it 100%.

  • @PlaylistsM
    @PlaylistsM Рік тому

    XD

  • @manumaunman
    @manumaunman 9 місяців тому

    Too monotonous .. Any library that is more of human

  • @draganmorganukic-gudgin884
    @draganmorganukic-gudgin884 2 роки тому +2

    Outdated

  • @Imran-shorts1
    @Imran-shorts1 Рік тому

    Thank you so much

  • @DanishKhan-sx8ri
    @DanishKhan-sx8ri 3 роки тому +2

    Thanks