--- festvox-suopuhe-lj-1.0g-20051204.orig/debian/festvox-suopuhe-common.README.Debian +++ festvox-suopuhe-lj-1.0g-20051204/debian/festvox-suopuhe-common.README.Debian @@ -0,0 +1,107 @@ +Suopuhe: Finnish voices for the Festival speech synthesis system +================================================================= + +The Suopuhe project have made two Finnish voices freely available under +the LGPL: a female one ("suo_fi_lj") and a male one ("hy_fi_mv"). These +are separately packaged for Debian in the festvox-suopuhe-{mv,lj} +packages. Although you can install just one of them and get them to work, +it is recommended to install both, for reasons described below. You may +also want to install an English voice, eg. the festvox-kallpc16k package, +to avoid startup warnings about not having a default voice available. + +The festvox-suopuhe-common package contains some documentation in Finnish, +namely the README.lj file. This file was written by the Suopuhe project +authors in 2003-2004, and some information in it is now outdated. It is +included for the sake of completeness. + +As the festival system is not very intuitive or user-friendly to +beginners, this documents tries to describe its basic usage with the +Finnish voices. Full documentation on using the Festival system can be +found in the festival-doc package. + +Activating the voices +--------------------- + +There are several ways to activate these voices: + +A. invoke festival with 'festival --language finnish', switch + between the voices with the 'male1 and 'female1 functions: + + % festival --language finnish + Festival Speech Synthesis System 1.4.3:release Jan 2003 + Copyright (C) University of Edinburgh, 1996-2003. All rights reserved. + For details type `(festival_warranty)' + festival> (male1) + hy_fi_mv_diphone + festival> (female1) + suo_fi_lj_diphone + + Note that the 'male1 and 'female1 functions were broken in the Etch + version of the festival Debian package; see Debian bugs #427550 + and #427552. + +B. call the 'language_finnish function from festival; again use the + 'male1 and 'female functions to switch between the voices + + festival> (language_finnish) + finnish + festival> (male1) + hy_fi_mv_diphone + festival> (female1) + suo_fi_lj_diphone + +C. explicitly enable either of the voices: + + festival> (voice_suo_fi_lj_diphone) + suo_fi_lj_diphone + festival> (voice_hy_fi_mv_diphone) + hy_fi_mv_diphone + + Note that if you have only installed the festvox-suopuhe-lj package, + and not festvox-suopuhe-mv, this is the only option available. + +D. set a default voice in ~/.festivalrc: + + (set! voice_default 'voice_suo_fi_lj_diphone) + + This is also useful for eg. the text2wave utility. + +Speaking Finnish +---------------- + +After activating the desired voice, the simplest way to get the system +to speak is the 'SayText function: + + festival> (language_finnish) + finnish + festival> (SayText "Kukkuluuruu") + # + +An "utterance" can be saved into a file (but see also text2wave(1)): + + festival> (utt.save.wave (utt.synth (Utterance Text "kukkuluuruu")) "out.wav") + +You can also read a file aloud with the 'tts function: + + festival> (tts "suomea.txt" nil) + nil + +The non-ASCII Finnish characters ("ä", "ö" etc.) are slightly +problematic, however. + +First, the system wants them in the ISO-8859-1 character set, while +UTF-8 is the default nowadays, so you may have to recode them with +eg. the iconv program: + + iconv -f UTF-8 -t ISO-8859-1 oma.txt > luettava.txt + +Second, the festival command line can not handle most non-ASCII +characters, but rather considers the eighth bit as a meta flag, and +eg. "ä" becomes a backspace. The way around this is to only use the +'tts function. Here's an example of doing this from the command line and +recoding on the fly with another character set translator tool (recode): + + % echo äiti | recode utf8..latin1 | festival --language finnish --tts + + + -- Niko Tyni Fri, 06 Jul 2007 20:37:38 +0300 --- festvox-suopuhe-lj-1.0g-20051204.orig/debian/changelog +++ festvox-suopuhe-lj-1.0g-20051204/debian/changelog @@ -0,0 +1,39 @@ +festvox-suopuhe-lj (1.0g-20051204-3) unstable; urgency=low + + * Change the maintainer email address. + * Migrate patch handling from dpatch to quilt. + + add debian/README.source as per policy. + * debian/patches/fix-text2wave: make text2wave work with the Finnish + voices. (Closes: #495114) + * Improve README.Debian a bit. (Closes: #495123) + * Properly compress the recoded README.lj. + * Add a Homepage control field. + * Include license information on the Debian packaging. + * Add debian/watch. + * Upgrade to Standards-Version 3.8.1. + + -- Niko Tyni Wed, 18 Mar 2009 23:10:59 +0200 + +festvox-suopuhe-lj (1.0g-20051204-2) unstable; urgency=low + + * debian/patches: + + 10funcname.dpatch: actually define 'suo_fi_lj_diphone function as it was intended. + + 30sync-damaged-env.dpatch: fix SIOD ERROR messages when invoking + 'festival --tts'. (Closes: #432019) + * Recode the upstream README.lj file from ISO-8859-1 to UTF-8. (see #426287) + * Recommend the festvox-suopuhe-mv package, as the 'male1 and 'female1 + functions only get defined when it is installed. + * README.Debian now describes basic usage of the voices. (Closes: #426287) + * Upgrade to debhelper compatibility level 5. + * Upgrade to Standards-Version 3.7.2. No changes needed. + * Version the build-dependency on dpatch, for dpatch-run. + + -- Niko Tyni Fri, 6 Jul 2007 22:12:12 +0300 + +festvox-suopuhe-lj (1.0g-20051204-1) unstable; urgency=low + + * Initial Release. (Closes: #341964) + * Fixed FSF address in debian/copyright. + + -- Niko Tyni Sun, 4 Dec 2005 13:34:26 +0000 + --- festvox-suopuhe-lj-1.0g-20051204.orig/debian/README.source +++ festvox-suopuhe-lj-1.0g-20051204/debian/README.source @@ -0,0 +1,6 @@ +This package uses quilt to manage all modifications to the upstream +source. Changes are stored in the source package as diffs in +debian/patches and applied during the build. + +See /usr/share/doc/quilt/README.source for a detailed explanation. + --- festvox-suopuhe-lj-1.0g-20051204.orig/debian/festvox-suopuhe-common.install +++ festvox-suopuhe-lj-1.0g-20051204/debian/festvox-suopuhe-common.install @@ -0,0 +1 @@ +lib/voices/finnish/suo_fi_lj_diphone/festvox/* usr/share/festival/voices/finnish/suopuhe.common --- festvox-suopuhe-lj-1.0g-20051204.orig/debian/watch +++ festvox-suopuhe-lj-1.0g-20051204/debian/watch @@ -0,0 +1,3 @@ +version=3 +http://phon.joensuu.fi/suopuhe/tulosaineisto/ suo_fi_lj-(.+)\.(?:tar\.gz|tgz) + --- festvox-suopuhe-lj-1.0g-20051204.orig/debian/control +++ festvox-suopuhe-lj-1.0g-20051204/debian/control @@ -0,0 +1,24 @@ +Source: festvox-suopuhe-lj +Section: sound +Priority: extra +Maintainer: Niko Tyni +Standards-Version: 3.8.1 +Build-Depends: debhelper (>= 5), quilt +Homepage: http://phon.joensuu.fi/suopuhe/ + +Package: festvox-suopuhe-lj +Architecture: all +Depends: festival (>= 1.4.3-9), festvox-suopuhe-common +Recommends: festvox-suopuhe-mv +Provides: festival-voice +Description: Finnish female speaker for Festival + This is a Finnish female speaker for the Festival speech synthesis + system. It was developed as part of the Suopuhe project at + the universities of Helsinki and Joensuu. + +Package: festvox-suopuhe-common +Architecture: all +Description: Common files for Festival Finnish speakers + This package contains the common files between the two Finnish + Festival speech synthesis speakers, festvox-suopuhe-mv and + festvox-suopuhe-lj. --- festvox-suopuhe-lj-1.0g-20051204.orig/debian/rules +++ festvox-suopuhe-lj-1.0g-20051204/debian/rules @@ -0,0 +1,55 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +include /usr/share/quilt/quilt.make + +PACKAGE=festvox-suopuhe-lj +COMMON=festvox-suopuhe-common +ORIGNAME=suo_fi_lj_diphone + +build: patch +# Nothing to do. + +clean: unpatch + dh_testdir + dh_testroot + dh_clean + +# Build architecture-dependent files here. +binary-arch: build +# We have nothing to do. + +# Build architecture-independent files here. +binary-indep: build + dh_testdir + dh_testroot + dh_installdirs -p ${PACKAGE} usr/share/festival/voices/finnish/${ORIGNAME}/group + + # "search-for-voices" in /usr/share/festival/voices.scm ignores directories containing '.' + dh_installdirs -p ${COMMON} usr/share/festival/voices/finnish/suopuhe.common + + dh_install -p ${PACKAGE} + dh_install -p ${COMMON} + + dh_link -p ${PACKAGE} usr/share/festival/voices/finnish/suopuhe.common \ + usr/share/festival/voices/finnish/${ORIGNAME}/festvox + dh_installdocs -p ${PACKAGE} + dh_installdocs -p ${COMMON} + + # recode the upstream README into UTF-8 + iconv -f ISO-8859-1 -t UTF-8 \ + lib/voices/finnish/suo_fi_lj_diphone/README.lj \ + -o debian/${COMMON}/usr/share/doc/festvox-suopuhe-common/README.lj + + dh_installchangelogs + dh_compress + dh_fixperms + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary --- festvox-suopuhe-lj-1.0g-20051204.orig/debian/festvox-suopuhe-lj.install +++ festvox-suopuhe-lj-1.0g-20051204/debian/festvox-suopuhe-lj.install @@ -0,0 +1 @@ +lib/voices/finnish/suo_fi_lj_diphone/group usr/share/festival/voices/finnish/suo_fi_lj_diphone --- festvox-suopuhe-lj-1.0g-20051204.orig/debian/copyright +++ festvox-suopuhe-lj-1.0g-20051204/debian/copyright @@ -0,0 +1,38 @@ +This package was debianized by Niko Tyni on +Sun, 04 Dec 2005 14:38:40 +0200. + +It was downloaded from +http://phon.joensuu.fi/suopuhe/tulosaineisto/suo_fi_lj-1.0g-20051204.tgz + +Upstream Authors: + Nicholas Volk + Martti Vainio + Stefan Werner + +Copyright: + + Copyright (c) 2000-2003 Yleisen kielitieen laitos, Helsingin yliopisto, ja + Vieraiden kielten laitos, Joensuun yliopisto + + This program is distributed under Gnu Lesser General Public License (cf. the + file LICENSE in distribution). + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +You can find a copy of the LGPL license at /usr/share/common-licenses/LGPL . + +The Debian packaging is Copyright © 2005-2009 Niko Tyni +and is licensed under the same terms as the software itself. + --- festvox-suopuhe-lj-1.0g-20051204.orig/debian/compat +++ festvox-suopuhe-lj-1.0g-20051204/debian/compat @@ -0,0 +1 @@ +5 --- festvox-suopuhe-lj-1.0g-20051204.orig/debian/patches/funcname +++ festvox-suopuhe-lj-1.0g-20051204/debian/patches/funcname @@ -0,0 +1,14 @@ +Fix the definition of 'suo_fi_lj_diphone, it was being +overridden by the next definition. + +--- festvox-suopuhe-lj-1.0g-20051204.orig/lib/voices/finnish/suo_fi_lj_diphone/festvox/hy_fi_mv_diphone.scm ++++ festvox-suopuhe-lj-1.0g-20051204/lib/voices/finnish/suo_fi_lj_diphone/festvox/hy_fi_mv_diphone.scm +@@ -202,7 +202,7 @@ + (voice_hy_fi_mv_diphone))) + + (if (boundp 'suo_fi_lj_dir) +- (define (voice_suo_fi_lj_diphone) ++ (define (suo_fi_lj_diphone) + "(suo_fi_lj_diphone) + Switch to the Finnish female voice. + Suopuhe's support for Festival's in-build voice-locating mechanism." --- festvox-suopuhe-lj-1.0g-20051204.orig/debian/patches/series +++ festvox-suopuhe-lj-1.0g-20051204/debian/patches/series @@ -0,0 +1,4 @@ +fix-text2wave +funcname +paths +sync-damaged-env --- festvox-suopuhe-lj-1.0g-20051204.orig/debian/patches/fix-text2wave +++ festvox-suopuhe-lj-1.0g-20051204/debian/patches/fix-text2wave @@ -0,0 +1,17 @@ +Make text2wav work with the Finnish voices. (Closes: #495114) + +This fixes a SIOD ERROR: wrong type of argument to get_c_val +when using text2wav or just speaking silence: (SayText "") + +Apparently the item.name function can't be applied to a nil value. +--- festvox-suopuhe-lj-1.0g-20051204.orig/lib/voices/finnish/suo_fi_lj_diphone/festvox/finnish_mv_phrase.scm ++++ festvox-suopuhe-lj-1.0g-20051204/lib/voices/finnish/suo_fi_lj_diphone/festvox/finnish_mv_phrase.scm +@@ -351,7 +351,7 @@ + "(initial_doubling WORD) + Checks wheter the current WORD can triggers initial doubling on the + next word or not." +- (let ((name (downcase (item.name WORD)))) ++ (let ((name (if WORD (downcase (item.name WORD) nil)))) + (if (and (item.next WORD) + (not (word_has_break? WORD)) + ;; (not suopuhe) ;; suopuhe-mode deal this personally ??? --- festvox-suopuhe-lj-1.0g-20051204.orig/debian/patches/sync-damaged-env +++ festvox-suopuhe-lj-1.0g-20051204/debian/patches/sync-damaged-env @@ -0,0 +1,21 @@ +Apparently this causes a 'SIOD damaged env' warning when invoking +'festival --tts'. See #432019. + +--- festvox-suopuhe-lj-1.0g-20051204.orig/lib/voices/finnish/suo_fi_lj_diphone/festvox/suopuhe_mode.scm ++++ festvox-suopuhe-lj-1.0g-20051204/lib/voices/finnish/suo_fi_lj_diphone/festvox/suopuhe_mode.scm +@@ -450,7 +450,7 @@ + (suopuhe_setup) + (tts_file file 'suopuhe)) + (tts_file file (tts_find_text_mode file auto-text-mode-alist)))) +- (audio_mode 'sync) ;; Hmm this is probably bad ++ ; (audio_mode 'sync) ;; Hmm this is probably bad + ) + ;; korvaava versio tts-viritelmiin... + ;(define (utt.play utt) +@@ -631,4 +631,4 @@ + (utt.features utt 'Syllable '(name stress))) + + +-(provide 'suopuhe_mode) +\ No newline at end of file ++(provide 'suopuhe_mode) --- festvox-suopuhe-lj-1.0g-20051204.orig/debian/patches/paths +++ festvox-suopuhe-lj-1.0g-20051204/debian/patches/paths @@ -0,0 +1,41 @@ +only use the default voice dirs and don't complain if the voices are missing + +--- festvox-suopuhe-lj-1.0g-20051204.orig/lib/voices/finnish/suo_fi_lj_diphone/festvox/hy_fi_mv_diphone.scm ++++ festvox-suopuhe-lj-1.0g-20051204/lib/voices/finnish/suo_fi_lj_diphone/festvox/hy_fi_mv_diphone.scm +@@ -65,21 +65,11 @@ + ;; The location is stored in variable hy_fi_mv_dir. + ;; If it isn't present, the voice is not loaded! + (cond +- ;; 0th: use my absolute path in my www demo +- ((probe_file "/home/nvolk/public_html/cgi-bin/festival/lib/voices/finnish/hy_fi_mv_diphone/festvox/hy_fi_mv_diphone.scm") +- (defvar hy_fi_mv_dir "/home/nvolk/public_html/cgi-bin/festival/lib/voices/finnish/hy_fi_mv_diphone/") +- ;; this one is for my www demo +- (set! suopuhe_output_file_prefix "/home/nvolk/public_html/cgi-bin/lavennin/tmp/")) + ;; 1st: try default place in the Festival hierarchy: + ((assoc 'hy_fi_mv_diphone voice-locations) + (defvar hy_fi_mv_dir + (cdr (assoc 'hy_fi_mv_diphone voice-locations)))) +- ;; 2nd: use (my) absolute path in www demo +- ((probe_file "/home/n/v/nvolk/festival/lib/voices/finnish/hy_fi_mv_diphone/festvox/hy_fi_mv_diphone.scm") +- (defvar hy_fi_mv_dir "/home/n/v/nvolk/festival/lib/voices/finnish/hy_fi_mv_diphone/")) +- (t +- (format stderr "The location of (hy_fi_mv_diphone) could not be determined!\n") +- )) ++ ) + + + +@@ -91,12 +81,7 @@ + ((assoc 'suo_fi_lj_diphone voice-locations) + (defvar suo_fi_lj_dir + (cdr (assoc 'suo_fi_lj_diphone voice-locations)))) +- ;; 2nd: use (my) absolute path +- ((probe_file "/home/n/v/nvolk/festival/lib/voices/finnish/suo_fi_lj_diphone/festvox/suo_fi_lj_diphone.scm") +- (defvar hy_fi_mv_dir "/home/n/v/nvolk/festival/lib/voices/finnish/suo_fi_lj_diphone/")) +- (t +- (format stderr "The location of (suo_fi_lj_diphone) could not be determined!\n") +- )) ++ ) + + +