I want to play audio through a virtual microphone I have tried this but you can't install that version of pygame anymore. I have tried installing older/earlier versions but there was no output.
Sounddevice (I believe) only works with output devices:
import sounddevice as sd
import soundfile as sf
filename = 'text.wav'
data, fs = sf.read(filename, dtype='float32')
sd.default.device = '36'
sd.play(data, fs)
status = sd.wait()
Are there any solutions to this?