Daily Check System avec TTS Windows configuré
Lead Conflicts documentation avec 7 stratégies
6 nouvelles cartes Anki (LEAD-001, LEAD-002, ACTION-003/004/005)
Shipping strategy + food recipes + topics
🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>
28 lines
829 B
Python
28 lines
829 B
Python
"""Test script to list and preview available TTS voices"""
|
|
import pyttsx3
|
|
|
|
engine = pyttsx3.init()
|
|
voices = engine.getProperty('voices')
|
|
|
|
print("Available voices on your system:\n")
|
|
for i, voice in enumerate(voices):
|
|
print(f"{i}. {voice.name}")
|
|
print(f" ID: {voice.id}")
|
|
print(f" Languages: {voice.languages}")
|
|
print()
|
|
|
|
# Test the first few voices
|
|
print("\n--- Testing voices ---\n")
|
|
test_text = "Yo Alexis, daily check time. Tu fais le check ou tu vas oublier ?"
|
|
|
|
for i, voice in enumerate(voices[:3]): # Test first 3
|
|
print(f"Testing voice {i}: {voice.name}")
|
|
engine.setProperty('voice', voice.id)
|
|
engine.setProperty('volume', 1.0)
|
|
engine.setProperty('rate', 150)
|
|
engine.say(f"Voice {i}. {test_text}")
|
|
engine.runAndWait()
|
|
input("Press Enter for next voice...")
|
|
|
|
print("\nDone!")
|