Bug 253816 - New port: audio/libttspico - compact text-to-speech engine
Summary: New port: audio/libttspico - compact text-to-speech engine
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
Depends on:
Reported: 2021-02-24 15:02 UTC by Henrik Gulbrandsen
Modified: 2021-02-25 09:21 UTC (History)
1 user (show)

See Also:

svn diff for audio/libttspico (66.98 KB, patch)
2021-02-24 15:02 UTC, Henrik Gulbrandsen
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Henrik Gulbrandsen 2021-02-24 15:02:14 UTC
Created attachment 222791 [details]
svn diff for audio/libttspico

This is Debian's version of SVOX Pico TTS, which also introduces the pico2wave utility for simple testing of the library. The port includes a bunch of patches, but most of them are there to avoid "this" as argument name in include files. That has no effect on the functionality, but makes them easier to use from C++.

SVOX Pico is a very compact multilingual Text-To-Speech (TTS) library.
It was designed for integration in mobile devices and includes female
voices for English (US and GB), French, German, Italian, and Spanish,
each of which takes about 1 MiB of disk space on a 64-bit x86 system.

Pico TTS was originally open-sourced for Android. This version is the
one maintained by Debian. They consider it to be non-free because the
binary language files don't come with the corresponding source code.
However, formats for both source and binary versions of the lingware
knowledge bases seem to be well documented, and it's all Apache 2.0.
Also, lingware source IS included, but not that for the build tools.

WWW: https://web.archive.org/web/20100310022501/http://svox.com/

    patch.......... works
    portlint -AC... happy
    portclippy..... silent
    poudriere...... passed on 12.2-RELEASE-p4
Comment 1 Daniel Engberg 2021-02-24 16:18:52 UTC
https://github.com/gmn/nanotts might be more useful?

CPPFLAGS + LDFLAGS --> USES= localbase

Comment 2 Henrik Gulbrandsen 2021-02-25 07:43:54 UTC
(In reply to daniel.engberg.lists from comment #1)

NanoTTS looks like an improved version of pico2wave, but I'm only interested in the library itself, because I have it as a dependency three ports further down the line. The pico2wave utility is mostly a good way to verify that things work.

Thanks for the code review! I'll include the localbase fix in any updated patch, but I'm delaying that for now, because something blocks me from uploading correct patches. I could only get the first one through by copying and pasting as text, but it looks like the newlines got distorted on the way, so I need a workaround.
Comment 3 Henrik Gulbrandsen 2021-02-25 09:20:00 UTC
As a workaround for my patch uploading problem, I have now stored an updated diff and the corresponding poudriere log on my web server:

Comment 4 Daniel Engberg 2021-02-25 09:21:53 UTC
I just had a quick look at it and it seems like the library is provided however it's not installed by default as far as I can tell.

The intention was to find something a bit better maintained but you're of course free to choose whatever you see fit.