]> git.pld-linux.org Git - packages/festival.git/blob - festival.spec
Release 1
[packages/festival.git] / festival.spec
1 # TODO: kill ELF binary from %{_datadir}, see files
2 Summary:        The Festival speech sythesis system
3 Summary(pl.UTF-8):      System syntezy mowy Festival
4 Name:           festival
5 Version:        2.1
6 Release:        1
7 License:        BSD-like (except for festival.el, which is on GPL)
8 Group:          Applications/Sound
9 Source0:        http://www.cstr.ed.ac.uk/downloads/festival/%{version}/%{name}-%{version}-release.tar.gz
10 # Source0-md5:  c93eb3e389ed171ab9abd46afe8897a8
11 Source1:        http://www.cstr.ed.ac.uk/downloads/festival/%{version}/festvox_cmu_us_awb_cg.tar.gz
12 # Source1-md5:  2c14269587ad018ee93176bb44f4c38b
13 Source2:        http://www.cstr.ed.ac.uk/downloads/festival/%{version}/festvox_cmu_us_rms_cg.tar.gz
14 # Source2-md5:  a9514a9df32401774c074abec42ffb22
15 Source3:        http://www.cstr.ed.ac.uk/downloads/festival/%{version}/festvox_cmu_us_slt_arctic_hts.tar.gz
16 # Source3-md5:  a9b53441968f6bc612b85c04bbc4cf0f
17 Source4:        http://www.cstr.ed.ac.uk/downloads/festival/%{version}/festvox_kallpc16k.tar.gz
18 # Source4-md5:  3869af78f473b616601cac3fa83cc14e
19 Source5:        http://www.cstr.ed.ac.uk/downloads/festival/%{version}/festvox_rablpc16k.tar.gz
20 # Source5-md5:  34cb2478f5b8fa1ed02f5cbb496c1dcd
21 Patch0:         %{name}-config.patch
22 Patch1:         %{name}-pulse.patch
23 URL:            http://www.cstr.ed.ac.uk/projects/festival/
24 BuildRequires:  automake
25 BuildRequires:  speech_tools-devel >= 2.1-3
26 Requires:       festival-voice
27 Suggests:       festival-voice-english-slt-arctic-hts
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %ifarch alpha
31 %define         fostype alpha_Linux
32 %else
33 %define         fostype unknown_Linux
34 %endif
35
36 %description
37 Festival offers a general framework for building speech synthesis
38 systems as well as including examples of various modules. As a whole
39 it offers full text to speech through a number APIs: from shell level,
40 though a Scheme command interpreter, as a C++ library, from Java, and
41 an Emacs interface. Festival is multi-lingual, though English is the
42 most advanced.
43
44 %description -l pl.UTF-8
45 Festival jest platformą przeznaczoną do budowania systemów syntezy
46 mowy oraz do łatwego testowania różnych modułów składających się na
47 syntezator mowy. Można też używać programu jako maszynki czytającej
48 pliki tekstowe. Festival jest wielojęzyczny, lecz język angielski jest
49 najbardziej zaawansowany.
50
51 %package devel
52 Summary:        Festival developement environment
53 Summary(pl.UTF-8):      Festival - środowidko rozwojowe
54 Group:          Applications/Sound
55
56 %description devel
57 Festival developement environment.
58
59 %description devel -l pl.UTF-8
60 Festival - środowisko rozwojowe.
61
62 %package voice-english-kal-diphone
63 Summary:        American English male speaker "Kevin" for Festival
64 Group:          Applications/Sound
65 Requires:       %{name} = %{version}-%{release}
66 Provides:       festival-voice
67
68 %description voice-english-kal-diphone
69 American English male speaker ("Kevin") for Festival.
70
71 This voice provides an American English male voice using a residual
72 excited LPC diphone synthesis method. It uses the CMU Lexicon
73 pronunciations. Prosodic phrasing is provided by a statistically
74 trained model using part of speech and local distribution of breaks.
75 Intonation is provided by a CART tree predicting ToBI accents and an
76 F0 contour generated from a model trained from natural speech. The
77 duration model is also trained from data using a CART tree.
78
79 %package voice-english-rab-diphone
80 Summary:        British RP English male speaker "Roger" for Festival
81 Group:          Applications/Sound
82 Requires:       %{name} = %{version}-%{release}
83 Provides:       festival-voice
84
85 %description voice-english-rab-diphone
86 British RP English male speaker ("Roger") for Festival.
87
88 This voice provides a British RP English male voice using a residual
89 excited LPC diphone synthesis method. It uses a modified Oxford
90 Advanced Learners' Dictionary for pronunciations. Prosodic phrasing is
91 provided by a statistically trained model using part of speech and
92 local distribution of breaks. Intonation is provided by a CART tree
93 predicting ToBI accents and an F0 contour generated from a model
94 trained from natural speech. The duration model is also trained from
95 data using a CART tree.
96
97 %package voice-english-awb-cg
98 Summary:        Scottish-accent US English male speaker "AWB" for Festival
99 Group:          Applications/Sound
100 Requires:       %{name} = %{version}-%{release}
101 Provides:       festival-voice
102
103 %description voice-english-awb-cg
104 US English male speaker ("AWB") for Festival. AWB is a native Scottish
105 English speaker, but the voice uses the US English front end.
106
107 This is a HMM-based Speech Synthesis System (HTS) voice from the
108 Nagoya Institute of Technology, trained using the CMU ARCTIC database.
109 This voice is based on 1138 utterances spoken by a Scottish English
110 male speaker. The speaker is very experienced in building synthetic
111 voices and matched prompted US English, though his vowels are very
112 different from US English vowels. Scottish English speakers will
113 probably find synthesizers based on this voice strange. Unlike the
114 other CMU_ARCTIC databases this was recorded in 16 bit 16KHz mono
115 without EGG, on a Dell Laptop in a quiet office. The database was
116 automatically labelled using CMU Sphinx using the FestVox labelling
117 scripts. No hand correction has been made.
118
119 %package voice-english-rms-cg
120 Summary:        US English male speaker "RMS" for Festival
121 Group:          Applications/Sound
122 Requires:       %{name} = %{version}-%{release}
123 Provides:       festival-voice
124
125 %description voice-english-rms-cg
126 US English male speaker ("RMS") voice for Festival.
127
128 This is a HMM-based Speech Synthesis System (HTS) voice from the
129 Nagoya Institute of Technology, trained using the CMU ARCTIC database.
130 This voice is based on 1132 utterances spoken by a US English male
131 speaker. The speaker is experienced in building synthetic voices. This
132 was recorded at 16bit 32KHz, in a sound proof room, in stereo, one
133 channel was the waveform, the other EGG. The database was
134 automatically labelled using EHMM an HMM labeler that is included in
135 the FestVox distribution. No hand correction has been made.
136
137 %package voice-english-slt-arctic-hts
138 Summary:        US English female speaker "SLT" for Festival
139 Group:          Applications/Sound
140 Requires:       %{name} = %{version}-%{release}
141 Provides:       festival-voice
142
143 %description voice-english-slt-arctic-hts
144 US English female speaker ("SLT") voice for Festival.
145
146 This is a HMM-based Speech Synthesis System (HTS) voice from the
147 Nagoya Institute of Technology, trained using the CMU ARCTIC database.
148 This voice is based on 1132 utterances spoken by a US English female
149 speaker. The speaker is experienced in building synthetic voices. This
150 was recorded at 16bit 32KHz, in a sound proof room, in stereo, one
151 channel was the waveform, the other EGG. The database was
152 automatically labelled using CMU Sphinx using the FestVox labelling
153 scripts. No hand correction has been made.
154
155 %prep
156 %setup -q -n %{name} -b1 -b2 -b3 -b4 -b5
157 %patch0 -p1
158 %patch1 -p1
159
160 ln -s %{_libdir}/speech_tools/base_class src/modules/MultiSyn
161 ln -s %{_libdir}/speech_tools/config/modules/pulse_audio.mak config/modules
162
163 # cleanup backups after patching
164 find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
165
166 %build
167 cp -f /usr/share/automake/config.* .
168 %{__perl} -pi -e 's,^EST=.*,EST=%{_libdir}/speech_tools,' config/config.in
169 %configure2_13
170 %{__make} -j1 \
171         CC="%{__cc}" \
172         CXX="%{__cxx}" \
173         ECHO_N='printf "%%s"' \
174         OPTIMISE_CCFLAGS="%{rpmcflags}" \
175         OPTIMISE_CXXFLAGS="%{rpmcflags}" \
176         OPTIMISE_LINK="%{rpmldflags}" \
177         REQUIRED_LIBDEPS=
178 # REQUIRED_LIBDPES is workaround not to need static speech_tools libraries
179
180 %install
181 rm -rf $RPM_BUILD_ROOT
182 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{name}/lib/{voices/english,dicts},%{_libdir},%{_includedir}/%{name},%{_mandir}/man1}
183
184 # bin
185 install bin/festival_server* bin/text2wave $RPM_BUILD_ROOT%{_bindir}
186 install src/main/festival{,_client} $RPM_BUILD_ROOT%{_bindir}
187
188 # devel
189 install src/lib/libFestival.a $RPM_BUILD_ROOT%{_libdir}
190 install src/include/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}
191
192 # data
193 cp -r lib config examples $RPM_BUILD_ROOT%{_datadir}/%{name}
194 find $RPM_BUILD_ROOT%{_datadir}/%{name} -name Makefile -exec rm \{\} \;
195
196 install doc/festival{,_client}.1 $RPM_BUILD_ROOT%{_mandir}/man1
197
198 %clean
199 rm -rf $RPM_BUILD_ROOT
200
201 %files
202 %defattr(644,root,root,755)
203 %doc ACKNOWLEDGMENTS COPYING NEWS README
204 %{_mandir}/man1/*
205 %attr(755,root,root) %{_bindir}/*
206 %dir %{_datadir}/%{name}
207 %dir %{_datadir}/%{name}/lib
208 %dir %{_datadir}/%{name}/lib/dicts
209 %dir %{_datadir}/%{name}/lib/multisyn
210 %dir %{_datadir}/%{name}/lib/voices
211 %dir %{_datadir}/%{name}/lib/voices/english
212 %dir %{_datadir}/%{name}/lib/etc
213 %dir %{_datadir}/%{name}/lib/etc/%{fostype}
214 # XXX: ELF binary, fix it!
215 %attr(755,root,root) %{_datadir}/%{name}/lib/etc/%{fostype}/audsp
216 %{_datadir}/%{name}/lib/etc/email_filter
217 %{_datadir}/%{name}/lib/*.scm
218 %{_datadir}/%{name}/lib/Sable.v0_2.dtd
219 %{_datadir}/%{name}/lib/Singing.v0_1.dtd
220 %{_datadir}/%{name}/lib/VCLocalRules
221 %{_datadir}/%{name}/lib/festival.el
222 %{_datadir}/%{name}/lib/sable-latin.ent
223 %{_datadir}/%{name}/lib/scfg_wsj_wp20.gram
224 %{_datadir}/%{name}/lib/sec.*.ngrambin
225 %{_datadir}/%{name}/lib/speech.properties
226 %{_datadir}/%{name}/lib/multisyn/*.scm
227 %{_datadir}/%{name}/examples
228
229 %files devel
230 %defattr(644,root,root,755)
231 %{_includedir}/%{name}
232 %{_libdir}/libFestival.a
233 %dir %{_datadir}/%{name}
234 %{_datadir}/%{name}/config
235
236 %files voice-english-kal-diphone
237 %defattr(644,root,root,755)
238 %dir %{_datadir}/%{name}/lib/voices
239 %dir %{_datadir}/%{name}/lib/voices/english
240 %{_datadir}/%{name}/lib/voices/english/kal_diphone
241
242 %files voice-english-rab-diphone
243 %defattr(644,root,root,755)
244 %dir %{_datadir}/%{name}/lib/voices
245 %dir %{_datadir}/%{name}/lib/voices/english
246 %{_datadir}/%{name}/lib/voices/english/rab_diphone
247
248 %files voice-english-awb-cg
249 %defattr(644,root,root,755)
250 %dir %{_datadir}/%{name}/lib/voices
251 %dir %{_datadir}/%{name}/lib/voices/us
252 %{_datadir}/%{name}/lib/voices/us/cmu_us_awb_cg
253
254 %files voice-english-rms-cg
255 %defattr(644,root,root,755)
256 %dir %{_datadir}/%{name}/lib/voices
257 %dir %{_datadir}/%{name}/lib/voices/us
258 %{_datadir}/%{name}/lib/voices/us/cmu_us_rms_cg
259
260 %files voice-english-slt-arctic-hts
261 %defattr(644,root,root,755)
262 %dir %{_datadir}/%{name}/lib/voices
263 %dir %{_datadir}/%{name}/lib/voices/us
264 %{_datadir}/%{name}/lib/voices/us/cmu_us_slt_arctic_hts
This page took 0.077098 seconds and 3 git commands to generate.