noisetorch / NoiseTorch

Real-time microphone noise suppression on Linux.
Other
9.26k stars 229 forks source link

Unable to route microphone to noisetorch #411

Open MiteshHiran opened 1 year ago

MiteshHiran commented 1 year ago

Describe the bug the nui_mic_remap is idle as there is no one listening to it and nui_mic_denoised_out.monitor goes to suspend state after timeout. Would like to understand what configuration is needed to comment pulseaudio with echo cancel module to noisetorch. Would like to understand if the connections I am doing is wrong or it's something to do with sampling frequency.

I am using Yocto Project Poky to build Linux and running on AM62xx TI processor which is ARM64. I am using Pulseaudio 13.0 version and downloaded noisetorch here and built on the hardware as per the documentation.

To Reproduce Steps to reproduce the behavior:

  1. Started Pulseaudio
  2. Running noisetorch with following command 2a. '/home/root/noisetorch-build/NoiseTorch/bin/noisetorch -log -i -s "echoCancel_source" -t 60'
  3. $ sudo pactl list sources short 0 alsa_output.platform-soundcard.stereo-fallback.monitor module-alsa-card.c s16le 2ch 44100Hz IDLE 1 alsa_input.platform-soundcard.stereo-fallback module-alsa-card.c s16le 2ch 44100Hz RUNNING 2 echoCancel_source module-echo-cancel.c float32le 2ch 32000Hz RUNNING 3 echoCancel_sink.monitor module-echo-cancel.c float32le 2ch 32000Hz IDLE 4 nui_mic_denoised_out.monitor module-null-sink.c s16le 2ch 48000Hz RUNNING 5 nui_mic_raw_in.monitor module-ladspa-sink.c float32le 2ch 48000Hz IDLE 6 nui_mic_remap module-remap-source.c s16le 2ch 48000Hz IDLE
  4. $sudo pactl list sinks short 0 alsa_output.platform-soundcard.stereo-fallback module-alsa-card.c s16le 2ch 44100Hz RUNNING 1 echoCancel_sink module-echo-cancel.c float32le 2ch 32000Hz RUNNING 2 nui_mic_denoised_out module-null-sink.c s16le 2ch 48000Hz RUNNING 3 nui_mic_raw_in module-ladspa-sink.c float32le 2ch 48000Hz RUNNING

Expected behavior Was hoping 'nui_mic_remap' to be running.

Logs If applicable, add the link to a pastebin with the output of noisetorch -log and pactl list short. pulseaudiolog.txt

Desktop (please complete the following information):

Additional context This is an embedded system and we don't have any display for this system. So not using any X11 or similar.

Thanks

MiteshHiran commented 1 year ago

Added PA info. painfo.txt