I am getting error in "Denoise Speech Using Deep Learning Network" example?
Show older comments
exampe = https://www.mathworks.com/help/deeplearning/ug/denoise-speech-using-deep-learning-networks.html
I am getting the first error here. I am making this example using TIMIT data. The sounds in TIMIT are 16kHz and I want it to stay that way. But here it says it needs to be converted from 48kHz to 8kHz. How can I customize this? I'm putting the error below.
src = dsp.SampleRateConverter("InputSampleRate",inputFs, ...
"OutputSampleRate",fs, ...
"Bandwidth",7920);
audio = read(adsTrain);
decimationFactor = inputFs/fs;
L = floor(numel(audio)/decimationFactor);
audio = audio(1:decimationFactor*L);
audio = src(audio);
reset(src)
Error
Unable to load bundle binary
D:\bin\win64\builtins\shared_system_coreblocks\mwsystemobject_coreblocksmcos_builtinimpl.dll. Error: 126: not
connected
This is the second error I got. I have no idea why it happens how can I fix this error?
reset(adsTrain)
T = tall(adsTrain)
[targets,predictors] = cellfun(@(x)HelperGenerateSpeechDenoisingFeatures(x,noise,src),T,"UniformOutput",false);
[targets,predictors] = gather(targets,predictors);
predictors = cat(3,predictors{:});
noisyMean = mean(predictors(:));
noisyStd = std(predictors(:));
predictors(:) = (predictors(:) - noisyMean)/noisyStd;
targets = cat(2,targets{:});
cleanMean = mean(targets(:));
cleanStd = std(targets(:));
targets(:) = (targets(:) - cleanMean)/cleanStd;
predictors = reshape(predictors,size(predictors,1),size(predictors,2),1,size(predictors,3));
targets = reshape(targets,1,1,size(targets,1),size(targets,2));
inds = randperm(size(predictors,4));
L = round(0.99 * size(predictors,4));
trainPredictors = predictors(:,:,:,inds(1:L));
trainTargets = targets(:,:,:,inds(1:L));
validatePredictors = predictors(:,:,:,inds(L+1:end));
validateTargets = targets(:,:,:,inds(L+1:end));
ERROR
Evaluating tall expression using the Local MATLAB Session:
- Pass 1 of 1: 0% complete
Evaluation 0% complete
Error using tall/cellfun (line 19)
Unrecognized function or variable 'noise'.
Learn more about errors encountered during GATHER.
Error in tall/gather (line 50)
[varargout{:}, readFailureSummary] = iGather(varargin{:});
PLEASE HELP ME
1 Comment
studentmatlaber
on 15 Feb 2022
Accepted Answer
More Answers (0)
Categories
Find more on Deep Learning Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!