import requests

# Synthesize and get audio file
response = requests.post(
    "http://localhost:8000/convert-text-to-speech",
    json={"text": "तकनीक के क्षेत्र में भारत तेजी से आगे बढ़ रहा है"}
)

with open("output.wav", "wb") as f:
    f.write(response.content)
