General Discussion

Flat
installation complication on r pi
User: maglinvinn
Date: 12/19/2020 10:30 pm
Views: 3940
Rating: 0

Good evening all.

I looked through the materials provided on the forum here and didn't quite find anything that fit my use case.

I'm attempting to install the jasper solution on this PI

http://jasperproject.github.io/documentation/configuration/#julius-stt


Following this instruction set it informs me i need to adapt the profile to my own vocal patterns which makes sense, ok...

http://www.voxforge.org/home/dev/acousticmodels/linux/adapt/htkjulius/download-htk

I am following this guide then to attempt to do this and created the makeHTK.sh file as dictated here, changing the directory to my own /home/pi/htk

root@raspberrypi:/home/pi/htk# ./makeHTK.sh

rm -f @HGRAF@ esig_asc.o esig_edr.o esignal.o esig_nat.o HAdapt.o HArc.o HAudio.o HDict.o HExactMPE.o HFB.o HFBLat.o HLabel.o HLat.o HLM.o HMap.o HMath.o HMem.o HModel.o HNet.o HParm.o HRec.o HShell.o HSigP.o HTrain.o HUtil.o HVQ.o HWave.o strarr.o  @[email protected] esig_asc.lv.o esig_edr.lv.o esignal.lv.o esig_nat.lv.o HAdapt.lv.o HArc.lv.o HAudio.lv.o HDict.lv.o HExactMPE.lv.o HFB.lv.o HFBLat.lv.o HLabel.lv.o HLat.lv.o HLM.lv.o HMap.lv.o HMath.lv.o HMem.lv.o HModel.lv.o HNet.lv.o HParm.lv.o HRec.lv.o HShell.lv.o HSigP.lv.o HTrain.lv.o HUtil.lv.o HVQ.lv.o HWave.lv.o strarr.lv.o  HTKLib.a HTKLiblv.a

make: *** No rule to make target '@HGRAF@', needed by 'HTKLib.a'.  Stop.

make: *** No rule to make target 'clean'.  Stop.

make: *** No targets specified and no makefile found.  Stop.

make: *** No rule to make target 'clean'.  Stop.

make: *** No targets specified and no makefile found.  Stop.

make: *** No rule to make target 'clean'.  Stop.

make: *** No targets specified and no makefile found.  Stop.

***HTK make completed***



As you can see i'm trying to run this as root.  
There are a number of errors here and i'm not entirely sure what to do about them.

my linux knowledge is limited, i admit, so i'm looking for a little help and a little patience both. 
Thanks all.

--- (Edited on 12/19/2020 10:31 pm [GMT-0600] by ) ---

Re: installation complication on r pi
User: maglinvinn
Date: 12/20/2020 12:36 am
Views: 5
Rating: 0

i tried a different approach

http://www.voxforge.org/home/dev/acousticmodels/linux/create/htkjulius/how-to/download

root@raspberrypi:/home/pi/voxforge/bin/htk/HTKLib# ls

config.h    HANNet.c  HDict.c    HGraf.c HLM.h    HModel.h   HRec.h HUtil.h

esig_asc.c  HANNet.h  HDict.h    HGraf.h HMap.c    HNCache.c  HShell.c HVQ.c

esig_edr.c  HArc.c    HExactMPE.c  HGraf.null.c  HMap.h    HNCache.h  HShell.h HVQ.h

esignal.c   HArc.h    HExactMPE.h  HLabel.c HMath.c   HNet.c     HSigP.c HWave.c

esignal.h   HAudio.c  HFB.c    HLabel.h HMath.h   HNet.h     HSigP.h HWave.h

esig_nat.c  HAudio.h  HFB.h    HLat.c HMem.c    HParm.c    HTrain.c MakefileCPU

HAdapt.c    HCUDA.cu  HFBLat.c    HLat.h HMem.h    HParm.h    HTrain.h MakefileMKL

HAdapt.h    HCUDA.h   HFBLat.h    HLM.c HModel.c  HRec.c     HUtil.c MakefileNVCC

root@raspberrypi:/home/pi/voxforge/bin/htk/HTKLib# make -f MakefileCPU all

gcc  -m64 -ansi -std=gnu99 -D_SVID_SOURCE -DOSS_AUDIO -D'ARCH="x86_64"' -Wall -Wno-switch -g -O2 -I. -DPHNALG   -c -o HGraf.o HGraf.c

gcc: error: unrecognized command line option ‘-m64’

 

make: *** [<builtin>: HGraf.o] Error 1


This is what i got when trying to run the fire makefile from the 3.5 installer.

--- (Edited on 12/20/2020 12:36 am [GMT-0600] by ) ---

Re: installation complication on r pi
User: kmaclean
Date: 12/20/2020 8:03 am
Views: 4
Rating: 0

>gcc: error: unrecognized command line option ‘-m64’

Your trying to use Intel/AMD based make/install scripts on an ARM-based device (RaspberryPI uses an ARM CPU)

You shouldn't need HTK on your raspberrypi.

HTK is used for _training_ Acoustic Models, and this process creates a large text file.  You can do this on your computer.

Julius uses this file as input for recognizing speech.  You will need to install Julius on your raspberry pi.

--- (Edited on 12/20/2020 9:03 am [GMT-0500] by kmaclean) ---

Re: installation complication on r pi
User: maglinvinn
Date: 12/20/2020 5:49 pm
Views: 0
Rating: 0

Hiya! 
Thanks for the tip!  It is a bit of a no brainer hahah

I threw together a mint VM and hit this snag:

john@john-VirtualBox:~/htk$ make all
(cd HTKLib && make HTKLib.a) \
  || case "" in *k*) fail=yes;; *) exit 1;; esac;
make[1]: Entering directory '/home/john/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 HShell.h:40,
                 from HGraf.c:54:
/usr/include/stdio.h:27:10: fatal error: bits/libc-header-start.h: No such file or directory
   27 | #include <bits/libc-header-start.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [<builtin>: HGraf.o] Error 1
make[1]: Leaving directory '/home/john/htk/HTKLib'
make: *** [Makefile:96: HTKLib/HTKLib.a] Error 1

looks like i'm missing some dependancies... but there's nothing in the adapt guide that suggests what those might be. Any ideas?

--- (Edited on 12/20/2020 5:49 pm [GMT-0600] by ) ---

Re: installation complication on r pi
User: maglinvinn
Date: 12/20/2020 6:33 pm
Views: 24
Rating: 0

i was able to clear up the errors with some throwing spaghetti at the wall shenanigans.
I hit the '8 spaces did you mean a tab' error on line 77 but i've seen posts for that.  If anyone reading this wants to be a awesome and be like 'oh, just twiddle this bit right here' and get me outta the woods so i can get back to work on the pi i'd be super appreciative. 

--- (Edited on 12/20/2020 6:33 pm [GMT-0600] by ) ---

Re: installation complication on r pi
User: kmaclean
Date: 12/22/2020 5:40 pm
Views: 1437
Rating: 0

>fatal error: bits/libc-header-start.h: No such file or directory

you likely need to install the developer package for libc

--- (Edited on 12/22/2020 6:40 pm [GMT-0500] by kmaclean) ---

PreviousNext