want to join two audio files and write /save using audiowrite

2 views (last 30 days)
close all;clear all;clc
[y1,Fs] = audioread('a.wav');
[y2,Fs] = audioread('b.wav');
y3 = [y1; y2;];
sound(y3,16000)
audiowrite(y3,Fs,xx)
audiowrite function is not working..please explain

Answers (1)

Bhaskar R
Bhaskar R on 13 Nov 2019
First argument of the audiowrite is filename not variable need to be written, change accordingly

Categories

Find more on Audio I/O and Waveform Generation 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!