Open sriranjanr opened 6 years ago
I get the following errors when I try to run demo.py on raspberry pi zero
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
Expression 'paInvalidSampleRate' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2048
Expression 'PaAlsaStreamComponent_InitialConfigure( &self->capture, inParams, self->primeBuffers, hwParamsCapture, &realSr )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2719
Expression 'PaAlsaStream_Configure( stream, inputParameters, outputParameters, sampleRate, framesPerBuffer, &inputLatency, &outputLatency, &hostBufferSizeMode )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2843
Traceback (most recent call last):
File "demo.py", line 27, in
How shall I solve these?Please let me know.
I was able to solve the jack server issue by using "jack_control start" command at the command prompt but now I am having invalid sample rate issue..how shall I solve the sample rate issue? My USB mic has a default sample rate of 44100 Hz.
Now as snowboy needs 16000 sample rate, how and where do I convert the 44100 to 16000? Or could someone recommend a USB sound card supporting 16000 sample rate..?
I also read that there are rate convert plugins like libsample rate with which we can set global converted sampling rates..I will try to use this library.
This camera usually works: https://www.amazon.com/Sony-PlayStation-Camera-Bulk-Packaging-Pc/dp/B0072I2240/ref=sr_1_1?ie=UTF8&qid=1525826776&sr=8-1&keywords=ps3+eye+camera
Regarding the avs sdk, we will submit a PR later this month.
I was also having the same issue with sample rate. I did started with a fresh copy of raspian stretch and make sure you do not run apt-get upgrade
. Setup and run snowboy kittAI demp.py and check if it detects the word and then setup AVS with following sh files https://github.com/alexa/avs-device-sdk/files/2761089/scripts.zip
More specifically I want to integrate snowboy wake word engine with C++ sample demo in AVS Alexa SDK. So how do I compile the C++ and C samples given here in the git?