Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build from source - configure does not detect pocketsphinx installed #29

Closed
ekawahyu opened this issue Oct 14, 2020 · 5 comments
Closed

Comments

@ekawahyu
Copy link

ekawahyu commented Oct 14, 2020

Configure command:

./configure VOICE2JSON_LANGUAGE=en VOICE2JSON_SPEECH=pocketsphinx --disable-precompiled-binaries

Configure summary:

voice2json configuration summary:

architecture: x86_64/amd64
prefix: /home/ubuntu/Downloads/voice2json/.venv
virtualenv: yes
language: en

wake:
  mycroft precise: yes (x86_64, prebuilt)

speech to text:
  pocketsphinx: no
  kaldi: yes (source)
  julius: no
  deepspeech: no

training:
  opengrm: yes (source)
  phonetisaurus: yes (source)
  kenlm: no

configure: creating ./config.status
config.status: creating Makefile
config.status: creating setup.py
config.status: creating voice2json.sh
config.status: creating voice2json.spec

I am on Ubuntu 18.04 LTS with pocketsphinx, libpocketsphinx3, and libpocketsphinx-dev installed

But if I do ./configure only, the summary is as follows:

voice2json configuration summary:

architecture: x86_64/amd64
prefix: /home/ubuntu/Downloads/voice2json/.venv
virtualenv: yes
language: 

wake:
  mycroft precise: yes (x86_64, prebuilt)

speech to text:
  pocketsphinx: yes (source)
  kaldi: yes (prebuilt)
  julius: yes (prebuilt)
  deepspeech: yes (amd64, prebuilt)

training:
  opengrm: yes (prebuilt)
  phonetisaurus: yes (prebuilt)
  kenlm: yes (prebuilt)

configure: creating ./config.status
config.status: creating Makefile
config.status: creating setup.py
config.status: creating voice2json.sh
config.status: creating voice2json.spec

I wanted to build from source with pocketsphinx only and the former seems to include kaldi instead of pocketsphinx. If I remove kaldi from my system, voice2json generates error that kaldi is missing

@synesthesiam
Copy link
Owner

voice2json uses the pocketsphinx Python library, which includes it's own copy of pocketsphinx and supporting Sphinx library. So having it installed through apt-get won't have any effect.

You also have a typo in your command: it should be VOICE2JSON_SPEECH_SYSTEM:

./configure VOICE2JSON_LANGUAGE=en VOICE2JSON_SPEECH_SYSTEM=pocketsphinx --disable-precompiled-binaries

@ekawahyu
Copy link
Author

Ok, thank you for spotting the mistake, it can now configure as expected. Unfortunately, it failed to build with the following error:

make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/home/ubuntu/Downloads/voice2json/build/phonetisaurus'
make[1]: Leaving directory '/home/ubuntu/Downloads/voice2json/build/phonetisaurus'
Tar-ing binary files to /home/ubuntu/Downloads/voice2json/download/phonetisaurus-2019_amd64.tar.gz
cp: target 'lib/' is not a directory
Makefile:203: recipe for target '/home/ubuntu/Downloads/voice2json/download/phonetisaurus-2019_amd64.tar.gz' failed
make: *** [/home/ubuntu/Downloads/voice2json/download/phonetisaurus-2019_amd64.tar.gz] Error 1

@ekawahyu
Copy link
Author

I decided to try using precompiled binaries, it also gave with errors:

chmod +x "/home/ubuntu/Downloads/voice2json/voice2json.sh"
install -D "/home/ubuntu/Downloads/voice2json/voice2json.sh" "/home/ubuntu/Downloads/voice2json/.venv/bin/voice2json"
install -D "--target-directory=/home/ubuntu/Downloads/voice2json/.venv/share/voice2json/etc" "/home/ubuntu/Downloads/voice2json/etc/profile.defaults.yml"
install -D "--target-directory=/home/ubuntu/Downloads/voice2json/.venv/share/voice2json/etc/precise" "/home/ubuntu/Downloads/voice2json/etc/precise"/*
install -D "--target-directory=/home/ubuntu/Downloads/voice2json/.venv/share/voice2json" VERSION README.md LICENSE
cp -fR "/home/ubuntu/Downloads/voice2json/site" "/home/ubuntu/Downloads/voice2json/.venv/share/voice2json/" || true
cp: cannot stat '/home/ubuntu/Downloads/voice2json/site': No such file or directory

@synesthesiam
Copy link
Owner

Thanks for looking into this more! I've updated the Makefile to check for the site directory before trying the copy (it's created with scripts/build-docs.sh and shouldn't affect your install).

I also updated the phonetisaurus build script; hopefully it's fixed, but I haven't gone through the install process again to test yet.

@ekawahyu
Copy link
Author

ekawahyu commented Nov 5, 2020

Installation for both pre-compiled or from source seem to work now. I am having issue with the training, but that's another ticket. Thank you and I am closing this now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants