Summary: | app-accessibility/festival-1.96_beta - add linguas_ru and multisyn modules | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | master_volkov <mastervolkov> |
Component: | New packages | Assignee: | Jesus Rivero (RETIRED) <neurogeek> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | CC: | accessibility, alexxy, sound |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
patch for festival
adds the new russian voice festival-ru-0.5.ebuild |
Description
master_volkov
2007-10-12 16:23:54 UTC
Please, attach a *unified* diff here and reopen then. Thanks. (In reply to comment #1) > Please, attach a *unified* diff here and reopen then. Thanks. > $ diff -u /usr/portage/app-accessibility/festival/festival-1.96_beta.ebuild /usr/local/portage/app-accessibility/festival/festival-1.96_beta.ebuild --- /usr/portage/app-accessibility/festival/festival-1.96_beta.ebuild 2007-08-28 09:17:33.000000000 +0400 +++ /usr/local/portage/app-accessibility/festival/festival-1.96_beta.ebuild 2007-10-13 21:10:23.000000000 +0400 @@ -18,6 +18,8 @@ ${SITE}/festvox_cmu_us_slt_arctic_hts.tar.gz ${SITE}/festvox_kallpc16k.tar.gz ${SITE}/festvox_kedlpc16k.tar.gz + $(cat /var/db/pkg/app-accessibility/speech-tools-*/SRC_URI) + linguas_ru? ( http://download.berlios.de/festlang/msu_ru_nsh_cg-0.3.tar.gz ) mbrola? ( ${SITE}/festvox_us1.tar.gz ${SITE}/festvox_us2.tar.gz @@ -25,7 +27,7 @@ LICENSE="FESTIVAL BSD as-is" SLOT="0" KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" -IUSE="mbrola" +IUSE="mbrola linguas_ru" RDEPEND="mbrola? ( >=app-accessibility/mbrola-3.0.1h-r2 )" @@ -45,9 +47,6 @@ sed -i -e "s:\(EST=\).*:\1/usr/share/speech-tools:" ${S}/config/config.in sed -i -e "s:\$(EST)/lib:/usr/$(get_libdir):" ${S}/config/project.mak - # disable the multisyn modules - sed -i -e "s:\(ALSO_INCLUDE.*=.*MultiSyn\):# \1:" ${S}/config/config.in - # fix the reference to /usr/lib/festival sed -i -e "s:\(FTLIBDIR.*=.*\)\$.*:\1/usr/share/festival:" ${S}/config/project.mak @@ -56,6 +55,10 @@ # patch init.scm to look for siteinit.scm and sitevars.scm in /etc/festival epatch ${FILESDIR}/${P}-init-scm.patch + + use linguas_ru && unpack msu_ru_nsh_cg-0.3.tar.gz + unpack `basename $(cat /var/db/pkg/app-accessibility/speech-tools-*/SRC_URI)` + cp -pr ${WORKDIR}/speech_tools/base_class ${S}/src/modules/MultiSyn } src_compile() { @@ -104,6 +107,9 @@ diropts -m 0755 -o festival -g audio keepdir /var/log/festival + use linguas_ru && mkdir -p ${WORKDIR}/../image/usr/share/festival/voices/russian + use linguas_ru && cp -pr ${WORKDIR}/msu_ru_nsh_cg ${WORKDIR}/../image/usr/share/festival/voices/russian/ + use mbrola && mbrola_voices } Created attachment 133343 [details, diff]
patch for festival
Thanks. Created attachment 145508 [details, diff]
adds the new russian voice
The new version of the russian voice was released.
This patch, based on the previous patch. It may be applyed to the current version of the app-accessibility/festival-1.96_beta ebuild
(In reply to comment #5) > Created an attachment (id=145508) [edit] > adds the new russian voice > > The new version of the russian voice was released. > This patch, based on the previous patch. It may be applyed to the current > version of the app-accessibility/festival-1.96_beta ebuild Thanks, I checked - works perfectly for my P.S. inclusion of the Russian language: in /etc/festival/siteinit.scm (set! voice_default 'voice_msu_ru_nsh_clunits) and in konsole echo "Gentoo can say" | festival - tts All, I am adding the modules for the other speech engines for another bug, but having an issue with this at the moment, see bug #211214. Also, I recommend writing a separate ebuild that actually handles the Russian voice. This way, we won't need to do another festival release every time the Russian voice is released. I would recommend doing a separate ebuild for the Russian voice and not including it in the festival ebuild. Created attachment 215631 [details]
festival-ru-0.5.ebuild
+*festival-ru-0.5 (14 Mar 2010) + + 14 Mar 2010; Jesus Rivero <neurogeek@gentoo.org> +festival-ru-0.5.ebuild, + +metadata.xml: + Initial commit. Closes bug #195629 + Ivan and Aleksandr, Thanks a lot, really good job. Russian voices are now in CVS. Best regards, |