added implementation of chanvocoder
This commit is contained in:
parent
6a10ce4c5b
commit
c0cd36be7e
11
vocoder.m
11
vocoder.m
|
|
@ -9,4 +9,13 @@
|
||||||
#
|
#
|
||||||
#################
|
#################
|
||||||
|
|
||||||
pkg load signal;
|
pkg load signal;
|
||||||
|
|
||||||
|
modfile = 'modulator22.wav';
|
||||||
|
carfile = 'carrier22.wav';
|
||||||
|
outfile = 'vocodedsound.wav'
|
||||||
|
[modul, sr1] = audioread(modfile);
|
||||||
|
[carrier, sr2] = audioread(carfile);
|
||||||
|
if sr1~=sr2, disp('your sampling rates dont match'); end
|
||||||
|
y = chanvocoder(carrier, modul, 512, 16, .2);
|
||||||
|
audiowrite(outfile, y, sr1);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue