Requirements
1. What are you trying to achieve?
I'm using the WebRtcApmModifier class to prevent acoustic echo from the microphone and I can receive the sound on my local computer. However, I want to send the clean sound from the microphone to a remote computer using the UDP protocol and play the sound on the remote computer. How can I do this?
2. What have you tried so far?
WebRtcApmModifier sınıfı ile mikrofondan gelen sesin akustik yankısını engelliyorum ve local bilgisayarımda sesi alabiliyorum.
3. What are you unsure about / What is your specific question?
mikrofondan gelen temiz sesi uzak bir bilgisayara udp protolkolu ile göndermek ve uzak bilgisayarda sesi çalmak isiyorum bunu nasıl yapabilirim
4. Relevant Code Snippet (if applicable)
if (!captureDeviceInfo.HasValue) return;
var playbackDeviceInfo = SelectDevice(DeviceType.Playback);
if (!playbackDeviceInfo.HasValue) return;
using var captureDevice = Engine.InitializeCaptureDevice(captureDeviceInfo.Value, Format);
using var playbackDevice = Engine.InitializePlaybackDevice(playbackDeviceInfo.Value, Format);
captureDevice.Start();
playbackDevice.Start();
using var engine = new MiniAudioEngine();
var audioFormat = new AudioFormat { Format = SampleFormat.F32, SampleRate = 48000, Channels = 2 };
using var microphoneProvider = new MicrophoneDataProvider(captureDevice);
// Add noise suppression modifier and keep a reference to it for interactive controls.
var apmModifier = new WebRtcApmModifier(captureDevice,
nsEnabled: true,
aecEnabled: true,
aecMobileMode: false,
nsLevel: NoiseSuppressionLevel.High);
// Create a SoundPlayer and load an audio file
using var soundPlayer = new SoundPlayer(Engine, Format, microphoneProvider);
var gainComponent = new CustomGainComponent(engine, audioFormat) { Gain = 0.5f };
gainComponent.ConnectInput(soundPlayer);
//soundPlayer.AddModifier(apmModifier);
playbackDevice.MasterMixer.AddComponent(gainComponent);
microphoneProvider.StartCapture();
soundPlayer.Play();
SoundFlow Version
No response
.NET Version
No response
Operating System
No response
6. Additional Context
No response
Requirements
1. What are you trying to achieve?
I'm using the WebRtcApmModifier class to prevent acoustic echo from the microphone and I can receive the sound on my local computer. However, I want to send the clean sound from the microphone to a remote computer using the UDP protocol and play the sound on the remote computer. How can I do this?
2. What have you tried so far?
WebRtcApmModifier sınıfı ile mikrofondan gelen sesin akustik yankısını engelliyorum ve local bilgisayarımda sesi alabiliyorum.
3. What are you unsure about / What is your specific question?
mikrofondan gelen temiz sesi uzak bir bilgisayara udp protolkolu ile göndermek ve uzak bilgisayarda sesi çalmak isiyorum bunu nasıl yapabilirim
4. Relevant Code Snippet (if applicable)
SoundFlow Version
No response
.NET Version
No response
Operating System
No response
6. Additional Context
No response