piper-phonemize icon indicating copy to clipboard operation
piper-phonemize copied to clipboard

espeak_TextToPhonemesWithTerminator not upstream

Open cryptomilk opened this issue 1 year ago • 14 comments
trafficstars

Hi,

I'm trying to package piper-tts for openSUSE right now.

  • Is there a reason that espeak_TextToPhonemesWithTerminator() has not been submitted upstream to espeak-ng?
  • I've changed the CMakeLists.txt so I can build with system libraries, would you accept a patch for this?

https://build.opensuse.org/package/show/home:gladiac/piper-phonemize https://build.opensuse.org/package/show/home:gladiac/piper-tts

cryptomilk avatar Mar 11 '24 08:03 cryptomilk

The strange thing is that the prototype of TranslateClauseWithTerminator() made it upstream: https://github.com/espeak-ng/espeak-ng/pull/1811

cryptomilk avatar Mar 12 '24 18:03 cryptomilk

That's very odd that they merged the function prototype with no definition! I didn't submit it upstream for two reasons:

  1. I didn't add any tests, and wasn't sure it was even useful outside of Piper
  2. I plan on replacing espeak-ng with something else due to licensing concerns (I prefer MIT/public domain over GPL)

synesthesiam avatar Mar 12 '24 21:03 synesthesiam

I would still try to submit it. I think they would accept it and it would be easier to build piper-tts in distributions. I would love to bring piper-tts to openSUSE and Fedora.

cryptomilk avatar Mar 13 '24 06:03 cryptomilk

I've open a pull request for cmake improvements: https://github.com/rhasspy/piper-phonemize/pull/31

cryptomilk avatar Mar 13 '24 08:03 cryptomilk

https://github.com/espeak-ng/espeak-ng/pull/1878

danemadsen avatar Mar 17 '24 06:03 danemadsen

Where is the espeak_TextToPhonemesWithTerminator though, it's still missing in espeak-ng

bombless avatar Dec 26 '24 00:12 bombless

Where is the espeak_TextToPhonemesWithTerminator though, it's still missing in espeak-ng

rhasspy/espeak-ng checkout this

luispater avatar Dec 29 '24 18:12 luispater

Where is the espeak_TextToPhonemesWithTerminator though, it's still missing in espeak-ng

rhasspy/espeak-ng checkout this

Thank you for your reply! But I still cannot find it there https://github.com/search?q=repo%3Arhasspy%2Fespeak-phonemizer%20espeak_TextToPhonemesWithTerminator&type=code

bombless avatar Jan 01 '25 03:01 bombless

Where is the espeak_TextToPhonemesWithTerminator though, it's still missing in espeak-ng

rhasspy/espeak-ng checkout this

Thank you for your reply! But I still cannot find it there https://github.com/search?q=repo%3Arhasspy%2Fespeak-phonemizer%20espeak_TextToPhonemesWithTerminator&type=code

This one? https://github.com/rhasspy/espeak-ng/blob/8593723f10cfd9befd50de447f14bf0a9d2a14a4/src/libespeak-ng/speech.c#L855

luispater avatar Jan 02 '25 01:01 luispater

Where is the espeak_TextToPhonemesWithTerminator though, it's still missing in espeak-ng

rhasspy/espeak-ng checkout this

Thank you for your reply! But I still cannot find it there https://github.com/search?q=repo%3Arhasspy%2Fespeak-phonemizer%20espeak_TextToPhonemesWithTerminator&type=code

This one? https://github.com/rhasspy/espeak-ng/blob/8593723f10cfd9befd50de447f14bf0a9d2a14a4/src/libespeak-ng/speech.c#L855

Many many thanks for your reply! It helps a lot!

bombless avatar Jan 02 '25 10:01 bombless

Where is the espeak_TextToPhonemesWithTerminator though, it's still missing in espeak-ng

rhasspy/espeak-ng checkout this

Thank you for your reply! But I still cannot find it there https://github.com/search?q=repo%3Arhasspy%2Fespeak-phonemizer%20espeak_TextToPhonemesWithTerminator&type=code

This one? https://github.com/rhasspy/espeak-ng/blob/8593723f10cfd9befd50de447f14bf0a9d2a14a4/src/libespeak-ng/speech.c#L855

Many many thanks for your reply! It helps a lot!

Just like me, I ignored the important information in the README.md. hahaha... “When using eSpeak phonemes, requires an espeak-ng fork with espeak_TextToPhonemesWithTerminator function. This function allows for Piper to preserve punctuation and detect sentence boundaries.”

luispater avatar Jan 02 '25 17:01 luispater

In the hope of actually being able to use the system espeak rather than a patched variant, I've submitted a PR upstream to see if they'll accept it: https://github.com/espeak-ng/espeak-ng/pull/2127

Testing with a Debian setup and patching their package with this patch I can build piper-phonemize with the system espeak + onnxruntime rather than requiring the external versions.

u1f35c avatar Jan 12 '25 19:01 u1f35c

The strange thing is that the prototype of TranslateClauseWithTerminator() made it upstream: espeak-ng/espeak-ng#1811

That's very odd that they merged the function prototype with no definition!

? It was just a normal really missing prototype: that was about TranslateClauseWithTerminator, not espeak_TextToPhonemesWithTerminator

sthibaul avatar Mar 04 '25 13:03 sthibaul

I merged https://github.com/espeak-ng/espeak-ng/pull/2127 so this issue can be closed

sthibaul avatar Mar 04 '25 13:03 sthibaul