Ein stoffpüpchen. Das Püppchen soll mänlich sein,schwarze Locken haben und interessant wirken. Das Püppchen soll „Arkamouzil“ heißen und kann sprechen. In einer Sprechblase soll das Wort Mammou stehen. Auch andere Parolen sollen sprechbar sein.
z.b. 1, 2, 3, ..
AZURE Lösung für Männliche Stimme (python code)
import azure.cognitiveservices.speech as speechsdk
# Deine Azure Speech Service Daten hier eintragen
speech_key = „AZURE_SPEACH_KEY“
service_region = „westeurope“ # z. B. „westeurope“
def synthesize_speech(text, filename=“c:/IoAr/02_Coding/TTS_Mina_den_eimai_katholou_kala.mp3″):
# Speech Config laden
speech_config = speechsdk.SpeechConfig(subscription=speech_key, region=service_region)
# Stimme einstellen (männliche griechische Stimme)
speech_config.speech_synthesis_voice_name = „el-GR-NestorasNeural“
# Audioausgabe als MP3
audio_config = speechsdk.audio.AudioOutputConfig(filename=filename)
# Synthesizer erstellen
synthesizer = speechsdk.SpeechSynthesizer(speech_config=speech_config, audio_config=audio_config)
# Sprache ausgeben
result = synthesizer.speak_text_async(text).get()
if result.reason == speechsdk.ResultReason.SynthesizingAudioCompleted:
print(f“✅ Audio gespeichert als {filename}“)
elif result.reason == speechsdk.ResultReason.Canceled:
cancellation_details = result.cancellation_details
print(f“❌ Fehler: {cancellation_details.reason}“)
if cancellation_details.error_details:
print(f“Details: {cancellation_details.error_details}“)
if __name__ == „__main__“:
#synthesize_speech(„πόοοοο πόοοο τι πάθαμε“)
#synthesize_speech(„πόοοοο πόοοο, τι δουλειά έχω εγώ ο μηχανικός με μια μπαρόβια“)
#synthesize_speech(„Κάντε κουράγια!“)
#synthesize_speech(„Τζόνις, από το καβατζώνεις!“)
synthesize_speech(„Μινά… δεν είμαι καθόλου καλά!“)
oder python code für normale griechische stimme:
from gtts import gTTS
# Griechischer Text
text = „πω πω τι πάθαμε“
# Sprache auf Griechisch („el“)
tts = gTTS(text=text, lang=“el“)
# Datei speichern
tts.save(„c:/IoAr/02_Coding/popotipathame.mp3“)
print(„Audio gespeichert als popotipathame.mp3“)

Schreibe einen Kommentar