I'm running Visual Studio code on my Ubuntu 22.04 laptop. The code is very simple to record a piece of sound using the sound device library.
import sounddevice as sd
duration=10
fs=8000
my_record=sd.rec(fs*duration,samplerate=fs,channels=1)
sd.wait()
I do not get an error but no sound is recorded.
sd.play(my_record,fs)
plays blank.
What am I missing?