Error in enhanceSpeech for audio enhancement
I am using enhanceSpeech (https://www.mathworks.com/help/audio/ref/enhancespeech.html) to proceed an audio file and encountered the following problem.
Index in position 1 exceeds array bounds. Index must not exceed 256384.
Error in audio.ai.metricgan.postprocess (line 39)
audioOut = audioOut(1:size(audioIn,1),1);
Error in enhanceSpeech (line 58)
audioOut = audio.ai.metricgan.postprocess(audioIn,fs,reconstructionPhase,netOutput,win);
I looked at the signal. It has certain noise in the very beginning.
I think this is the major reason because if I run:
enhancedSpeech = enhanceSpeech(noisySpeech(3000:end),fs);
there is no error. But if I run:
enhancedSpeech = enhanceSpeech(noisySpeech(2900:end),fs);
there will errors as shown above.I am using enhanceSpeech (https://www.mathworks.com/help/audio/ref/enhancespeech.html) to proceed an audio file and encountered the following problem.
Index in position 1 exceeds array bounds. Index must not exceed 256384.
Error in audio.ai.metricgan.postprocess (line 39)
audioOut = audioOut(1:size(audioIn,1),1);
Error in enhanceSpeech (line 58)
audioOut = audio.ai.metricgan.postprocess(audioIn,fs,reconstructionPhase,netOutput,win);
I looked at the signal. It has certain noise in the very beginning.
I think this is the major reason because if I run:
enhancedSpeech = enhanceSpeech(noisySpeech(3000:end),fs);
there is no error. But if I run:
enhancedSpeech = enhanceSpeech(noisySpeech(2900:end),fs);
there will errors as shown above. I am using enhanceSpeech (https://www.mathworks.com/help/audio/ref/enhancespeech.html) to proceed an audio file and encountered the following problem.
Index in position 1 exceeds array bounds. Index must not exceed 256384.
Error in audio.ai.metricgan.postprocess (line 39)
audioOut = audioOut(1:size(audioIn,1),1);
Error in enhanceSpeech (line 58)
audioOut = audio.ai.metricgan.postprocess(audioIn,fs,reconstructionPhase,netOutput,win);
I looked at the signal. It has certain noise in the very beginning.
I think this is the major reason because if I run:
enhancedSpeech = enhanceSpeech(noisySpeech(3000:end),fs);
there is no error. But if I run:
enhancedSpeech = enhanceSpeech(noisySpeech(2900:end),fs);
there will errors as shown above. audio, signal processing MATLAB Answers — New Questions