trying the last part

This commit is contained in:
Arnaud REY DU BOISSIEU 2023-03-26 19:33:15 +02:00
parent 86e90223c9
commit a9fc99a7c3
1 changed files with 15 additions and 0 deletions

View File

@ -1 +1,16 @@
pkg load signal
modfile = 'modulator22.wav';
carfile = 'white_periodic.wav';
outfile = 'vocodedsound.wav'
[modul, sr1] = audioread(modfile);
[carrier, sr2] = audioread(carfile);
if sr1~=sr2, disp('your sampling rates dont match'); end
% the chanvovoder function isn't availiable on Octave and i am not able to find an equivalent function
y = chanvocoder(carrier, modul, 512, 16, .2);
audiowrite(y,sr1,16,outfile)
subplot()
%% on the same figure temporal variation, carrier and output