import asyncio
from core.asset_generator import AssetGenerator

async def test():
    generator = AssetGenerator()
    
    # Generate the Male sample
    print("Generating male Castilian audio...")
    await generator.generate_speech(
        text="Hola, soy Álvaro y hablo con voz masculina.",
        output_path="media/test_male.mp3",
        gender="male"
    )
    
    # Generate the Female sample
    print("Generating female Castilian audio...")
    await generator.generate_speech(
        text="Hola, soy Elvira y hablo con voz femenina.",
        output_path="media/test_female.mp3",
        gender="female"
    )
    print("✨ Both files exported to the /media directory successfully!")

if __name__ == "__main__":
    asyncio.run(test())