Skip to content

Commit

Permalink
Version bump 2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pndurette committed Jan 1, 2020
1 parent 844cce9 commit efd7cca
Show file tree
Hide file tree
Showing 11 changed files with 59 additions and 16 deletions.
64 changes: 58 additions & 6 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,58 @@ Changelog

.. towncrier release notes start
2.1.0 (2020-01-01)
------------------

Features
~~~~~~~~

- The ``gtts`` module

- Added the ability to customize the Google Translate URL hostname.
This is useful where ``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.

- The 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 (2019-08-29)
------------------

Expand Down Expand Up @@ -103,7 +155,7 @@ Features
(e.g. "en-gb", "fr-ca")
- New ``gTTS()`` parameter ``lang_check`` to disable language
checking.
- ``gTTS()`` now delegates the ``text`` tokenizing to the
- ``gTTS()`` now delegates the ``text`` tokenizing to the
API request methods (i.e. ``write_to_fp()``, ``save()``),
allowing ``gTTS`` instances to be modified/reused
- Rewrote tokenizing and added pre-processing (see below)
Expand All @@ -114,7 +166,7 @@ Features

- Added new exception ``gTTSError`` raised on API request errors.
It attempts to guess what went wrong based on known information
and observed behaviour
and observed behaviour
(`#60 <https://github.com/pndurette/gTTS/issues/60>`_,
`#106 <https://github.com/pndurette/gTTS/issues/106>`_)
- ``gTTS.write_to_fp()`` and ``gTTS.save()`` also raise ``gTTSError``
Expand Down Expand Up @@ -175,15 +227,15 @@ Bugfixes
~~~~~~~~

- ``_minimize()``: Fixed an infinite recursion loop that would occur
when a token started with the miminizing delimiter (i.e. a space)
when a token started with the miminizing delimiter (i.e. a space)
(`#86 <https://github.com/pndurette/gTTS/issues/86>`_)
- ``_minimize()``: Handle the case where a token of more than 100
characters did not contain a space (e.g. in Chinese).
- Fixed an issue that fused multiline text together if the total number of
characters was less than 100
- Fixed ``gtts-cli`` Unicode errors in Python 2.7 (famous last words)
(`#78 <https://github.com/pndurette/gTTS/issues/78>`_,
`#93 <https://github.com/pndurette/gTTS/issues/93>`_,
(`#78 <https://github.com/pndurette/gTTS/issues/78>`_,
`#93 <https://github.com/pndurette/gTTS/issues/93>`_,
`#96 <https://github.com/pndurette/gTTS/issues/96>`_)


Expand All @@ -203,7 +255,7 @@ Improved Documentation

- Rewrote all documentation files as reStructuredText
- Comprehensive documentation writen for `Sphinx <http://www.sphinx-doc.org>`_, published to http://gtts.readthedocs.io
- Changelog built with `towncrier <https://github.com/hawkowl/towncrier>`_
- Changelog built with `towncrier <https://github.com/hawkowl/towncrier>`_

Misc
~~~~
Expand Down
2 changes: 1 addition & 1 deletion gtts/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '2.0.4'
__version__ = '2.1.0'
1 change: 0 additions & 1 deletion news/143.feature

This file was deleted.

1 change: 0 additions & 1 deletion news/197.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion news/200.feature

This file was deleted.

1 change: 0 additions & 1 deletion news/203.feature

This file was deleted.

1 change: 0 additions & 1 deletion news/204.feature

This file was deleted.

1 change: 0 additions & 1 deletion news/204.misc

This file was deleted.

1 change: 0 additions & 1 deletion news/205.misc

This file was deleted.

1 change: 0 additions & 1 deletion news/207.feature

This file was deleted.

1 change: 0 additions & 1 deletion news/207.misc

This file was deleted.

0 comments on commit efd7cca

Please sign in to comment.