Started code for DSP final project

This commit is contained in:
Aidan Sharpe
2024-04-25 18:38:09 -04:00
parent 824a46b1fd
commit 50a5e57e18
96 changed files with 2160495 additions and 28 deletions

View File

@@ -0,0 +1,19 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Either load in an ascii .dat file or
% uses wavread to read a wave file
% function [speechData] = load_or_audioread(speechFile)
% speechfile in quotes
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function [speechData] = load_or_audioread(speechFile)
% The speech file is loaded
if (ischar(speechFile))
if(strcmpi(speechFile(end-3:end),'.dat'))
speechData = load(speechFile);
elseif(strcmpi(speechFile(end-3:end),'.wav'))
speechData = audioread(speechFile);
end
elseif (isnumeric(speechFile))
speechData = speechFile;
end