-
improvements
- The espeak data directory can now be chosen with
EspeakWrapper.set_data_path()or the environment variable
PHONEMIZER_ESPEAK_DATA_PATH. SeePR #213 <https://github.com/bootphon/phonemizer/pull/213>__. phonemize()now reuses backend instances across calls instead of
building a new one every time. SeePR #212 <https://github.com/bootphon/phonemizer/pull/212>__.
- The espeak data directory can now be chosen with
-
bug fixes
- Behaviour change: a comma or period between two digits is no longer
treated as punctuation, so numbers such as19,99and3.14are kept
whole instead of being split into two numbers. Splitting them changed the
spoken output. The previous behaviour can still be obtained by passing an
explicit regex aspunctuation_marks. SeePR #216 <https://github.com/bootphon/phonemizer/pull/216>__. - Selecting a language by its code no longer resolves to an mbrola variant
that shadows the plain espeak voice, which made such languages unusable
when the mbrola binary is absent. SeePR #215 <https://github.com/bootphon/phonemizer/pull/215>__. - The espeak library is now also looked up under its
lib-prefixed names,
so a stock espeak-ng installation on Windows is found. SeePR #214 <https://github.com/bootphon/phonemizer/pull/214>__. - Tests related to
festivalbackend are now skipped whenfestivalis not installed on the system. - Improved espeak library lookup on macos.
- Unusable mbrola voices are filtered out on Windows.
- Make the segments backend an optional dependency. See
PR #211 <https://github.com/bootphon/phonemizer/pull/211>__.
- Behaviour change: a comma or period between two digits is no longer