calejost / unimrcp

Automatically exported from code.google.com/p/unimrcp
Apache License 2.0
0 stars 0 forks source link

Properly strip silence in pocketsphinx in unimrcp #149

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Most pocketsphinx models require silence to be stripped except half a second 
before the speech and half a second after. Currently pocketpshinx plugin 
doesn't strip silence and it causes very bad recognition accuracy. 

The attached patch uses endpointer to pass audio to pocketsphinx and improves 
accuracy drastically. It also buffers frames in order to prepend audio which 
arrived before voice start event was detected.

The patch also removes non-default pocketsphinx configuration parameters. They 
are not needed and affect accuracy.

Original issue reported on code.google.com by nshmy...@gmail.com on 10 Dec 2012 at 11:36

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by achalo...@gmail.com on 7 Mar 2013 at 8:49

GoogleCodeExporter commented 8 years ago
I'm a little lost on how to install this patch. The files it modifies don't 
seem to exist. I do of course have sphinxbase and pocketsphinx installed. I 
tried using the locate command to find the files by name instead of following 
the directory path in the .diff file but still no luck.

Maybe I have a later version of pocketsphinx? I'm not sure which files this 
modifies so if anyone can help, that would be great.

Original comment by laus...@silverstarcabinets.com on 28 May 2013 at 4:21

GoogleCodeExporter commented 8 years ago
Files are still there, you probably misunderstood something. You need to apply 
patch to unimrcp sources, not to pocketsphinx.

Original comment by nshmy...@gmail.com on 28 May 2013 at 5:19

GoogleCodeExporter commented 8 years ago
I just installed UniMRCP, but I'm still getting the following when I run the 
patch command on the .diff file...are there options that I'm missing?

can't find file to patch at input line 5
Perhaps you should have used the -p or --strip option?
The text leading up to this was:
--------------------------
|Index: plugins/mrcp-pocketsphinx/src/mrcp_pocketsphinx.c
|===================================================================
|--- plugins/mrcp-pocketsphinx/src/mrcp_pocketsphinx.c  (revision 1849)
|+++ plugins/mrcp-pocketsphinx/src/mrcp_pocketsphinx.c  (working copy)
--------------------------
File to patch:

Original comment by laus...@silverstarcabinets.com on 28 May 2013 at 6:23

GoogleCodeExporter commented 8 years ago
You probably want to read some tutorial on applying patches. The overall steps 
are:

1. Download and unpack unimrcp sources
2. Put the patch into the unimrcp top folder
3. Change to unimrcp top folder (it's important)
4. Run the command patch < file.diff to apply changes in file.diff
5. Build and install unimrcp

Original comment by nshmy...@gmail.com on 28 May 2013 at 6:33

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Ah, thanks.

When you say change to unimrcp top folder, do you mean this: cd unimrcp-1.1.0 
and then run the patch command from there, or is there something else? Because 
I tried that and I'm still getting the same 'can't find file to patch' message.

Original comment by laus...@silverstarcabinets.com on 28 May 2013 at 6:53

GoogleCodeExporter commented 8 years ago
Try "patch -p0 < file.diff" instead of just "patch < file.diff"

Original comment by nshmy...@gmail.com on 28 May 2013 at 7:07

GoogleCodeExporter commented 8 years ago
Awesome, that worked. Thank you!

Original comment by laus...@silverstarcabinets.com on 28 May 2013 at 7:37

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Hi, there!

You may use this repo for CentOS 6.x:
http://repo.vishnivetsky.ru/centos/6.6/own/x86_64/

Original comment by web-proj...@vishnivetsky.ru on 23 Mar 2015 at 1:20