Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] How to record wav file more than 5 seconds in MATLAB?

Status
Not open for further replies.

testing test

Member level 3
Joined
Mar 3, 2010
Messages
65
Helped
5
Reputation
10
Reaction score
3
Trophy points
1,288
Activity points
1,656
Hi,

I want to record a .wav file in MATLAB. I am able to record a 5 seconds file using:

Fs = 11025;
y = wavrecord(5*Fs,Fs,'int16');
wavplay(y,Fs);

But I want to record longer sounds continuously for like 1-2 mins. Can you please suggest me something that could be done?

Thank you.

---------- Post added at 18:14 ---------- Previous post was at 17:06 ----------

Hi,

I got the solution on my own. Sharing the code as well as it might help someone too:

Fs = 11025;
No_of_Secs_To_Be_Recorded=10;
y = wavrecord(No_of_Secs_To_Be_Recorded*Fs,Fs,'int16');
wavplay(y,Fs);

Thank you.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top