news-summarize / clearCache.py
Manishkumaryadav's picture
Upload 8 files
706ec74 verified
raw
history blame
306 Bytes
# import nltk
# nltk.download('all')
from gtts import gTTS
# Sample Hindi text
text = "नमस्ते, यह एक परीक्षण संदेश है।"
# Generate TTS in Hindi
tts = gTTS(text=text, lang='hi')
tts.save("test_hindi.mp3")
print("✅ Hindi TTS audio saved successfully!")