C
C#2y ago
asaka

❔ C# audio file to virtual mic

How could I send sound from audio file to virtual mic ?
11 Replies
sibber
sibber2y ago
youd need to write an audio driver or look for one thats already been written and does what you want
asaka
asakaOP2y ago
I'm on linux and using pipewire as my audio driver, I already created virtual mic through
pactl load-module module-null-sink media.class=Audio/Source/Virtual sink_name=TEST_VIRTUAL_MIC channel_map=front-left,front-right
pactl load-module module-null-sink media.class=Audio/Source/Virtual sink_name=TEST_VIRTUAL_MIC channel_map=front-left,front-right
And now I can't figure out how could I use it in code..
sibber
sibber2y ago
no idea about linux
Monsieur Wholesome
Stack Overflow
Sending playing Audio using NAudio
I have managed to send audio from a microphone using the code found here. However I have not been able to do this using NAudio. The code from CodeProject has explicit code to encode and decode su...
Monsieur Wholesome
i havent looked 100% into it myself, but glancing over it this seems right
asaka
asakaOP2y ago
This code isn't running:
An unhandled exception of type 'System.DllNotFoundException' occurred in NAudio.WinMM.dll: 'Unable to load shared library 'winmm.dll' or one of its dependencies. In order to help diagnose loading problems, consider using a tool like strace. If you're using glibc, consider setting the LD_DEBUG environment variable:
An unhandled exception of type 'System.DllNotFoundException' occurred in NAudio.WinMM.dll: 'Unable to load shared library 'winmm.dll' or one of its dependencies. In order to help diagnose loading problems, consider using a tool like strace. If you're using glibc, consider setting the LD_DEBUG environment variable:
Monsieur Wholesome
Oh shit, i thought NAudio was cross platform Guess I was wrong
Monsieur Wholesome
Stack Overflow
Can NAudio work on Ubuntu for audio processing?
I want to work on audio processing. Can I use naudio library while working on Ubuntu.
Stack Overflow
MonoDevelop + NAudio + Ubuntu Linux tells me Winmm.dll not found?
So I'm attempting to use MonoDevelop with NAudio and Ubuntu Linux, For some reason It errors saying that winmm.dll isn't found so I attempted to download it and and the "Add Reference" dialogue cla...
asaka
asakaOP2y ago
Damn, that's kinda sad sad what could I do ? I have a .mp3 file and only thing I want is to just send it to virtual mic. That's it. No complicated logic or anything. I think this problem is very trivial, but I cannot really find anything useful on internet, tried to find something for python and nothing worked, the closest thing I got is to send audio to my main speakers, I tried to change device, but no luck here, when I'm retrieving devices list from pyAudio I don't see my output/input devices that I could see in pavucontrol.
sibber
sibber2y ago
just because you can describe your problem easily doesnt mean its simple
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server