“Text -to -Sprachprogramm in Python” Code-Antworten

Text zur Sprache zu spezifischem Sprachpython

from gtts import gTTS
from playsound import  playsound

mytext="Hello Geek! How are you doing??"
language='en'
myobj=gTTS(text=mytext,lang=language,slow=True)
myobj.save("welcome1.mp3")
playsound("welcome1.mp3")
Ujwal Bhargav

Text zur Sprache Python

pip install pyttsx3

import pyttsx3
engine = pyttsx3.init()
engine.say("Whetever you want the program to ray")
engine.runAndWait()
TheCoder1001

Python -Text zur Sprache

pip install pyttsx3
import pyttsx3
friend = pyttsx3.init()
friend.say("you are very smart")
friend.runandwait()
Unsightly Unicorn

Wie man Text mit PTHON in Sprache umwandelt

# please subscribe my channel - https://bit.ly/2Me2CfB
from gtts import gTTS

speech = gTTS(text="hello")
speech.save('speech.wav')
PROGRAMMING HERO

Text -to -Sprachprogramm in Python

import tkinter as tk
import pyttsx3
from tkinter import messagebox

engine = pyttsx3.init()

root = tk.Tk()
root.geometry("500x250")

randText = tk.Label(root, text="Type anything below").pack()
text2turn = tk.Text(root, height=100, width=200)
text2turn.tag_configure("center", justify='center')
text2turn.pack()

def sayText():
    text = text2turn.get(1.0, 'end-1c')

    if text == "":
        messagebox.showwarning("Error", "Please enter some text, I cannot say nothing")

    else:
        engine.say(text)
        engine.runAndWait()

submit = tk.Button(root, text="Say My Text!", command=sayText)
submit.place(x=215, y=200)

root.mainloop()
JessiCoder

Rede, um alles Python -Code zu schreiben

import pyttsx3
Coding boy Hasya

Ähnliche Antworten wie “Text -to -Sprachprogramm in Python”

Fragen ähnlich wie “Text -to -Sprachprogramm in Python”

Weitere verwandte Antworten zu “Text -to -Sprachprogramm in Python” auf Python

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen