TGViewer
پایتون | Data Science | Machine Learning پایتون | Data Science | Machine Learning @python4all_pro · 24.2K subscribers
Post #772 3.22K
gTTS (Google Text-to-Speech) - Python library and command line tool (CLI) for interacting with the Google Translate text-to-speech API.

You can use it to write spoken text to an MP3 file, an object-like file (bytestring) for further audio processing, or directly to standard output.

Peculiarities:
- A customizable tokenizer that allows you to voice text of any length while maintaining correct intonation, abbreviations, decimals and much more.
- Ability to configure text pre-processing to correct pronunciation

Installation:
pip install gTTS

Example usage on the command line:
gtts-cli 'hello' --output hello.mp3

Or in a Python module:
from gtts import gTTS
tts = gTTS('hello')
tts.save('hello.mp3')


🖥 GitHub
🟡 Docks



#library
#python

🆔 @Python4all_pro
  • 👍 4
  • ❤ 1
  • 🔥 1
More from @python4all_pro
  1. Oct 3, 2026🟣کتاب Oxford word skills یک بار جایزه بهترین کتاب آموزش زبان انگلیسی سال را دریافت کرده.…
  2. Oct 2, 2026با هوش مصنوعی فقط کد تولید نکن؛ محصول بساز. بوت‌کمپ ۷ روزه و عملی ساخت محصول واقعی با هوش…
  3. Oct 2, 2026💥 ۲۰۰ هزار تومان تخفیفِ بیشتر علاوه بر تخفیفِ ۷۵ درصدی موجود در سایت | اشتراک یک ساله فرا…
  4. Oct 2, 2026اگه کسب و کارت هوشمند نیست،وقتشه هوشمندش کنی! 🎓 دوره جامع ABA | دستیار کسب وکار هوشمند در…
  5. Oct 1, 2026ثبت نام دوره‌های تخصصی آموزش هوش مصنوعی شروع شد! اگه مدت‌هاست می‌خوای هوش مصنوعی رو جدی‌تر…
  6. Sep 29, 2026What better way to understand a powerful tool like Claude Code than to build your own vers…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →