text to speech program in python 🔥🔥 #python

preview_player
Показать описание
In this short video, I’ll show you a simple way to make a text-to-speech in python Enjoy!
source code: 👇👇👇
import pyttsx3

# print(voices)

# so we have 3 voices
# i will chose first voice

# speak function
def speak(text):

if __name__=='__main__':
while True:
text=input('Enter your text: ')
speak(text)

Breakdown of Video:
no time stamp cause it is a short video😂😂

BE MY FRIEND:

ABOUT MY CHANNEL:
♥ " आफनै नेपाली पारामा दिनी हो " - Techub geek ♥

Here you will find all the knowledge of computer science practically and theoretically in the Nepali language. From simple tech topics to advanced topics, you will learn it so easily that you will feel like eating दालभात. Below are the topics that this channel is related to.

1. Explaining Android
2. Top 5 Android Apps
3. Windows tips, tricks, and solutions
4. Networking
5. C Programming
6. Python shorts
7. Jarvis tutorials

Affiliated links:
अहिले त केहि छैन

#shorts #python
Рекомендации по теме
Комментарии
Автор

source code: 👇👇👇

import pyttsx3



# print(voices)


# so we have 3 voices
# i will chose first voice

speaker.setProperty('voices', voices[0].id)
speaker.setProperty('rate', 170)

# speak function
def speak(text):
speaker.say(text)
speaker.runAndWait()

if __name__=='__main__':
while True:
text=input('Enter your text: ')
speak(text)

virtualsaathi