AudioRenderer.renderEvent Producing Noise
YogarajRamesh opened this issue · 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
Hi @igorski
Any suggestions to avoid this noise?
Thanks in advance
Hi @YogarajRamesh can you add a limiter as the last effect in the input channels ProcessingChain ?
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.
Hi @igorski
Any suggestions on this?
Thanks in advance
Hi @YogarajRamesh can you pull the latest changes and rebuild the engine ? Amplitude capping has been added to AudioRenderer::renderEvent
.
Hi @igorski ,
Thanks for your time, even in the latest pull AudioRenderer::renderEvent
it still have that sound.