Posts Tagged ‘Julius’

sudo apt-get remove julius

Sunday, January 4th, 2009

I just removed julius using the terminal:

ubuntu@ubuntu-desktop:~$ sudo apt-get remove julius

Then I double-klicked on ‘simon-0.2-beta-1-Linux.deb‘, and tried to install the package. But the installation failed, again. The file usr/include/sent/machines.h couldn’t be overwritten because it is also a package in bjulius.dev. So I opened the Synaptic Package Manager. I am now removing ‘julius-voxforge‘ and ‘libjulius-dev‘ with Synaptic Package Manager. And now, I am trying to install the package ‘simon-0.2-beta-1-Linux.deb‘ again.

simon-0.2-beta-1-Linux.deb
simon-0.2-beta-1-Linux.deb: Installation was successful

And let’s take a look into the Ubuntu menu Applications - Universal Access:

Applications - Universal Access
ksimond, simon, and simond in the menu Applications > Universal Access

What is the difference between ksimond, simon, and simond?

apt-get remove julius

Sunday, January 4th, 2009

A few days ago, I tried to install simon-0.2-beta-1-Linux.deb. Obviously, it is necessary to deinstall the Julius package with the command ‘apt-get remove julius‘ before the installation of the package simon-0.2-beta-1-Linux.deb. I will try that later.

The package simon-0.2-beta-1-Linux.deb was created with the packaging system CPack. This package system is obviously not able to resolve package conflicts between Simon and Julius.

Unfortunately, Simon 0.2 doesn’t seem to work out of the box. I would just like to dictate a few words with Simon. But until now, I wasn’t successful.

By the way, my primary focus is not command and control. It is just dictation. But I have to define a grammar. How can I do that? How is it possible to define a grammar? I have read a few lines in the HTK book about a sample grammar. But I don’t know how to integrate such a sample grammar into Simon. A simple grammar can be found in the HTK book chapter 3.1.1 (page 24). Would such a grammar be suitable for Simon?

And I would like to be able to switch between the German and the English language. With Dragon NaturallySpeaking 9.5 Preferred (which I am using) it is possible to switch between English and German. It would be great if such an option would be available in Simon.

You can see, there are several problems to solve.

Julius Daemon under Intrepid Ibex

Tuesday, November 18th, 2008

I just started juliusd. Those were the corresponding lines in the terminal:

ubuntu@ubuntu-desktop:~/simon/speech2text/trunk/src$ cd /home/ubuntu/simon/speech2text/juliusd/
ubuntu@ubuntu-desktop:~/simon/speech2text/juliusd$ ./juliusd

Afterwards, the juliusd window with the name “Julius Daemon” opened.
Julius Daemon under Intrepid Ibex

Building juliusd

Tuesday, November 18th, 2008

I just switched into the juliusd folder by typing into the terminal cd /home/ubuntu/simon/speech2text/juliusd/. Afterwards, I typed “./build“.

Building juliusd
The executable file “juliusd” is now ready.

Let’s take a look into the juliusd folder.
The executable file juliusd in the folder juliusd
I hope that it will work.

Installing Julius with the terminal under Ubuntu

Sunday, November 16th, 2008

I just installed Julius. This was shown in (or typed into) the terminal:

ubuntu@ubuntu-desktop:~$ julius
The program 'julius' is currently not installed.  You can install it by typing:
sudo apt-get install julius
bash: julius: command not found
ubuntu@ubuntu-desktop:~$ sudo apt-get install julius
[sudo] password for ubuntu:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libavutil1d libpostproc1d libx264-57
Use 'apt-get autoremove' to remove them.
Suggested packages:
julius-voxforge
The following NEW packages will be installed:
julius
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 833kB of archives.
After this operation, 1909kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com intrepid/multiverse julius 4.0.2-0ubuntu1 [833kB]
Fetched 833kB in 1s (451kB/s)
Selecting previously deselected package julius.
(Reading database ... 162249 files and directories currently installed.)
Unpacking julius (from .../julius_4.0.2-0ubuntu1_i386.deb) ...
Processing triggers for man-db ...
Setting up julius (4.0.2-0ubuntu1) ...
ubuntu@ubuntu-desktop:~$

I hope that it will work. I didn’t know that it is possible to install Julius under Ubuntu using apt-get install.

I just took a look into the Synaptic Package Manager. And I found out that they offer three Julius-related packages.

Julius package in the Synaptic Package Manager

The green marked package is the one that I just installed. It is getting more and more comfortable.

You may want to take a look into the details of the package julius-voxforge in Intrepid.

Downloading Julius 4.02

Tuesday, November 11th, 2008

I am now downloading Julius 4.02 because I am following theses instructions.

I just learned that there is a “HTK-to-Julius grammar converter”. Maybe I will take a look at the source code.

I just extracted the archive julius-4.0.2.tar.gz using the Archive Manager (under Ubuntu). Now I have to change into the directory.
root@ubuntu-desktop:/home/ubuntu# cd julius-4.0.2
After pressing the enter key, I am now in the correct directory.
root@ubuntu-desktop:/home/ubuntu/julius-4.0.2#
And now, I will type into the terminal ./configure && make. This is the corresponding line in the terminal:
root@ubuntu-desktop:/home/ubuntu/julius-4.0.2# ./configure && make

Obviously, some problems occured:
configure: error: flex library not found! installation terminated
configure: error: ./configure failed for gramtools

I don’t know whether these problems are substantial. And I don’t know how to fix them.