Pocketsphinx stops working

asked 2016-12-25 20:55:09 -0500

Lisa Meier gravatar image

updated 2016-12-27 14:34:30 -0500

Hi guys, its kinda frustrating but I'm not able to solve this problem on my own. When it works, it works quite well and will run for hours. However, often when I start it up, it does not respond to the microphone at all. The microphone is still working according to the Sound Settings input page, but pocketsphinx just doesn't seem to receive the input. After it has been running properly, I can just stop it with control C and start it again and it may or may not work properly. No changes are made between stopping and starting it.

It seems that the data gets lost...

Alsamixer GUI-Mixer Ros Launch and echo

edit retag flag offensive close merge delete

Comments

How is this problem related to ROS?

NEngelhard gravatar image NEngelhard  ( 2016-12-26 12:42:59 -0500 )edit
1

I'm guessing because of wiki/pocketsphinx :).

gvdhoorn gravatar image gvdhoorn  ( 2016-12-26 13:24:25 -0500 )edit

thank you dvdhoorn

Lisa Meier gravatar image Lisa Meier  ( 2016-12-26 15:29:04 -0500 )edit

Did you observe any difference in a silent environment vs loud/noisy environment on startup?

Humpelstilzchen gravatar image Humpelstilzchen  ( 2016-12-27 03:39:29 -0500 )edit

No i didn't. I heard there be some problems with the gstream but to be honest... i have no clue how to fix them

Lisa Meier gravatar image Lisa Meier  ( 2016-12-27 07:24:37 -0500 )edit

Here you can see my Alsamixer and Terminal outputs https://www.dropbox.com/sh/n17h1an5il...

Lisa Meier gravatar image Lisa Meier  ( 2016-12-27 07:30:01 -0500 )edit

Can you please attach images to the question itself? I've given you enough karma to do that now.

gvdhoorn gravatar image gvdhoorn  ( 2016-12-27 08:11:32 -0500 )edit

Please pastebin the output after setting

export GST_DEBUG="vader:4"

of 1) working 2) not working

Humpelstilzchen gravatar image Humpelstilzchen  ( 2016-12-27 10:53:28 -0500 )edit

Why pastebin? Please just edit it into the original question text @Lisa Meier. All these external services have limited retention. If they / the posts get deleted, this questions loses a lot of value.

gvdhoorn gravatar image gvdhoorn  ( 2016-12-27 11:11:58 -0500 )edit

Because I expect a really long output. (MB log files in seconds)

Update: Scratch that, forgot that I limited GST_DEBUG to vader. In the original question is fine.

Humpelstilzchen gravatar image Humpelstilzchen  ( 2016-12-27 11:33:13 -0500 )edit

The command:

export GST_DEBUG="vader:4"

gave me the infinite output of:

0:00:21.688663585 3308 0x1a35b20 DEBUG vader gstvader.c:544:gst_vader_chain:<vad> frame_len 80 rms power 0 threshold 6 vote 0

0:00:21.699360320 3308 0x1a35b20 DEBUG vader gstvader.c:544:gst_vader_chain:<vad> frame_len 80 rms power 0 threshold 6 vote 0

0:00:21.710070926 3308 0x1a35b20 DEBUG vader gstvader.c:544:gst_vader_chain:<vad> frame_len 80 rms power 0 threshold 6 vote 0

0:00:21.719978938 3308 0x1a35b20 DEBUG vader gstvader.c:544:gst_vader_chain:<vad> frame_len 80 rms power 0 threshold 6 vote 0

0:00:21.728202747 3308 0x1a35b20 DEBUG vader gstvader.c:544:gst_vader_chain:<vad> frame_len 80 rms power 0 threshold 6 vote 0

0:00:21.738875363 3308 0x1a35b20 DEBUG vader gstvader.c:544:gst_vader_chain:<vad> frame_len 80 rms power 0 threshold 6 vote 0

0:00:21.749458181 3308 0x1a35b20 ...(more)

Lisa Meier gravatar image Lisa Meier  ( 2016-12-27 14:37:31 -0500 )edit

Additional Info: I installed Ros on my local PC which has no internal microphone. I used and external microphone instead and here it is pretty reliable but using the PC instead of my Laptop is no option/longtime solution

Lisa Meier gravatar image Lisa Meier  ( 2016-12-27 14:47:59 -0500 )edit

Pocketsphinx also fails to launch correctly on us occasionally, too. No errors are thrown. And we are using an external mic as well.

AndyZe gravatar image AndyZe  ( 2016-12-28 10:08:11 -0500 )edit

occasionally would be great. It now doesn't Start at all. I mean i can launch the robocup.launch file and Echo the recognizer topic put no Output occurs

Lisa Meier gravatar image Lisa Meier  ( 2016-12-29 07:17:52 -0500 )edit

Please longer outputs for

1) When recognition works

2) not works

with you speaking (max 5s should do it, from the beginning).

Humpelstilzchen gravatar image Humpelstilzchen  ( 2016-12-30 01:52:22 -0500 )edit

I stoned working 2 days ago and still doesn't work...

Lisa Meier gravatar image Lisa Meier  ( 2016-12-30 06:11:26 -0500 )edit

Not working output then. (first 5s, talking)

Humpelstilzchen gravatar image Humpelstilzchen  ( 2016-12-30 11:33:01 -0500 )edit

@humpelstielzchen i dont understand what you want me to do... we could talk in german if its easier for you

Lisa Meier gravatar image Lisa Meier  ( 2017-01-01 09:03:12 -0500 )edit

Please post the debug output of a run of pocketsphinx where it is not working. Limit the logfile / run duration to 5 seconds, and make sure you are talking into the microphone.

gvdhoorn gravatar image gvdhoorn  ( 2017-01-01 11:50:38 -0500 )edit

I postet the output in one of my previous comments: Its the exactly same output

Lisa Meier gravatar image Lisa Meier  ( 2017-01-05 11:27:11 -0500 )edit

NEW INFORMATION: I Found out that the reason is my internal microphone. With the USB Mic it works fine. How can i make it work with my internal microphone? Its not muted cause it works pretty fine with recording software such as Audacity

Lisa Meier gravatar image Lisa Meier  ( 2017-01-05 12:08:57 -0500 )edit