Skip to content

phonemizer-3.2.0

Compare
Choose a tag to compare
@hadware hadware released this 23 May 20:20
· 21 commits to master since this release
  • bug fixes

    • Fixed a bug when trying to restore punctuation on very long text.
      See #108
  • improvements

    • Improved consistency with the handling of word separators when
      preserving punctuation, and when using a word separator that is
      not a literal space character. See
      #106
  • new features

    • Added the option to define punctuation with a regular expression.
      Previously only strings were accepted. See #120

      • In the python API, the punctuation_marks parameter can now be
        passed to phonemize (or a backend constructor) as a re.Pattern
        that defines which characters will be matched as punctuation.
        Passing punctuation_marks as a str will continue to function as
        before, treating each character in the string as a punctuation mark.

      • Added the optional parameter --punctuation_marks_is_regex to the CLI
        interface. When used, the CLI will attempt to compile a re.Pattern
        from the value passed to --punctuation-marks.