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

Properly strip silence in pocketsphinx in unimrcp #149

Open
GoogleCodeExporter opened this issue Mar 17, 2015 · 9 comments
Open

Properly strip silence in pocketsphinx in unimrcp #149

GoogleCodeExporter opened this issue Mar 17, 2015 · 9 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 10 Dec 2012 at 11:36

Attachments:

@GoogleCodeExporter
Copy link
Author

Original comment by [email protected] on 7 Mar 2013 at 8:49

  • Added labels: Type-Enhancement, Priority-Medium, OpSys-All, Component-PocketSphinx

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 28 May 2013 at 4:21

@GoogleCodeExporter
Copy link
Author

Files are still there, you probably misunderstood something. You need to apply 
patch to unimrcp sources, not to pocketsphinx.

Original comment by [email protected] on 28 May 2013 at 5:19

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 28 May 2013 at 6:23

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 28 May 2013 at 6:33

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 28 May 2013 at 6:53

@GoogleCodeExporter
Copy link
Author

Try "patch -p0 < file.diff" instead of just "patch < file.diff"

Original comment by [email protected] on 28 May 2013 at 7:07

@GoogleCodeExporter
Copy link
Author

Awesome, that worked. Thank you!

Original comment by [email protected] on 28 May 2013 at 7:37

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

No branches or pull requests

1 participant