I\'m using pyaudio in a school project and I\'m trying to get the sound to play on only one speaker at a time. My code is like this:
import pyaudio p = pyau
Right now you are using channels=1, i.e., a mono audio stream. You need to use two channels for stereo and generate the data for the left and right channel separately.
channels=1
Here's a short tutorial on how to create stereo data.