Looks like you're on linux? That example only works with OS X, I believe.

---------
Matt Taylor
OS Community Flag-Bearer
Numenta

On Tue, Dec 16, 2014 at 5:30 PM, Daniel Levis <[email protected]> wrote:
>
> Hi,
> I am new to the list and hope this isn't an obvious mistake on my part.
> When running audiostream_tp I get the following:
>
> ALSA lib pcm_dsnoop.c:618:(snd_pcm_dsnoop_open) unable to open slave
> ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
> ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
> ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM
> cards.pcm.center_lfe
> ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
> bt_audio_service_open: connect() failed: Connection refused (111)
> bt_audio_service_open: connect() failed: Connection refused (111)
> bt_audio_service_open: connect() failed: Connection refused (111)
> bt_audio_service_open: connect() failed: Connection refused (111)
> ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
> 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
> Number of columns:    512
> Max size of input:    51
> Sampling rate (Hz):    44100
> Passband filter (Hz):    500 - 10000
> Passband filter (bin):    46 - 928
> Bin difference:        882
> Buffersize:        4096
> Traceback (most recent call last):
>   File "audiostream_tp.py", line 303, in <module>
>     audiostream = AudioStream()
>   File "audiostream_tp.py", line 220, in __init__
>     self.processAudio()
>   File "audiostream_tp.py", line 259, in processAudio
>     actualInt = self.e.encode(ufs)
>   File
> "/home/daniel/.local/lib/python2.7/site-packages/nupic-0.1.0-py2.7.egg/nupic/encoders/base.py",
> line 145, in encode
>     self.encodeIntoArray(inputData, output)
>   File
> "/home/daniel/.local/lib/python2.7/site-packages/nupic-0.1.0-py2.7.egg/nupic/encoders/sparse_pass_through_encoder.py",
> line 54, in encodeIntoArray
>     denseInput[input] = 1
> IndexError: arrays used as indices must be of integer (or boolean) type
>
> Is this a user error on my part?  Any suggestions?
>
> Thanks!
>

Reply via email to