Robotics StackExchange | Archived questions

Pocketsphinx stops working

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

Asked by Lisa Meier on 2016-12-25 21:55:09 UTC

Comments

How is this problem related to ROS?

Asked by NEngelhard on 2016-12-26 13:42:59 UTC

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

Asked by gvdhoorn on 2016-12-26 14:24:25 UTC

thank you dvdhoorn

Asked by Lisa Meier on 2016-12-26 16:29:04 UTC

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

Asked by Humpelstilzchen on 2016-12-27 04:39:29 UTC

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

Asked by Lisa Meier on 2016-12-27 08:24:37 UTC

Here you can see my Alsamixer and Terminal outputs https://www.dropbox.com/sh/n17h1an5il9qtfx/AADQIS-rujxVtz516lPM8zV-a?dl=0

Asked by Lisa Meier on 2016-12-27 08:30:01 UTC

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

Asked by gvdhoorn on 2016-12-27 09:11:32 UTC

Please pastebin the output after setting

export GST_DEBUG="vader:4"

of 1) working 2) not working

Asked by Humpelstilzchen on 2016-12-27 11:53:28 UTC

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.

Asked by gvdhoorn on 2016-12-27 12:11:58 UTC

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.

Asked by Humpelstilzchen on 2016-12-27 12:33:13 UTC

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: frame_len 80 rms power 0 threshold 6 vote 0

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

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

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

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

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

0:00:21.749458181 3308 0x1a35b20 DEBUG vader gstvader.c:544:gst_vader_chain: frame_len 80 rms power 0 threshold 6 vote 0

0:00:21.760292457 3308 0x1a35b20 DEBUG vader gstvader.c:544:gst_vader_chain: frame_len 80 rms power 0 threshold 6 vote 0

0:00:21.770147094 3308 0x1a35b20 DEBUG vader gstvader.c:544:gst_vader_chain: frame_len 80 rms power 0 threshold 6 vote 0

0:00:21.778326258 3308 0x1a35b20 DEBUG vader gstvader.c:544:gst_vader_chain: frame_len 80 rms power 0 threshold 6 vote 0

0:00:21.788995582 3308 0x1a35b20 DEBUG vader gstvader.c:544:gst_vader_chain: frame_len 80 rms power 0 threshold 6 vote 0

0:00:21.799270527 3308 0x1a35b20 DEBUG vader gstvader.c:544:gst_vader_chain: frame_len 80 rms power 0 threshold 6 vote 0

0:00:21.809790554 3308 0x1a35b20 DEBUG vader gstvader.c:544:gst_vader_chain: frame_len 80 rms power 0 threshold 6 vote 0

0:00:21.820438235 3308 0x1a35b20 DEBUG vader gstvader.c:544:gst_vader_chain: frame_len 80 rms power 0 threshold 6 vote 0

0:00:21.828792858 3308 0x1a35b20 DEBUG vader gstvader.c:544:gst_vader_chain: frame_len 80 rms power 0 threshold 6 vote 0

0:00:21.838404373 3308 0x1a35b20 DEBUG vader gstvader.c:544:gst_vader_chain: frame_len 80 rms power 0 threshold 6 vote 0

0:00:21.848984876 3308 0x1a35b20 DEBUG vader gstvader.c:544:gst_vader_chain: frame_len 80 rms power 0 threshold 6 vote 0

0:00:21.859772357 3308 0x1a35b20 DEBUG vader gstvader.c:544:gst_vader_chain: frame_len 80 rms power 0 threshold 6 vote 0

0:00:21.869615830 3308 0x1a35b20 DEBUG vader gstvader.c:544:gst_vader_chain: frame_len 80 rms power 0 threshold 6 vote 0

0:00:21.879321461 3308 0x1a35b20 DEBUG vader gstvader.c:544:gst_vader_chain: frame_len 80 rms power 0 threshold 6 vote 0

0:00:21.890231091 3308 0x1a35b20 DEBUG vader gstvader.c:544:gst_vader_chain: frame_len 80 rms power 0 threshold 6 vote 0

0:00:21.898495923 3308 0x1a35b20 DEBUG vader gstvader.c:544:gst_vader_chain: frame_len 80 rms power 0 threshold 6 vote 0

0:00:21.908359529 3308 0x1a35b20 DEBUG vader gstvader.c:544:gst_vader_chain: frame_len 80 rms power 0 threshold 6 vote 0

Asked by Lisa Meier on 2016-12-27 15:37:31 UTC

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

Asked by Lisa Meier on 2016-12-27 15:47:59 UTC

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

Asked by AndyZe on 2016-12-28 11:08:11 UTC

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

Asked by Lisa Meier on 2016-12-29 08:17:52 UTC

Please longer outputs for

1) When recognition works

2) not works

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

Asked by Humpelstilzchen on 2016-12-30 02:52:22 UTC

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

Asked by Lisa Meier on 2016-12-30 07:11:26 UTC

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

Asked by Humpelstilzchen on 2016-12-30 12:33:01 UTC

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

Asked by Lisa Meier on 2017-01-01 10:03:12 UTC

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.

Asked by gvdhoorn on 2017-01-01 12:50:38 UTC

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

Asked by Lisa Meier on 2017-01-05 12:27:11 UTC

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

Asked by Lisa Meier on 2017-01-05 13:08:57 UTC

Your output does not reflect the first x seconds and has a duraction of less then 1s. Do you pass the correct audio source to the recognizer node?

Asked by Humpelstilzchen on 2017-01-05 16:00:28 UTC

Answers