[Install] Problemi compilazione HTK - programma audio riconoscimento

Installazione, configurazione e uso di programmi e strumenti.
twister
Prode Principiante
Messaggi: 54
Iscrizione: martedì 21 ottobre 2008, 21:47
Località: Milano

[Install] Problemi compilazione HTK - programma audio riconoscimento

Messaggio da twister »

Ciao a tutti, ho un sistema ubuntu karmic a 64 bit, sto cercando di installare un programma molto carino e potente per l'audio riconoscimento, si chiama Simon, sito internet simon-listen.org. Per l'installazione di simon nessun problema, c'è un bel pacchetto .deb sul sito ufficiale, ma per l'installazione dell'engine di riconoscimento audio ho dei problemi: bisognerebbe compilare del codice sorgente, ho provato a seguire la guida del wiki di simon ma niente da fare mi da questo errore:

Codice: Seleziona tutto

twister@twister-laptop:~/Scrivania/htk$ ./configure 
checking whether make sets $(MAKE)... yes
checking for gawk... gawk
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for ranlib... ranlib
checking for main in -lX11... yes
checking for main in -lm... yes
checking how to run the C preprocessor... gcc -E
checking for X... libraries , headers 
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking float.h usability... yes
checking float.h presence... yes
checking for float.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for memory.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking whether gcc needs -traditional... no
checking for working memcmp... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for working strtod... yes
checking return type of signal handlers... void
checking for vprintf... yes
checking for _doprnt... no
checking for floor... yes
checking for gettimeofday... yes
checking for memmove... yes
checking for memset... yes
checking for modf... yes
checking for pow... yes
checking for socket... yes
checking for sqrt... yes
checking for strchr... yes
checking for strcspn... yes
checking for strrchr... yes
checking for strspn... yes
checking for strstr... yes
checking for strtol... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
configure: creating ./config.status
config.status: creating HTKLib/Makefile
config.status: WARNING:  HTKLib/Makefile.in seems to ignore the --datarootdir setting
config.status: creating HTKTools/Makefile
config.status: WARNING:  HTKTools/Makefile.in seems to ignore the --datarootdir setting
config.status: creating HLMLib/Makefile
config.status: WARNING:  HLMLib/Makefile.in seems to ignore the --datarootdir setting
config.status: creating HLMTools/Makefile
config.status: WARNING:  HLMTools/Makefile.in seems to ignore the --datarootdir setting
config.status: creating HTKLVRec/Makefile
config.status: WARNING:  HTKLVRec/Makefile.in seems to ignore the --datarootdir setting
config.status: creating Makefile
config.status: WARNING:  Makefile.in seems to ignore the --datarootdir setting
**************************************************

HTK is now ready to be built.

Type "make all" to build the HTK libraries
and tools.

Then "make install" to install them.

The tools will be installed in /usr/local/bin

Build notes: Language Modelling tools will be
built. HDecode will not be built. You can build
it manually later by running 'make hdecode
install-hdecode'

**************************************************
twister@twister-laptop:~/Scrivania/htk$ make all
(cd HTKLib && make HTKLib.a) \
	  || case "" in *k*) fail=yes;; *) exit 1;; esac;
make[1]: ingresso nella directory «/home/twister/Scrivania/htk/HTKLib»
gcc  -m32 -ansi -D_SVID_SOURCE -DOSS_AUDIO -D'ARCH="x86_64"' -Wall -Wno-switch -g -O2 -I. -DPHNALG   -c -o HGraf.o HGraf.c
In file included from /usr/include/features.h:378,
                 from /usr/include/stdio.h:28,
                 from HShell.h:40,
                 from HGraf.c:54:
/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: Nessun file o directory
make[1]: *** [HGraf.o] Errore 1
make[1]: uscita dalla directory «/home/twister/Scrivania/htk/HTKLib»
make: *** [HTKLib/HTKLib.a] Errore 1
Allora sapete come aiutarmi?? il wiki è questo:
http://www.cyber-byte.at/wiki/index.php/English:_Setup#HTK_installation

