Screen recording applications are not detecting audio in ubuntu 20.04

Two days back I upgraded ubuntu 19.04 into 20.04 lts. However, I noticed that the update got stuck at a particular stage saying 'Removing gnome-logs snap'. This window stays forever

Screenshot of the error while updating:

screenshot of the error while updating

And the screen recording application Kazam is not recording audio. I tried with different screen recorders but of no use. No application detects the microphone. I looked for any changes in settings but everything was fine. I could see microphone detecting the sound from the dynamic bars. While trying to open it in terminal it shows this error

$ kazam
WARNING Kazam - Failed to correctly detect operating system

It was showing kazam failed to detect audio recording device few hours back. I uninstalled and reinstalled the application but nothing worked. I even installed PulseAudio volume controller but it neither detects any application that uses audio recording option.

Screenshot of PulseAudio volume controller detecting no recording device:

Screenshot of PulseAudio volume controller detecting no recording device

However, the Telegram desktop client is perfectly recording audio. I don't know what exactly happened with these applications.

This is the screenshot of Kazam not detecting the recording device:

This is the screenshot of Kazam not detecting the recording device

I want to make a lecture video for my students but I'm stuck with these issues for hours. I would have changed the OS altogether. But since I don't have a USB I can't try that option. Somebody please answer.


Solution 1:

The issue is due the use of a deprecated python feature. This PR fixes it, so this should be OK if Kazam ever gets updated again.

Anyways, to fix your problem, as I commented here using that PR, you can run

sudo gedit /usr/lib/python3/dist-packages/kazam/pulseaudio/pulseaudio.py

And replace its content with this content.