These patch can add "multisyn modules" and support russian language for festival from https://developer.berlios.de/projects/festlang or in russian http://festlang.berlios.de/docu/doku.php?id=russianru ~ # diff /usr/local/portage/app-accessibility/festival/festival-1.96_beta.ebuild /usr/portage/app-accessibility/festival/festival-1.96_beta.ebuild 21,22d20 < $(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 ) 27d24 < 31c28 < IUSE="mbrola linguas_ru" --- > IUSE="mbrola" 50a48,50 > # disable the multisyn modules > sed -i -e "s:\(ALSO_INCLUDE.*=.*MultiSyn\):# \1:" ${S}/config/config.in > 59,63d58 < < 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 112,113d106 < 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/ Reproducible: Always Steps to Reproduce: 1. 2. 3. Actual Results: With these patch i can add Russian language to festival Expected Results: Adding in app-accessibility/festival/festival-1.96_beta feature "language_ru" and "multisyn modules" # emerge --info Portage 2.1.3.9 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.5-r4, 2.6.21-gentoo-r4 i686) ================================================================= System uname: 2.6.21-gentoo-r4 i686 Intel(R) Pentium(R) 4 CPU 3.20GHz Timestamp of tree: Wed, 03 Oct 2007 09:00:01 +0000 app-shells/bash: 3.2_p17 dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.4.4-r5 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.9-r2 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17-r1 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.21 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium4 -O3 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/bind" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php4/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php4/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php4/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo" CXXFLAGS="-march=pentium4 -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="ru_RU.UTF-8" LC_ALL="" LINGUAS="ru" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/synce /usr/portage/local/layman/pda /usr/portage/local/layman/xeffects /usr/portage/local/layman/sunrise /usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="7zip X aac accessibility acl acpi ads akode alsa apache2 apm arts asf automount avi bash-completion berkdb bitmap-fonts bluetooth bzip2 cairo cdr cli cracklib crypt ctype cups dbus dga dhcp directfb dmi dri dvd dvdr dvdread eds emboss encode esd event evo evolution fam fbcon firefox foomaticdb fortran ftp gd gdbm gif glitz glut gmail gpm hal iconv imap imlib irmc isdnlog ithreads java jpeg jpeg2k kde kerberos krb4 lcms ldap ldapsam libcaca libg++ libwww mad metuxmpm midi mikmod mmx mng motif mp3 mpeg mplayer mpm-threadpool mppe-mppc mssql mudflap musicbrainz mysql mysqli ncurses nls nptl nptlonly nsplugin odbc ogg opengl openmp oss pam pcntl pcre pdf pdflib perchild perl png posix pppd profile python qt qt3 qt3support qt4 quicktime quotas rdesktop readline reflection samba sdl session slang sndfile snmp sockets spell spl sqlite sqlite3 sse sse2 ssl suid svg swat syslog tcltk tcpd threads tiff truetype truetype-fonts type1-fonts udev unicode usb utempter vcd vim-with-x vorbis win32codecs winbind x86 xcomposite xml xorg xpm xprint xscreensaver xv zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo nvidia" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
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,