rcbyron / hey-athena-client

Your personal voice assistant
https://heyathena.com
MIT License
421 stars 98 forks source link

Stream Issues #42

Closed Thasmokey closed 8 years ago

Thasmokey commented 8 years ago

Hello,

I have a new issue... This time it is on my Raspberry pi 2 When i type in: from athena import main , i get this code back:

from athena import main ~ Looking for APIs in: '/usr/local/lib/python3.4/dist-packages/athena/api_library'

~ Logged in as: Smokey

~ APIs: 'weather_api', 'user_api', 'voice_browse_api', 'spotify_api'

~ Looking for modules in: '/usr/local/lib/python3.4/dist-packages/athena/modules/active'

~ Module Order: 'athena_control', 'emotion', 'bitcoin', 'conversation', 'geo_info', 'music', 'spotify', 'twitter', 'voice_browse', 'weather', 'wolfram'


| | | | /\ | | | |
| || | __ / \ | || | _ | _ |/ \ | | | / /\ | **| ' \ / \ ' \ / ` | | | | | / |_| | / ** \ |_| | | | / | | | (| | || |||, | // || ||_|| ||_,| / |
|_
/

~ Hey there, ThaSmokey!

~ Try asking:

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 "/usr/local/lib/python3.4/dist-packages/athena/brain.py", line 224, in run stt.listen_keyword() File "/usr/local/lib/python3.4/dist-packages/athena/stt.py", line 38, in listen_keyword stream = p.open(format=pyaudio.paInt16, channels=1, rate=16000, input=True, frames_per_buffer=1024) File "/usr/lib/python3/dist-packages/pyaudio.py", line 747, in open stream = Stream(self, _args, *_kwargs) File "/usr/lib/python3/dist-packages/pyaudio.py", line 442, in init self._stream = pa.open(**arguments) OSError: [Errno Invalid sample rate] -9997

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python3.4/dist-packages/athena/main.py", line 4, in brain.inst.run() File "/usr/local/lib/python3.4/dist-packages/athena/brain.py", line 240, in run raise Exception Exception

What can i do to solve this problem?