MATLAB Answers

0

how can I play an audio, and in the middle of it, play a voice. but when the voice is played, the audio sounds 50% more slowly?

Asked by Camilo Perez on 18 May 2019
Latest activity Answered by Walter Roberson
on 18 May 2019
Help!

  0 Comments

Sign in to comment.

1 Answer

Answer by Walter Roberson
on 18 May 2019
 Accepted Answer

vstart_at = 5000;
vlength = size(Voice,1);
slow_len = ceil(vlength/2);
p1 = x(1:vstart_at-1,:);
p2a = kron(x(vstart_at:vstart_at+slow_len,:), ones(2,1));
p2b = Voice;
if vlength ~= 2*slow_len
p2b(end+1,:) = 0;
end
p3 = x(vstart_at+slow_len+1:end,:);
new_x = [p1;
p2a + p2b;
p3];

  0 Comments

Sign in to comment.