Ad essere sincero non ho capito cosa bisogna fare in  caso di sistema a 64 bit: probabilmente il problema è quello... non è che sapreste darmi una mano
Ultima modifica di digy79 il martedì 8 dicembre 2009, 20:55, modificato 1 volta in totale.
Thank you very much to everyone of the community: thank you because you listen to me and pay attention even if you don't have nothing back, thank you because you try to help me even if you don't know me at all, thank you for trying to understand my problem from my dreadful, tortuous and convoluted explanations and reasoning.

Really thank you, because if I'm growing and improving my abilities and knowledge, it's all thanks to you and I'll be grateful forever.
twister
Prode Principiante
Messaggi: 54
Iscrizione: martedì 21 ottobre 2008, 21:47
Località: Milano

Re: [Install] Problemi compilazione HTK - programma audio riconoscimento

Messaggio da twister »

In che senso cross computing??
Thank you very much to everyone of the community: thank you because you listen to me and pay attention even if you don't have nothing back, thank you because you try to help me even if you don't know me at all, thank you for trying to understand my problem from my dreadful, tortuous and convoluted explanations and reasoning.

Really thank you, because if I'm growing and improving my abilities and knowledge, it's all thanks to you and I'll be grateful forever.
twister
Prode Principiante
Messaggi: 54
Iscrizione: martedì 21 ottobre 2008, 21:47
Località: Milano

Re: [Install] Problemi compilazione HTK - programma audio riconoscimento

Messaggio da twister »

Per esempio nel wiki c'era scritto:
64bit-Systems only!
Remove all appearances of -m32 in configure.ac and run autoconf!
secondo voi cosa significa che devo fare???

Se apro il file configure.ac e cancello la parola -m32 non cambia niente: l'errore è sempre lo stesso
Thank you very much to everyone of the community: thank you because you listen to me and pay attention even if you don't have nothing back, thank you because you try to help me even if you don't know me at all, thank you for trying to understand my problem from my dreadful, tortuous and convoluted explanations and reasoning.

Really thank you, because if I'm growing and improving my abilities and knowledge, it's all thanks to you and I'll be grateful forever.
maurizio82
Prode Principiante
Messaggi: 81
Iscrizione: martedì 25 luglio 2006, 23:03
Località: Roma

Re: [Install] Problemi compilazione HTK - programma audio riconoscimento

Messaggio da maurizio82 »

ciao a tutti,
io ho lo stesso problema con HTK, con tutto che sono su una macchina a 32bit (processore Intel Centrino Core Duo T2300). Nonostante questo, Simon si installa e funziona (quasi) correttamente - sto provando a "tradurlo" in italiano.....

Qualcuno ha provato/è riuscito a installare tutto con successo?

:)
m.
twister
Prode Principiante
Messaggi: 54
Iscrizione: martedì 21 ottobre 2008, 21:47
Località: Milano

Re: [Install] Problemi compilazione HTK - programma audio riconoscimento

Messaggio da twister »

Ciao senti, io personalmente ho risolto... posso aiutarti?? tra le altre cose anche io sarei interessato ad un uso più massiccio di simon e quindi a lavorare sull'eventuale lato italiano del programma... potremmo unire le forze e parlarne un pò, che ne dici? Soprattutto tu hai trovato qualcosa come shadow dictionary italiano??
Thank you very much to everyone of the community: thank you because you listen to me and pay attention even if you don't have nothing back, thank you because you try to help me even if you don't know me at all, thank you for trying to understand my problem from my dreadful, tortuous and convoluted explanations and reasoning.

Really thank you, because if I'm growing and improving my abilities and knowledge, it's all thanks to you and I'll be grateful forever.
maurizio82
Prode Principiante
Messaggi: 81
Iscrizione: martedì 25 luglio 2006, 23:03
Località: Roma

Re: [Install] Problemi compilazione HTK - programma audio riconoscimento

Messaggio da maurizio82 »

