summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmanuele Rocca <ema@debian.org>2014-01-13 21:03:21 +0100
committerEmanuele Rocca <ema@debian.org>2014-01-13 21:03:21 +0100
commit914a48cc262aa1639b13c1da8370306593defcd6 (patch)
tree903b2aec68a0ce86d8a7a8c97372769c87a5b998
parentefc580d40dc9f67c6edb5f7c5852f0fbef22578d (diff)
festvox-suopuhe-lj (1.0g-20051204-4) unstable; urgency=low
* QA upload. * Maintainer field set to QA Group. * Bump Standards-Version to 3.9.5. * Debhelper compatibility level set to 9. * Add dependency on ${misc:Depends}. * Add build-{arch,indep} to debian/rules. * Remove Homepage field and debian/watch file. The original website does not host festvox-suopuhe-lj any longer. [dgit import package festvox-suopuhe-lj 1.0g-20051204-4]
-rw-r--r--debian/README.source6
-rw-r--r--debian/changelog52
-rw-r--r--debian/compat1
-rw-r--r--debian/control24
-rw-r--r--debian/copyright38
-rw-r--r--debian/festvox-suopuhe-common.README.Debian107
-rw-r--r--debian/festvox-suopuhe-common.install1
-rw-r--r--debian/festvox-suopuhe-lj.install1
-rw-r--r--debian/patches/fix-text2wave17
-rw-r--r--debian/patches/funcname14
-rw-r--r--debian/patches/paths41
-rw-r--r--debian/patches/series4
-rw-r--r--debian/patches/sync-damaged-env21
-rwxr-xr-xdebian/rules58
14 files changed, 385 insertions, 0 deletions
diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..7df3fd2
--- /dev/null
+++ b/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.
+
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..04a050c
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,52 @@
+festvox-suopuhe-lj (1.0g-20051204-4) unstable; urgency=low
+
+ * QA upload.
+ * Maintainer field set to QA Group.
+ * Bump Standards-Version to 3.9.5.
+ * Debhelper compatibility level set to 9.
+ * Add dependency on ${misc:Depends}.
+ * Add build-{arch,indep} to debian/rules.
+ * Remove Homepage field and debian/watch file. The original website does not
+ host festvox-suopuhe-lj any longer.
+
+ -- Emanuele Rocca <ema@debian.org> Mon, 13 Jan 2014 21:03:21 +0100
+
+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 <ntyni@debian.org> 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 <ntyni@iki.fi> 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 <ntyni@iki.fi> Sun, 4 Dec 2005 13:34:26 +0000
+
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..eed64fc
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,24 @@
+Source: festvox-suopuhe-lj
+Section: sound
+Priority: extra
+Maintainer: Debian QA Group <packages@qa.debian.org>
+Standards-Version: 3.9.5
+Build-Depends: debhelper (>= 9), quilt
+
+Package: festvox-suopuhe-lj
+Architecture: all
+Depends: ${misc: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
+Depends: ${misc:Depends}
+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.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..b434d73
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,38 @@
+This package was debianized by Niko Tyni <ntyni@iki.fi> 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 <nvolk@ling.helsinki.fi>
+ Martti Vainio
+ Stefan Werner <stefan.werner@joensuu.fi>
+
+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 <ntyni@iki.fi>
+and is licensed under the same terms as the software itself.
+
diff --git a/debian/festvox-suopuhe-common.README.Debian b/debian/festvox-suopuhe-common.README.Debian
new file mode 100644
index 0000000..5d33025
--- /dev/null
+++ b/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")
+ #<Utterance 0xb73b50b8>
+
+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 <ntyni@iki.fi> Fri, 06 Jul 2007 20:37:38 +0300
diff --git a/debian/festvox-suopuhe-common.install b/debian/festvox-suopuhe-common.install
new file mode 100644
index 0000000..ebd2ed1
--- /dev/null
+++ b/debian/festvox-suopuhe-common.install
@@ -0,0 +1 @@
+lib/voices/finnish/suo_fi_lj_diphone/festvox/* usr/share/festival/voices/finnish/suopuhe.common
diff --git a/debian/festvox-suopuhe-lj.install b/debian/festvox-suopuhe-lj.install
new file mode 100644
index 0000000..998d062
--- /dev/null
+++ b/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
diff --git a/debian/patches/fix-text2wave b/debian/patches/fix-text2wave
new file mode 100644
index 0000000..b7fb020
--- /dev/null
+++ b/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 ???
diff --git a/debian/patches/funcname b/debian/patches/funcname
new file mode 100644
index 0000000..a7c01b7
--- /dev/null
+++ b/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."
diff --git a/debian/patches/paths b/debian/patches/paths
new file mode 100644
index 0000000..6772120
--- /dev/null
+++ b/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")
+- ))
++ )
+
+
+
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..a242c07
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,4 @@
+fix-text2wave
+funcname
+paths
+sync-damaged-env
diff --git a/debian/patches/sync-damaged-env b/debian/patches/sync-damaged-env
new file mode 100644
index 0000000..3d51f59
--- /dev/null
+++ b/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)
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..da28a4d
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,58 @@
+#!/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.
+
+build-arch: build
+build-indep: build
+
+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