Add chanvocoder execution file and sound created
This commit is contained in:
parent
b8e8de1a9a
commit
6806d93bf7
|
|
@ -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);
|
||||||
|
|
||||||
Binary file not shown.
Loading…
Reference in New Issue