I am trying to have a python sounddevice script that will use a 1-ch audio wav file and to play back on a specific output channel of my sound card (for example ch3 only). I wasn't sure exactly how to do that with the mapping arg for sounddevice.play(). My objective is to play the mono audio file back on the 3rd channel only.
import sounddevice as sd
import soundfile as sf
ch_map = [0,0,1]
data,fs = sf.read("mono_audio_file.wav")
sd.play(data,mapping=ch_map,device=myDevice)