sipsorcery-org / sipsorcery

A WebRTC, SIP and VoIP library for C# and .NET. Designed for real-time communications apps.
https://sipsorcery-org.github.io/sipsorcery
Other
1.47k stars 442 forks source link

Mic not working in debian #1020

Closed Confygre closed 10 months ago

Confygre commented 1 year ago

@sipsorcery In FFmpegFileAndDevicesTest, I tried to capture mic. With this basic ffmpeg command ffmpeg -f alsa -i hw:0,1 output.wav I was able to capture the audio. But when I used the same hw:0,1 in the FFmpegFileAndDevicesTest at this line static private string MicrophoneDevicePath = "hw:0,1"; I get error as Segmentation fault. I also tried with default, hw:0. Nothing works.

What causes this error? Is there a way to solve it.

Confygre commented 1 year ago

I get this at the beginning of the program image But still I get error as Segmentation Fault.

Confygre commented 1 year ago

I am working on Debian in VirtualBox. Can this be a reason for this issue?

sipsorcery commented 10 months ago

That's likely to be an ffmpeg issue rather than a sipsorcery one. If it's still a problem I'd suggest trying a basic ffmpeg console app to access the audio device and if/when that works wire it up to sipsorcery.