Gtts

Latest version: v2.5.4

Safety actively analyzes 702323 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 6

2.1.1

------------------

Bugfixes

- Debug mode now uses a copy of locals() to prevent RuntimeError ([\213](https://github.com/pndurette/gTTS/issues/213))

2.1.0

------------------

Features

- The `gtts` module
- Added the ability to customize the Google Translate URL
hostname. This is useful when `google.com` might be blocked
within a network but a local or different Google host (e.g.
`google.cn`) is not ([\143](https://github.com/pndurette/gTTS/issues/143), [\#203](https://github.com/pndurette/gTTS/issues/203)):
- New `gTTS()` parameter `tld` to specify the top-level domain
to use for the Google hostname, i.e
`https://translate.google.<tld>` (default: `com`).
- Languages are also now fetched using the same customized
hostname.
- Pre-generated TTS API request URLs can now be obtained instead
of writing an `mp3` file to disk (for example to be used in an
external program):
- New `get_urls()` method returns the list of URLs generated
by `gTTS`, which can be used in lieu of `write_to_fp()` or
`save()`.
- The `gtts-cli` command-line tool
- New `--tld` option to match the new `gtts` customizable hostname [\200](https://github.com/pndurette/gTTS/issues/200), [#207](https://github.com/pndurette/gTTS/issues/207))
- Other
- Added Python 3.8 support ([\204](https://github.com/pndurette/gTTS/issues/204))

Bugfixes

- Changed default word-for-word pre-processor (`('M.', 'Monsieur')`)
which would substitute any \'m.\' for \'monsieur\' (e.g. \'them.\'
became \'themonsieur\') ([\197](https://github.com/pndurette/gTTS/issues/197))

Improved Documentation

- Added examples for newer features ([\205](https://github.com/pndurette/gTTS/issues/205), [\#207](https://github.com/pndurette/gTTS/issues/207))

Misc

- [\204](https://github.com/pndurette/gTTS/issues/204), [\#205](https://github.com/pndurette/gTTS/issues/205), [\#207](https://github.com/pndurette/gTTS/issues/207)

2.0.4

------------------

Features

- gTTS is now built as a wheel package (Python 2 & 3) ([\181](https://github.com/pndurette/gTTS/issues/181))

Improved Documentation

- Fixed bad example in docs ([\163](https://github.com/pndurette/gTTS/issues/163), [\#166](https://github.com/pndurette/gTTS/issues/166))

Misc

- [\164](https://github.com/pndurette/gTTS/issues/164), [\#171](https://github.com/pndurette/gTTS/issues/171), [\#173](https://github.com/pndurette/gTTS/issues/173), [\#185](https://github.com/pndurette/gTTS/issues/185)

2.0.3

------------------

Features

- Added new tokenizer case for \':\' preventing cut in the middle of a
time notation ([\135](https://github.com/pndurette/gTTS/issues/135))

Misc

- [\159](https://github.com/pndurette/gTTS/issues/159)

2.0.2

------------------

Features

- Added Python 3.7 support, modernization of packaging, testing and CI ([\126](https://github.com/pndurette/gTTS/issues/126))

Bugfixes

- Fixed language retrieval/validation broken from new Google Translate
page ([\156](https://github.com/pndurette/gTTS/issues/156))

2.0.1

------------------

Bugfixes

- Fixed an UnicodeDecodeError when installing gTTS if system locale
was not utf-8 ([\120](https://github.com/pndurette/gTTS/issues/120))

Improved Documentation

- Added *Pre-processing and tokenizing \> Minimizing* section about
the API\'s 100 characters limit and how larger tokens are handled ([\121](https://github.com/pndurette/gTTS/issues/121))

Misc

- [\122](https://github.com/pndurette/gTTS/issues/122)

Page 2 of 6

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.