Pagina 1 di 1

Festival

Inviato: dom 5 mar 2006, 0:06
da Harp
Ho scaricato il tgz messo a disposizione da Gohanz. (Colgo l'occasione per rigraziarti per tutti i tgz che ci fornisci :wink: )

Ho notato che le voci sono metalliche. E' il massimo che ci si può aspettare dal programma, oppure ci sono delle migliorie da apportare configurando opportunamente qualcosa?
Approposito di configurare, dove posso reperire informazioni su questo programma? Tipo come fare a far leggere anche testi non presi da pdf, ma ad esempio da e-mail? Aggiungere voci o crearne nuove?

Grazie in anticipo.

Inviato: dom 5 mar 2006, 11:42
da gohanz
Ho scritto due nuovi SlackBuild per Speech_Tools, la dipendenza primaria di Festival e di Festival. Perchè il pacchetto che hai scaricato è fuori standard. Sono tuttora in fase di testing, anche da parte di Loris, vista la mole del programma.
Per avere voci di qualità più elevate bisogna usare Mbrola insieme a Festival, con i fonemi adatti ad esso. Ancora non l'ho pacchettizzato.


Vi lascio a disposzione gli SlackBuild con i link per i sorgenti. Se qualcuno li puo testare e magari fare delle migliorie.

Bisogna prima compilare speech_tools senza cancellare la directory di compilazione!!
Quindi /tmp/speech_tools bisogna lasciarlo perchè serve a compilare festival

primo slackbuild Speech_tools

http://www.cstr.ed.ac.uk/downloads/fest ... eta.tar.gz


#!/bin/sh
# Heavily based on the Slackware 10.2 SlackBuild
# http://www.cstr.ed.ac.uk/projects/speech_tools/
# Packagers Gohanz ( gohanz@infinito.it)
# http://www.slacky.it





CWD=`pwd`
if ["$TMP" = ""]; then
TMP=/tmp
fi
PKG=$TMP/package-speech_tools
NAME=speech_tools
VERSION=1.2.95-beta
ARCH=${ARCH:-i686}
BUILD=1AS




if [ ! -d $TMP ]; then
mkdir -p $TMP
fi
if [ ! -d $PKG ]; then
mkdir -p $PKG
fi

cd $TMP
tar xvzf $CWD/$NAME-$VERSION.tar.gz


echo "+-----------------------------------------------+"
echo "| Starting SlackBuild $NAME-$VERSION |"
echo "+-----------------------------------------------+"


cd $NAME
chown -R root.root .

./configure --prefix=/usr \
--program-prefix="" \
--program-suffix="" \

( cd config
sed -i "s|# SHARED=1|SHARED=1|g" config
)

make

make test


mkdir -p $PKG/usr/doc/$NAME-$VERSION
cp -a \
INSTALL README \
$PKG/usr/doc/$NAME-$VERSION
cd $CWD
cp -a *.SlackBuild slack-desc $PKG/usr/doc/$NAME-$VERSION
chown -R root.root $PKG/usr/doc/$NAME-$VERSION

mkdir -p $PKG/usr/bin
find $TMP/$NAME/bin/ -perm -755 -exec cp {} /$PKG/usr/bin \;



mkdir -p $PKG/usr/lib/$NAME/config
mkdir -p $PKG/usr/lib/$NAME/lib/siod

cp -a $TMP/$NAME/lib/lib* $PKG/usr/lib
cp -a $TMP/$NAME/lib/siod/* $PKG/usr/lib/$NAME/lib/siod
cp -a -r $TMP/$NAME/config/* $PKG/usr/lib/$NAME/config



mkdir -p $PKG/usr/share/$NAME/example_data
cp -a $TMP/$NAME/lib/example_data/* $PKG/usr/share/$NAME/example_data

mkdir -p $PKG/usr/include/$NAME
cp -a -r $TMP/$NAME/include/* $PKG/usr/include/$NAME
ln -s $PKG/usr/lib/$NAME/include $PKG/usr/include/$NAME

( cd $PKG
find -iname 'Makefile' -exec rm -f {} \;
find -iname 'config.in' -exec rm -f {} \;
)

( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs strip -g 2> /dev/null
)


mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc

chown -R root.bin $PKG/usr/bin

cd $PKG
requiredbuilder -y -v $PKG
makepkg -l y -c n $CWD/$NAME-1.2.95_beta-$ARCH-$BUILD.tgz

Quindi una volta compilato ed installato il pacchetto e senza camcellare la directory di compilazione, bisogna compilare festival.

Qui si trovano tutti i sorgenti
http://www.cstr.ed.ac.uk/downloads/festival/1.95/

Per la lingua Italiana

http://www.pd.istc.cnr.it/Software/It-F ... an_scm.zip
http://www.pd.istc.cnr.it/Software/It-F ... ex_ifd.zip
http://www.pd.istc.cnr.it/Software/It-F ... iphone.zip
http://www.pd.istc.cnr.it/Software/It-F ... iphone.zip

questo è lo SlackBuild per Festival

#!/bin/sh
# Heavily based on the Slackware 10.2 SlackBuild
# http://www.cstr.ed.ac.uk/projects/festival/
# Packagers Gohanz ( gohanz@infinito.it)
# http://www.slacky.it
# Depends from :
# Speech_tools.....(http://www.cstr.ed.ac.uk/projects/speech_tools/ )




CWD=`pwd`
if ["$TMP" = ""]; then
TMP=/tmp
fi
PKG=$TMP/package-festival
NAME=festival
VERSION=1.95-beta
ARCH=${ARCH:-i686}
BUILD=1AS
export FESTIVAL_HOME=/usr/lib/festival



if [ ! -d $TMP ]; then
mkdir -p $TMP
fi
if [ ! -d $PKG ]; then
mkdir -p $PKG
fi

cd $TMP

tar xvzf $CWD/$NAME-$VERSION.tar.gz
tar xvzf $CWD/festlex_CMU.tar.gz
tar xvzf $CWD/festlex_OALD.tar.gz
tar xvzf $CWD/festlex_POSLEX.tar.gz
tar xvzf $CWD/festvox_don.tar.gz
tar xvzf $CWD/festvox_kallpc16k.tar.gz
tar xvzf $CWD/festvox_kedlpc16k.tar.gz
tar xvzf $CWD/festvox_rablpc16k.tar.gz
tar xvzf $CWD/festvox_ellpc11k.tar.gz
unzip $CWD/italian_scm.zip
unzip $CWD/lex_ifd.zip
unzip $CWD/lp_diphone.zip
unzip $CWD/pc_diphone.zip





echo "+-----------------------------------------+"
echo "| Starting SlackBuild $NAME-$VERSION |"
echo "+-----------------------------------------+"


cd $NAME
chown -R root.root .

./configure --prefix=/usr \
--program-prefix="" \
--program-suffix="" \



make

make test


mkdir -p $PKG/usr/doc/$NAME-$VERSION
cp -a \
ACKNOWLEDGMENTS COPYING INSTALL NEWS README \
$PKG/usr/doc/$NAME-$VERSION
cd $CWD
cp -a *.SlackBuild slack-desc $PKG/usr/doc/$NAME-$VERSION
chown -R root.root $PKG/usr/doc/$NAME-$VERSION

mkdir -p $PKG/usr/bin
find $TMP/$NAME/src/main -perm -755 -exec cp {} /$PKG/usr/bin \;
find $TMP/$NAME/examples/ -perm -755 -exec cp {} /$PKG/usr/bin \;
cp -a $TMP/$NAME/lib/etc/email_filter $PKG/usr/bin
cp -a $TMP/$NAME/lib/etc/unknown_Linux/audsp $PKG/usr/bin


mkdir -p $PKG/usr/lib/festival
cp -a -r $TMP/$NAME/lib/* $PKG/usr/lib/festival
cp -a $TMP/$NAME/src/lib/* $PKG/usr/lib/
rm -r $PKG/usr/lib/festival/etc

mkdir -p $PKG/usr/include/festival
cp -a $TMP/$NAME/src/include/* $PKG/usr/include/festival

mkdir -p $PKG/usr/man/man1
( cd $TMP/$NAME/doc
cp -a festival.1 festival_client.1 $PKG/usr/man/man1
)

( cd $PKG
find -iname 'Makefile' -exec rm -f {} \;
)

( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs strip -g 2> /dev/null
)


mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc

chown -R root.bin $PKG/usr/bin
gzip -9 $PKG/usr/man/man1/*

cd $PKG
requiredbuilder -y -v $PKG
makepkg -l y -c n $CWD/$NAME-1.2.95_beta-$ARCH-$BUILD.tgz

if [ "$1" = "--cleanup" ]; then
rm -rf $TMP/$NAME-$VERSION
rm -rf $PKG
fi

Provate se funziona il tutto :roll:

Inviato: lun 6 mar 2006, 12:05
da gohanz
Mi sono accorto che ci sono dei problemi, in pratica l'eseguibile va a cercare le librerie in un punto sbagliato. Qui è tutto da rifare :roll: