RepositoryPythonCACanada
pndurette

pndurette/gTTS

Python library and CLI tool to interface with Google Translate's text-to-speech API

2.6ksao
390fork
13issue
2lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: pypi

#1 Repository Của Tháng

1
TINIX TRENDING·Chủ đề: python-library

#1 Repository Của Tháng

1
TINIX TRENDING·Chủ đề: speech-api

#1 Repository Của Tháng

🎙️ gTTS - Biến văn bản thành giọng nói chỉ bằng vài dòng lệnh

gTTS (Google Text-to-Speech) là thư viện Python và công cụ CLI dùng API chưa công bố của Google Translate để tạo file MP3 từ văn bản.

gTTS (Google Text-to-Speech) là một thư viện Python và công cụ dòng lệnh (CLI) giúp bạn giao tiếp với API chuyển đổi văn bản thành giọn nói của Google Translate. Dự án cho phép ghi dữ liệu âm thanh MP3 vào file, đối tượng giống file (bytestring) để xử lý thêm, hoặc đầu ra trực tiếp qua stdout.

✨ Điểm nổi bật

  • Bộ phân tách câu tùy chỉnh: xử lý văn bản dài không giới hạn, giữ nguyên ngữ cảnh, từ viết tắt, số thập phân.
  • Bộ tiền xử lý văn bản linh hoạt: hỗ trợ chỉnh sửa phát âm hoặc chuyển đổi ký tự trước khi tạo giọng nói.
  • Hỗ trợ CLI và thư viện Python: dùng gtts-cli ngay trên terminal hoặc nhúng vào mã nguồn Python.
  • Xuất file MP3 chất lượng cao: lưu trực tiếp ra file hoặc trả về bytestring để xử lý âm thanh sau này.
  • Miễn phí, không cần API key: chỉ cần cài đặt và sử dụng ngay.

💡 Vì sao đáng chú ý

gTTS khác với Google Cloud Text-to-Speech – nó không cần đăng ký tài khoản hay trả phí. Chỉ cần cài đặt bằng pip install gTTS, bạn có thể dùng ngay cả ở dòng lệnh lẫn trong code Python. Tuy nhiên, do sử dụng API nội bộ chưa công bố của Google Translate, dự án không bảo đảm ổn định nếu Google thay đổi. Phù hợp cho dự án cá nhân, prototypt, hoặc ứng dụng giáo dục nhỏ.


#Python #TextToSpeech #TTS #GoogleTranslate #CLI #OpenSource #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryPython
coqui-ai/TTS

🐸💬 - a deep learning toolkit for Text-to-Speech, battle-tested in research and production

46.2k
Aug 16, 2024
RepositoryPython
OpenBMB/VoxCPM

VoxCPM2: Tokenizer-Free TTS for Multilingual Speech Generation, Creative Voice Design, and True-to-Life Cloning

42.9k
Nov 9, 2026
RepositoryPython
babysor/MockingBird

🚀Clone a voice in 5 seconds to generate arbitrary speech in real-time

36.9k
Mar 3, 2026
RepositoryPython
yt-dlp/yt-dlp

A feature-rich command-line audio/video downloader

210.2k
Nov 23, 2026
RepositoryPython
harry0703/MoneyPrinterTurbo

利用 AI 大模型和自动化工作流,根据主题或关键词一键生成高清短视频。Generate HD short videos from a topic or keyword with an automated AI workflow.

145.2k
Nov 23, 2026
RepositoryTypeScript
morluto/rea

Reverse engineer anything with agents, from app behavior down to native binaries.

475.2k
Nov 23, 2026
RepositoryPython
netease-youdao/EmotiVoice

EmotiVoice 😊: a Multi-Voice and Prompt-Controlled TTS Engine

8.5k
Sep 3, 2026
Modeltext-to-speech
ResembleAI/chatterbox

Chatterbox TTS Made with ❤️ by Latest Release: Chatterbox Multilingual V3 Chatterbox Multilingual V3 is the latest general-purpose multilingual TTS model in the Chatterbox family. It keeps the same 0.5B model size while improving speaker similarity,...

♥0
2.7M
Jun 10, 2026
Modeltext-to-speech
audio-cpp/audio.cpp-gguf

audio.cpp GGUF Model Packages This directory contains audio.cpp-native GGUF conversions of multiple speech models. These files are intended for use with audio.cpp(https://github.com/0xShug0/audio.cpp). For conversion details, supported layouts, dire...

♥0
10.0M
Nov 23, 2026