Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

maxChans failed #29

Open
Blyzz616 opened this issue Apr 2, 2019 · 2 comments
Open

maxChans failed #29

Blyzz616 opened this issue Apr 2, 2019 · 2 comments

Comments

@Blyzz616
Copy link

Blyzz616 commented Apr 2, 2019

Hi there,

I'm trying to get your soundmeter working on a Raspberry Pi Zero W.

I'm getting the following error when I try do anything:

Expression 'parameters->channelCount <= maxChans' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1514
Expression 'ValidateParameters( inputParameters, hostApi, StreamDirection_In )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2818
Traceback (most recent call last):
File "/usr/local/bin/soundmeter", line 11, in
load_entry_point('soundmeter==0.1.5', 'console_scripts', 'soundmeter')()
File "/usr/local/lib/python2.7/dist-packages/soundmeter/meter.py", line 321, in main
m = Meter(**kwargs)
File "/usr/local/lib/python2.7/dist-packages/soundmeter/meter.py", line 66, in init
frames_per_buffer=self.config.FRAMES_PER_BUFFER)
File "/usr/local/lib/python2.7/dist-packages/pyaudio.py", line 750, in open
stream = Stream(self, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/pyaudio.py", line 441, in init
self._stream = pa.open(**arguments)
IOError: [Errno -9998] Invalid number of channels

I have no experience with Python, so not sure what I'm looking at here.

@krzyk
Copy link

krzyk commented May 9, 2019

Same issue on my side, Raspberry Pi 3B+ with an usb mic

@krzyk
Copy link

krzyk commented May 9, 2019

@Blyzz616 This is solved in #1 (you need to create a config with a channel = 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants