Tony607/Keras-Trigger-Word

Kernel dying

Closed this issue · 0 comments

Hi,
I'm trying to test your "trigger_word_real_time_demo" notebook.
At this part of the code:

stream = get_audio_input_stream(callback)

The kernel dies and gets restarted, I can't see any error not in the jupyter console, nor in the notebook itself.
I've also tried to export a .py and run it from my console but I only get "segmentation fault (core dumped)", in the same line.

I know that this information is not much, maybe you can help me troubleshot this problem.
Thanks for your help in advance.

Mattia

EDIT:
Investigating the problem, it seems that I'm missing a default_input_device, therefore when your program tries to access the device list, using "input_device_index=0", it goes into segmentation fault, since the list is empty.
I'm not the only one encountering this problem, there are numerous cases like mine on stack overflow.
https://stackoverflow.com/questions/42404408/pyaudio-cannot-find-any-output-devices, this is just one of many example I've found, unfortunately i still couldn't find a way to make it work.