You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+56-5Lines changed: 56 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,10 +13,11 @@ Attention
13
13
14
14
The ASR server that will be set up here requires some [kaldi models](http://www.kaldi.org). In the docker image I will detail below, there are no kaldi models included.
15
15
16
-
You must have these models on your machine. You must also an yaml file describing these models. Please, check some examples [here](https://github.com/alumae/kaldi-gstreamer-server/blob/master/sample_worker.yaml), [here](https://github.com/alumae/kaldi-gstreamer-server/blob/master/estonian_worker.yaml) and [here](https://github.com/alumae/kaldi-gstreamer-server/blob/master/sample_english_nnet2.yaml) to find out how to write your own yaml files.
16
+
You must have these models on your machine. You must also have an yaml file describing these models. Please, check some examples [here](https://github.com/alumae/kaldi-gstreamer-server/blob/master/sample_worker.yaml), [here](https://github.com/alumae/kaldi-gstreamer-server/blob/master/estonian_worker.yaml) and [here](https://github.com/alumae/kaldi-gstreamer-server/blob/master/sample_english_nnet2.yaml) to find out how to write your own yaml files.
17
17
18
18
There are some kaldi models available for download. I have tested my setup with this [one](https://phon.ioc.ee/~tanela/tedlium_nnet_ms_sp_online.tgz), which is for English. I'm trying to build a model for Brazilian Portuguese, but until now I didn't find enough free/open resources.
19
19
20
+
20
21
Install docker
21
22
--------------
22
23
@@ -44,10 +45,10 @@ It's possible to use the same docker in two scenarios. You may create the master
44
45
45
46
* Instantiate master server and worker server on the same machine:
46
47
47
-
Assuming that your kaldi models are located at /home/models on your host machine, create a container:
48
+
Assuming that your kaldi models are located at /media/kaldi_models on your host machine, create a container:
48
49
49
50
```
50
-
docker run -it -p 8080:80 -v /home/models:/opt/models jcsilva/docker-kaldi-gstreamer-server:latest /bin/bash
51
+
docker run -it -p 8080:80 -v /media/kaldi_models:/opt/models jcsilva/docker-kaldi-gstreamer-server:latest /bin/bash
51
52
```
52
53
53
54
And, inside the container, start the service:
@@ -65,10 +66,10 @@ For stopping the servers, you may execute the following command inside your cont
65
66
66
67
* Instantiate a worker server and connect it to a remote master:
67
68
68
-
Assuming that your kaldi models are located at /home/models on your host machine, create a container:
69
+
Assuming that your kaldi models are located at /media/kaldi_models on your host machine, create a container:
69
70
70
71
```
71
-
docker run -it -v /home/models:/opt/models jcsilva/docker-kaldi-gstreamer-server:latest /bin/bash
72
+
docker run -it -v /media/kaldi_models:/opt/models jcsilva/docker-kaldi-gstreamer-server:latest /bin/bash
72
73
```
73
74
74
75
And, inside the container, start the service:
@@ -119,6 +120,56 @@ After checking the setup, you should test your speech recognition service. For t
119
120
120
121
3. A Javascript client is available at http://kaljurand.github.io/dictate.js/. You must configure it to use your ASR service.
121
122
123
+
124
+
Practical Example
125
+
-----------------
126
+
127
+
This section describes a tested example. You may repeat all the steps and, in the end, you'll have an english ASR system working on your machine.
128
+
129
+
On the host machine, we are going to work on the directory /media/kaldi_models. I'll assume you have all permissions necessary to execute the following commands.
OBS: For running the client example, you must install ws4py version 0.3.2. This can be installed using `pip install --user ws4py==0.3.2`. You may also need simplejson and pyaudio. They may also be installed using pip.
0 commit comments