# Test script for HuggingFace TTS import asyncio import logging from hf_tts_client import HuggingFaceTTSClient logging.basicConfig(level=logging.INFO) async def test_hf_tts(): print("🧪 Testing HuggingFace TTS Client...") client = HuggingFaceTTSClient() try: # Test TTS generation audio_path = await client.text_to_speech("Hello, this is a test of HuggingFace TTS!") print(f"✅ TTS Success! Audio saved to: {audio_path}") return True except Exception as e: print(f"❌ TTS Failed: {e}") return False if __name__ == "__main__": asyncio.run(test_hf_tts())