Add chanvocoder execution file and sound created

This commit is contained in:
Louis 2024-03-26 11:28:46 +01:00
parent b8e8de1a9a
commit 6806d93bf7
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,14 @@
modfile = 'Sound/modulator22.wav';
carfile = 'Sound/carrier22.wav';
outfile = 'Sound/vocodedsound.wav';
[modul, sr1] = audioread(modfile);
[carrier, sr2] = audioread(carfile);
if sr1 ~= sr2
disp('Sampling rates dont match');
end
y = chanvocoder(carrier, modul, 512, 16, 0.2);
audiowrite(outfile, y, sr1);

BIN
Sound/vocodedsound.wav Normal file

Binary file not shown.