问题
I have this piece of a code and I want to work independently with each of the four mic array I use (Ps3 Eye Cam). For example I want to calculate cross-correlation between the mic 1 and the mic 4 excluding 2 and 3. How can I use channels I want?
import audioop
import alsaaudio
inp = alsaaudio.PCM(alsaaudio.PCM_CAPTURE,alsaaudio.PCM_NONBLOCK)
inp.setchannels(1)
inp.setrate(8000)
inp.setformat(alsaaudio.PCM_FORMAT_S16_LE)
inp.setperiodsize(1000)
Thanks
来源:https://stackoverflow.com/questions/42027487/python-rpi-alsa-use-of-multiple-channels