MWEngine icon indicating copy to clipboard operation
MWEngine copied to clipboard

AudioRenderer.renderEvent Producing Noise

Open YogarajRamesh opened this issue 2 years ago • 6 comments

Hi @igorski

I am trying to post process the recorded voice by using below code snippet

_engine.getInputChannel().setMuted( false );
_engine.recordInput(false);
_engine.startInputRecording(
  Environment.getExternalStorageDirectory().getAbsolutePath() + "/Download/test/outputt2.wav”,true);

Then add effect to that recorded voice using below code snippet.

JavaUtilities.createSampleFromFile("ms07", Environment.getExternalStorageDirectory().getAbsolutePath() + "/Download/test/outputt1.wav");
drumEvent1 = new SampleEvent(_sampler1);
drumEvent1.setSample(SampleManager.getSample("ms07"));
_sampler1.getAudioChannel().getProcessingChain().addProcessor(reverbSM);
AudioRenderer.renderEvent(
  Environment.getExternalStorageDirectory().getAbsolutePath() + "/Download/test/outputt11.wav",
  drumEvent1,
  _sampler1.getAudioChannel().getProcessingChain());

But the Rendered output having some noise along the voice.

Please check the attachment

Voice without effect https://mega.nz/file/MV0W1IZI#mevMNFCPADtPiB6Q08rWEdxphmjvo8NqTx4RdfbJE_c

Voice with effect (having some noise) https://mega.nz/file/YBVnhAbA#ByhrCK15jFmNqJpIoWaQUc3nDKhpKVDWj38D6vYz4qc

Thanks in advance

YogarajRamesh avatar Jun 17 '22 13:06 YogarajRamesh

Hi @igorski Any suggestions to avoid this noise?

Thanks in advance

YogarajRamesh avatar Jul 14 '22 13:07 YogarajRamesh

Hi @YogarajRamesh can you add a limiter as the last effect in the input channels ProcessingChain ?

igorski avatar Jul 24 '22 09:07 igorski

Hi @igorski ,

Thanks for you response, Even after adding limiter as a last effect it still give then same sound in output.

JavaUtilities.createSampleFromFile("ms07", Environment.getExternalStorageDirectory().getAbsolutePath() + "/Download/test/outputt1.wav");
drumEvent1 = new SampleEvent(_sampler1);
drumEvent1.setSample(SampleManager.getSample("ms07"));
_sampler1.getAudioChannel().getProcessingChain().addProcessor(reverbSM);
_sampler1.getAudioChannel().getProcessingChain().addProcessor(_limiter);
AudioRenderer.renderEvent(
  Environment.getExternalStorageDirectory().getAbsolutePath() + "/Download/test/outputt11.wav",
  drumEvent1,
  _sampler1.getAudioChannel().getProcessingChain());

Thanks in advance.

YogarajRamesh avatar Jul 25 '22 11:07 YogarajRamesh

Hi @igorski Any suggestions on this?

Thanks in advance

YogarajRamesh avatar Aug 09 '22 06:08 YogarajRamesh

Hi @YogarajRamesh can you pull the latest changes and rebuild the engine ? Amplitude capping has been added to AudioRenderer::renderEvent.

igorski avatar Oct 09 '22 16:10 igorski

Hi @igorski , Thanks for your time, even in the latest pull AudioRenderer::renderEvent it still have that sound.

YogarajRamesh avatar Oct 12 '22 10:10 YogarajRamesh