Python sounddevice library is not recording sound on my ubuntu 22.04 Dell laptop

91 views Asked by At

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?

0

There are 0 answers