julius-speech / julius

Open-Source Large Vocabulary Continuous Speech Recognition Engine
BSD 3-Clause "New" or "Revised" License
1.8k stars 295 forks source link

using mkdfa the grammar compiler #45

Open hiddenotebook opened 7 years ago

hiddenotebook commented 7 years ago

Hi i am trying to use an application that I've used many times to control the music player, but when trying to compile grammar:

hiddenotebook@rules:~/julius/test-python$ mkdfa mediaplayer The " mkdfa " program is not installed. You can install it by typing: sudo apt install julius

This is not an error but I have Julius on /home/user/julius How I can redirect mkdfa to that directory? I'm missing something?

I hope you can forgive me for the lack of experience. Thank you very much.

colbec commented 7 years ago

mkdfa is actually a perl script, so the call should be "mkdfa.pl ...". It should be installed during a normal Julius install. Try doing a "which mkdfa.pl" on your system. BTW the printed advice "apt install" is distro specific and probably should be revised.

Edit: I guess the apt install advice is actually ok, provided by an intelligent package manager. If I do the same on my system:

> mkdfa
If 'mkdfa' is not a typo you can use command-not-found to lookup the package that contains it, like this:
    cnf mkdfa

which is perhaps not quite so helpful. Also, there is a binary executable on the system called "mkfa" which is called by mkdfa.pl, but the spelling is different.

hiddenotebook commented 7 years ago

Thank you very much for the explanation. Now it works.

Wen I install julius with "apt install" mkdfa works fine, for that reason did not understand what was going on.

BTW the printed advice "apt install" is distro specific and probably should be revised.

Yes sir right, but this is Ubuntu I'm just testing. what I want is to install julius on raspberry and there is no way install it from apt on raspbian jessie.

Thank you for your time I really appreciate it.

colbec commented 7 years ago

I have never played with a Raspberry Pi, but I do understand that the provided OSs can be rather pruned down to save space and therefore remove some functionality. In the case of Julius it should be possible to do all the development work of building grammars and language models on the big machine and then just transfer the results over to the small one. Important thing I guess would be to have audio samples in the audio model generated from the RPi. Please keep us informed of your experiences with this small machine and Julius.

hiddenotebook commented 7 years ago

Good idea to safe some space. I'm learning how to programing but if you want to know how the thing goes I will be happy to report it. I love julius because don't need internet to do the recognition and is very fast. I'm making a wall-e robot with many sensors RGB leds on his eyes... I wish to make a good robot to take care my home and why not speak with him I use festival too for the speech synthesis.

See you.

hiddenotebook commented 7 years ago

Hi colbec I left a video on youtube if you want to see how works julius on raspberry I was surprised how fast it works I love it.

https://www.youtube.com/watch?v=Uipg8VNgnR4