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?
1 view (last 30 days)
Show older comments
Accepted Answer
Walter Roberson
on 18 May 2019
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
More Answers (0)
See Also
Categories
Find more on Audio and Video Data in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!