couple-repo/anki_tingting/test_voices_winrt.py
StillHammer fc0d320cd3 Add Daily Check System + Lead Conflicts + 6 Anki cards
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>
2025-11-13 19:43:48 +08:00

45 lines
1.2 KiB
Python

"""Test Windows modern TTS voices using WinRT"""
import asyncio
import edge_tts
async def test_edge_voices():
"""Test Edge TTS voices (cloud-based, high quality)"""
# List some good voices
voices = [
("en-US-GuyNeural", "English Male (Guy)"),
("en-US-JennyNeural", "English Female (Jenny)"),
("fr-FR-HenriNeural", "French Male (Henri)"),
("fr-FR-DeniseNeural", "French Female (Denise)"),
]
test_text = "Yo Alexis, daily check time. Tu fais le check ou tu vas oublier ?"
print("Testing Edge TTS voices (high quality):\n")
for voice_id, voice_name in voices:
print(f"Testing: {voice_name} ({voice_id})")
# Generate speech
communicate = edge_tts.Communicate(test_text, voice_id)
output_file = f"test_{voice_id}.mp3"
await communicate.save(output_file)
# Play it
import os
os.system(f'start {output_file}')
input(f"Press Enter for next voice...")
# Cleanup
try:
os.remove(output_file)
except:
pass
print("\nDone! Which voice did you prefer?")
if __name__ == "__main__":
# First install: pip install edge-tts
asyncio.run(test_edge_voices())