Skip to content

Rework cxxpiper module - #1108

Merged
sthibaul merged 1 commit into
brailcom:masterfrom
sola-contrib:piper-rework
Aug 30, 2026
Merged

Rework cxxpiper module#1108
sthibaul merged 1 commit into
brailcom:masterfrom
sola-contrib:piper-rework

Conversation

@unlimitedsola

Copy link
Copy Markdown
Contributor

Disclaimer: Code changes assisted by LLM. I have very limited experience with C++ and autotools. I've done my best to review the code and verify that it at least works on my machine. Apologies for any obvious mistakes that I didn't catch.


Migrate now deprecated/archived piper-phonemize1 based cxxpiper implementation to libpiper2 which was recently added to the upstream piper repository. (as requested in #1092 (comment))

Because we are now using the upstream libpiper C library directly, I figured we should probably also remove the cxx prefix from the module name. (on top that, also many breaking changes and redesigns)

Changes made:

  • Removed conf options that new libpiper no longer support
  • Added peak normalization for parity with Python CLI
  • Simplified voice handling and configuration

Migrate now deprecated/archived piper-phonemize[1] based cxxpiper
implementation to libpiper[2] which was recently added to the upstream
piper repository.

Because we are now using the upstream libpiper C library directly, I
figured we should probably also remove the cxx prefix from the module name.

Changes made:

- Removed conf options that new libpiper no longer support
- Added peak normalization for parity with Python CLI
- Simplified voice handling and configuration

[1]: https://github.com/rhasspy/piper-phonemize
[2]: https://github.com/OHF-Voice/piper1-gpl/tree/main/libpiper
@sthibaul

Copy link
Copy Markdown
Collaborator

I added CI on top of this to be able to check the build, and the code indeed looks fine and much more maintainable :)

@sthibaul
sthibaul merged commit 58d64bc into brailcom:master Aug 30, 2026
6 of 7 checks passed
@sthibaul

Copy link
Copy Markdown
Collaborator

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants