Skip to content

Abbreviation (bzgl.) pronounced wrong (but works with espeak-ng) #69

@GithubAnon0000

Description

@GithubAnon0000

Hello again!

I am using piper with the thorsten (high) voice.
I wanted to see if it's possible to pronounce "bzgl." correctly without having to use a separate string that says "bezüglich". But it always speaks a long pause with your voice, where with espeak it works fine.

Maybe you've got an idea?

Steps to reproduce

  1. Edit the espeak dictionary by adding the following into de_extra file: bzgl b@ts'y:klIC $dot
  2. Compile the dictionary and copy it to the .dict file that piper uses: sudo espeak-ng --compile=de && cp /usr/lib/x86_64-linux-gnu/espeak-ng-data/de_dict ../TTS/espeak-ng-data/de_dict
  3. Use echo "Ich habe Fragen bzgl. Ihrer Rückmeldung." | ./piper --model ./de_DE-thorsten-high.onnx --output-file ../OUTPUT/text.wav for the audio generated with your voice model.
  4. Use espeak-ng "Ich habe Fragen bzgl. Ihrer Rückmeldung." -v German --stdout > ../OUTPUT/text_espeak.wav to generate the same audio with espeak.
  5. Compare the results: OUTPUT.zip

The voice obviously is different but so is the pronounciation. A workaround is to just use "bezüglich" instead of "bzgl.".

Expected Behavior

The pause after "bzgl." shouldn't be there.

Actual behavior

The pause is there.

Other things tried

According to espeak dictionary docs I tried the following alternatives one by one:

bzgl	b@ts'y:klIC $dot
bzgl	b@ts'y:klIC $hasdot
bzgl	bezüglich $text $dot
bzgl	bezüglich $text $hasdot

None where successfull though with the thorsten voice. Adding a dot after bzgl made it worse, even in espeak:

bzgl.	b@ts'y:klIC $dot
bzgl.	b@ts'y:klIC $hasdot
bzgl.	bezüglich $text $dot
bzgl.	bezüglich $text $hasdot

Version info

piper: 1.2.0
OS: Debian oldstable (gnome 3.38.5, X11)
python: 3.9.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions