Page 1 of 1

Wie kann ich Text-to-Speech-Ausgabe als MP3-Datei speichern?

Posted: 11 May 2025, 20:07
by Anonymous
Hier ist mein Python -Code: < /p>

Code: Select all

import pyttsx3

engine = pyttsx3.init(driverName='sapi5')
f = open("tanjil.txt", 'r')
theText = f.read()
f.close()
engine.say(theText)
engine.runAndWait()
Ich konnte die Datei nicht in einer Audiodatei speichern.