summaryrefslogtreecommitdiff
path: root/tools/voice.pl
AgeCommit message (Collapse)Author
2021-09-28voice: Add default presets for Danish.Solomon Peachy
(The language remains <75% translated) Change-Id: I7c9b7627e745aafc60a3d8965e7aceaa63c7664c
2020-12-12voice: Generate Dutch voice file now that the translation is completeSolomon Peachy
Change-Id: Ic5fd45002e94f99d4557fca9ffa75df7fa6f20d8
2020-07-27updatelang: New tool to update language files.Solomon Peachy
Change-Id: I3c18bb34770b4b4b321199149a2ea693dfbdb7f4
2020-07-19voice: Allow use of an existing (textual) voiceids fileSolomon Peachy
If it's present, we don't need to generate one, which means we don't need to know the target name and features list. The next step is to accept the binary variant that rbutil uses so we can generate a complete voice file on the cmdline. Change-Id: I1a355f985e6af46b11610de781996000110ae9de
2020-07-12voice: Ensure there are no missing strings when generating the voicelist.Solomon Peachy
If the translation is not 100% complete, we need to make sure anything missing is copied from English so there won't be any gaps in the voice files. (This behavior is similar to what we do for the regular binary lang files) Change-Id: I5fd2a50d08317eb8445926145a74a38033e0ebcc
2020-07-11voice: Two more fixes.Solomon Peachy
Change-Id: I5aaf10c588f4396e61942b8fcd6c62c792ea175b
2020-07-11voice: More fixes, and add more languagesSolomon Peachy
* Pass strings via stdin where possible * Add German, Italian, and Norweigan to the build list. (in other words, everything with >=95% coverage) Change-Id: I0154b178b15ddd0b79566c1cb62f76ade32824aa
2020-07-11voice: Further enhancements for multi-lingual voice generationSolomon Peachy
* configure: allow use of full tts engine names when making selection * voice.pl: fixes for espeak-ng * build.pm: Add a list of "standard" voices for tooling use The latter will be used by the nightly builder infrastructure to determine what voices to generate. Change-Id: Iff55288f94a30fbe08d8345b730969b7264b5e0f
2020-07-11voice: More voice generation fixes:Solomon Peachy
* espeak vs espeak-ng (prefer the latter!) * voicepool was busted for most non-english strings Change-Id: Iae6df0f5426155b7b1f444160814ff9ef4581f21
2020-07-11voices: Add tts language mappings for the top 19 languagesSolomon Peachy
festival: english and spanish only gtts: all but nederlands espeak: all (need espeak-ng for czech, greek, and japanese) Change-Id: I7df1b3235b48f352b0af3c13e3742e85432bc692
2020-07-10voice: Enhance 'espeak' to automatically pick the language + voiceSolomon Peachy
Most of the 'perfect' or 'good' translations are covered. Also, don't override user-specified voice Change-Id: I837bd67e9df2b8bcc7e020f12a2f411c9175565b
2020-07-09voice: Fix some perl warningsSolomon Peachy
(got lost in the output during my test runs) Change-Id: I3467b96a9607a4d6cf1e26348cd496be508809d3
2020-07-08voice: Add support for Google Translate's speech synthesizerSolomon Peachy
Uses the 'gtts-cli' command line client. Supports a wide variety of languages, including all "Complete" and "Good" Rockbox translations. Additional changes: * voice synth script can accept pre-encoded mp3 files * Move language->synth options mapping into the voice script * Additional cleanups Change-Id: I9523e2bca87cbcee2d8c4111f9892e8e458c7419
2020-04-16voice: Add support for Mimic TTS engine.Solomon Peachy
...It generates decent voice files in 1/10th the time of festival. Change-Id: I1bf9271633a8a0e9c483761b8685f296d2f303b8
2018-12-22Support using 'rbspeak' to generate voice files.Solomon Peachy
(Full credit to Igor Poretsky) Change-Id: Ib9c5d2748cd7e0543b7fd110e83b4656089254b8
2011-08-16perl magic: Use if/elsif/else instead of given/when (FS #12188)Thomas Jarosch
Unbreaks the maemo build. Patch by Nick Peskett with a small comment added as suggested by Dominik Riebeling. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30323 a1c6a512-1295-4272-9138-f99709370657
2011-07-19Commit FS#12188 - Fix perl scripts that used Switch by Sean Bartell.Alex Parker
Perl 5.14 removed Switch which means that Rockbox will no longer build with the current release of Perl. The patch replaces Switch with given/when which was introduced in Perl 5.10.0. Debian stable has 5.10.1, cygwin 1.7 has 5.10.1 and Mac OSX 10.6 comes with 5.10.0. I'm not sure what version older versions of OSX come with, but newer versions are apparently available from Macports. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30169 a1c6a512-1295-4272-9138-f99709370657
2011-03-02FS#11913: Separate TTS correction expressions into separate file.Dominik Riebeling
voice.pl will now read the TTS correction expressions from a file tools/voice-corrections.txt which includes regular expressions for adjusting the string. This makes it easier to adjust the corrections and allows integrating them into tools like Rockbox Utility. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29500 a1c6a512-1295-4272-9138-f99709370657
2009-03-02Add a full stop after strings, since some voices use the existance of one to ↵Jonas Häggqvist
change intonation. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20184 a1c6a512-1295-4272-9138-f99709370657
2009-03-02Ask which voice to use for Festival.Jonas Häggqvist
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20181 a1c6a512-1295-4272-9138-f99709370657
2008-11-03Tweak for German TTS engines.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18981 a1c6a512-1295-4272-9138-f99709370657
2008-08-19Character set handling refinements:Jens Arnold
- Default to UTF-8 for all I/O, including STDIO, removing the need to explicitly select UTF-8 in several places - Let PerlIO check for valid UTF-8 - Cygwin/SAPI: Perl 5.8.8 breaks when asked to handle both UTF-16 and CRLF in PerlIO ('unexpected non-continuation byte'). Work around this by going back to manual CRLF handling. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18321 a1c6a512-1295-4272-9138-f99709370657
2008-08-13Remove some irresponsible character set mangling from the Italian section of ↵Jonas Häggqvist
voice.pl. If this is really needed, add it under each individual TTS engine that is confirmed to need this. And please use only UTF-8 in the script (binary data should be entered as \xe9 etc). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18268 a1c6a512-1295-4272-9138-f99709370657
2008-08-08Let PerlIO also do the LF<->CRLF conversion for SAPI.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18218 a1c6a512-1295-4272-9138-f99709370657
2008-08-07Silence some warnings in voice.pl by setting the encoding to UTF-8. Output ↵Jonas Häggqvist
on Cygwin will be wrong if using verbose mode. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18216 a1c6a512-1295-4272-9138-f99709370657
2008-08-07Fix $Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18214 a1c6a512-1295-4272-9138-f99709370657
2008-08-07Fix SAPI voice file generation on multibyte windows variants (japanese, ↵Jens Arnold
probably others, see FS #9246). This gets rid of the conversion in the VBScript (which relied on unsafe assumptions about charset conversion in windows), and lets PerlIO do the work instead. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18213 a1c6a512-1295-4272-9138-f99709370657
2008-07-20Fix 'Bareword ''CMD_OUT'' not allowed while ''strict subs'' in use' when ↵Jens Arnold
building SAPI voices using newer perl versions. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18102 a1c6a512-1295-4272-9138-f99709370657
2008-04-28Small tweak for festival to correct the spelling of 'A', fixes FS#8889Nils Wallménius
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17282 a1c6a512-1295-4272-9138-f99709370657
2008-04-07Some other minor fixes to accent with italian TTS.Alessio Lenzi
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17027 a1c6a512-1295-4272-9138-f99709370657
2008-03-27Fixed some accents for italian TTS pronunciation.Alessio Lenzi
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16850 a1c6a512-1295-4272-9138-f99709370657
2007-11-27Accept FS#8236: make voice should overwrite existing .voice files.Stéphane Doyon
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15835 a1c6a512-1295-4272-9138-f99709370657
2007-11-19Make voice.pl gentalkclips() work for SAPI.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15704 a1c6a512-1295-4272-9138-f99709370657
2007-11-19German AT&T voices have a general problem with composite words ending in ↵Jens Arnold
'lauf'. Make voice.pl fix all of them. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15703 a1c6a512-1295-4272-9138-f99709370657
2007-11-19Added Italian exsception strings.Alessio Lenzi
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15697 a1c6a512-1295-4272-9138-f99709370657
2007-11-18Add the tools dir to the path in voice.pl, for easier calling of the various ↵Jens Arnold
tools. Fixes the problem of building swcodec voice files on cygwin (needs reconfiguring). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15672 a1c6a512-1295-4272-9138-f99709370657
2007-11-18Introduce use of the new Speex voice file encoder in voice builds. Remove ↵Thom Johansen
the very unfinished support for other encoders and force use of either rbspeexenc for SWCODEC or LAME for HWCODEC. Update voice.pl to work with the new system, and remove a bug in the same go. Remember to rerun "configure" if you want to build voice files. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15667 a1c6a512-1295-4272-9138-f99709370657
2007-11-16Fix a function parameter mis-matchJonas Häggqvist
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15651 a1c6a512-1295-4272-9138-f99709370657
2007-11-16Some more quoting of program arguments.Jonas Häggqvist
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15650 a1c6a512-1295-4272-9138-f99709370657
2007-11-16Move some stuff around so things are actually initialized before using them. ↵Jonas Häggqvist
Last second changes are evil. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15646 a1c6a512-1295-4272-9138-f99709370657
2007-11-16Initial attempt at talkclip generation in voice.pl. Add some quoting to a ↵Jonas Häggqvist
few functions to avoid problems. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15645 a1c6a512-1295-4272-9138-f99709370657
2007-11-14FS#8126: Translated voice strings for Swedish, with a few changes by me.Magnus Holmgren
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15621 a1c6a512-1295-4272-9138-f99709370657
2007-10-02It seems we want the plugins fix for sapi as well.Jonas Häggqvist
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14958 a1c6a512-1295-4272-9138-f99709370657
2007-10-02Move the "plugins" correction into a Festival-specific switch.Jonas Häggqvist
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14956 a1c6a512-1295-4272-9138-f99709370657
2007-09-19Attempt to fix pronounciation of "plugins" for all English languages. ↵Jonas Häggqvist
Hopefully this spells the end of ploogins. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14758 a1c6a512-1295-4272-9138-f99709370657
2007-09-04Only replace those abbreviations if they're capitalised.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14610 a1c6a512-1295-4272-9138-f99709370657
2007-09-04Remove debug line.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14609 a1c6a512-1295-4272-9138-f99709370657
2007-09-04Voice file building: * Make correct_string() work as intended by passing the ↵Jens Arnold
missing 2 parameters. * SAPI: Add query for TTS engine vendor. * Add several string corrections (mostly but not exclusively for German). * Make the pool filenames include TTS options and encoder options in their MD5 hash value, allowing to properly build voice files where those settings differ per target using the same pool. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14608 a1c6a512-1295-4272-9138-f99709370657
2007-09-02SAPI voice file generation: * Added language matching and voice selection ↵Jens Arnold
(use TTS option /voice:<name> to select; voices with spaces in the name need the options quotes). * Added SAPI4 support (use TTS option /sapi4; voice file generation takes hours...) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14587 a1c6a512-1295-4272-9138-f99709370657
2007-09-02Make clip generation progress indicator work reliably.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14570 a1c6a512-1295-4272-9138-f99709370657