Bug 287241 - audio/espeak-ng: Import an upstream patch needed to build a text-to-speech tool
Summary: audio/espeak-ng: Import an upstream patch needed to build a text-to-speech tool
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Stefan Eßer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-06-02 20:34 UTC by Kenneth Raplee
Modified: 2025-06-03 06:59 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (se)


Attachments
audio/espeak-ng changes with the upstream patch (2.83 KB, patch)
2025-06-02 20:34 UTC, Kenneth Raplee
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kenneth Raplee 2025-06-02 20:34:59 UTC
Created attachment 260904 [details]
audio/espeak-ng changes with the upstream patch

I'm working on porting a tool called "Piper" which needs this patch for espeak-ng as a library to build. Originally, the author created an externally bundled espeak-ng fork with this change to build with their utility.

Relatively recently, someone else submitted a PR with these required changes and it got merged upstream, but there is no new release yet.

https://github.com/espeak-ng/espeak-ng/pull/2127
Comment 1 Stefan Eßer freebsd_committer freebsd_triage 2025-06-03 06:18:03 UTC
Thank you for providing the patch. I'm currently verifying that it builds on some combinations of FreeBSD version and architectures using "poudriere testport" and will commit the update as soon as these tests have succeeded.
Comment 2 commit-hook freebsd_committer freebsd_triage 2025-06-03 06:58:46 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=e54088787fef40c1848d98a07a39ae3438d87fc4

commit e54088787fef40c1848d98a07a39ae3438d87fc4
Author:     Kenneth Raplee <kenrap@kennethraplee.com>
AuthorDate: 2025-06-03 06:46:34 +0000
Commit:     Stefan Eßer <se@FreeBSD.org>
CommitDate: 2025-06-03 06:57:49 +0000

    audio/espeak-ng: import upstream patch for support of "Piper"

    This patch imports the upstream pull request #2127 that has been
    accepted on 2025-03-04.

    It adds the espeak_TextToPhonemesWithTerminator() function to the
    library, which is required by the Piper text to speech software.

    PR:             287241

 audio/espeak-ng/Makefile                           |  1 +
 .../patch-src_include_espeak-ng_speak__lib.h (new) | 15 ++++++++++++
 .../files/patch-src_libespeak-ng_speech.c (new)    | 28 ++++++++++++++++++++++
 3 files changed, 44 insertions(+)