ciao twister,
se posti la soluzione qui, magari può essere utile anche a chi avrà lo stesso probl in futuro  ;)  - io ho trovato questa discussione facendo una ricerca su google...

oggi, ragionandoci su, avevo pensato che poteva essere un problema di kernel

Codice: Seleziona tutto

maurizio@maubuntu:~$ uname -r
2.6.31-16-generic-pae
forse mi conviene installare un kernel diverso, specifico per i386 32bit?

:) m.

ps.
twister: se riesco a compilare htk dovrei poter installare anche tutte le altre utility e lavorarci seriamente.
Se vuoi provarlo in italiano con comandi semplici (apri, chiudi,... parole ben distinte insomma) puoi usare questo http://script.blau.in/italian-dictionary.xml.bz2 come shadow dictionary anche se, come dice lo stesso autore, non è adatto per il training (io ci ho provato: confonde "Apri" con "Avanti"!).
cmq contattami pure in priv o via mail, mi fa piacere trovare qualcun altro che si interessa a queste cose
twister
Prode Principiante
Messaggi: 54
Iscrizione: martedì 21 ottobre 2008, 21:47
Località: Milano

Re: [Install] Problemi compilazione HTK - programma audio riconoscimento

Messaggio da twister »

Si beh era chiaro che avrei esposto la soluzione... solo in quel momento non avevo il tempo di farlo ;)

Dunque...

sudo apt-get install build-essential libx11-dev libasound2-dev

Per installare tutte le dipendenze necessarie alla compilazione

tar xvf HTK-.tar.gz
cd htk


per decomprimere il sorgente ed entrare nella cartella...

./configure
make
sudo make install


... per compilare ed installare solo la parte dell'engine HTK usato da Simon...

ora per chi avesse come me un sistema a 64-bit deve prima aprire il file configure.ac, con il comando trova, cercare la parola -m32 e cancellarla, poi prima di ./configure, installare il programma autoconf:

sudo apt-get install autoconf autoconf-archive autoconf-doc

ed usarlo nella cartella htk semplicemente da terminale, nella cartella htk digitando il comando:

autoconf

Se avete ulteriori problemi ditemi che proviamo a risolverli insieme!!  (good)

Per quanto riguarda invece simon: ieri lo ho provato per la prima volta e funzionava, sta sera dovrei provare ad ampliare lo spettro del dizionario e dei comandi... domani vi so dire come è andata!!

Per quanto riguarda la collaborazione, che è chiaramente aperta a tutti, sarebbe bello cercare di lavora su uno shadow dictionary già bello pronto così da aggiungere le parole al volo... il problema è che deve essere coerente, soprattutto in una lingua come l'italiano dove teoricamente sarebbe più facile essendo i suoni più o meno sempre quelli... inoltre dovremmo elaborarne uno con la grammatica già integrata. Poi ci sarebbero eventuali modelli grammaticali e soprattutto qualche testo in italiano da leggere un po utile, magari scritto da noi. Infine potremmo predisporre eventuali liste di comandi standard in italiano da inserire come già impostati... voi che ne pensate??? Allora?? Sono ansioso di ascoltare eventuali proposte o idee!!!

Infine, io personalmente sarei molto interessato al chatbot integrato, ma quando cerco di attivarlo non succede niente... qualcuno ha idea del perchè???
Con "non succede niente" intendo dire che nella cartella ai non ci sono proprio i file che ci dovrebbero essere secondo l'help inglese
Thank you very much to everyone of the community: thank you because you listen to me and pay attention even if you don't have nothing back, thank you because you try to help me even if you don't know me at all, thank you for trying to understand my problem from my dreadful, tortuous and convoluted explanations and reasoning.

Really thank you, because if I'm growing and improving my abilities and knowledge, it's all thanks to you and I'll be grateful forever.
Scrivi risposta

Ritorna a “Applicazioni”

Chi c’è in linea

Visualizzano questa sezione: Sutter_Kaine e 8 ospiti