Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Event driven audio recording
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Johan Carlson  
View profile  
 More options Nov 11 2008, 10:02 am
Newsgroups: comp.soft-sys.matlab
From: "Johan Carlson" <Johan.E.Carl...@gmail.com>
Date: Tue, 11 Nov 2008 15:02:03 +0000 (UTC)
Local: Tues, Nov 11 2008 10:02 am
Subject: Event driven audio recording
This is what I would like to do:
-------------------------------------
1) Start a process that monitors audio input on two channels of the sound card.
2) Audio should be sampled into circular buffers of some length of my choice.
3) Once the audio signal on either channel exceeds some predefined threshold, the function should return the contents of the audio buffers.

So, why do I want this:
----------------------------
I'm interested in recording transient audio events. They do not occur very often and not at any predefined times. I would therefore like MATLAB to continuously record sound into two circular buffers. In this way I won't miss any part of the signal as long as the buffer lengths are set up properly.

So, any ideas? To me this sounds like a problem that someone else should have run into.

Thanks in advance,
/Johan


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Johan Carlson  
View profile  
 More options Nov 14 2008, 11:00 am
Newsgroups: comp.soft-sys.matlab
From: "Johan Carlson" <Johan.E.Carl...@gmail.com>
Date: Fri, 14 Nov 2008 16:00:05 +0000 (UTC)
Local: Fri, Nov 14 2008 11:00 am
Subject: Re: Event driven audio recording
Hi again!

Well folks, I solved the problem myself. The solution requires the Data Acquisition Toolbox, but other than that it's fine.

I'm going to post the zip in the file exchange once I figure out how to do that.

Cheers!
/JC


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Johan Carlson  
View profile  
 More options Nov 15 2008, 6:08 am
Newsgroups: comp.soft-sys.matlab
From: "Johan Carlson" <Johan.E.Carl...@gmail.com>
Date: Sat, 15 Nov 2008 11:08:02 +0000 (UTC)
Local: Sat, Nov 15 2008 6:08 am
Subject: Re: Event driven audio recording
Hi again!

I now submitted my solution to the "File exchange". It may take a few days before it shows up, but search for "audiorec" and it should pop up.

Tested on Windows XP and MATLAB 2007b. Requires the Data Acquisition Toolbox, which has had the habit of changing a lot lately, causing old functions to stop working if you upgrade MATLAB. So, if it does not work on previous or newer MATLAB releases, let me know.

Regards,
/JC


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rob Purser  
View profile  
 More options Nov 15 2008, 8:00 pm
Newsgroups: comp.soft-sys.matlab
From: "Rob Purser" <rob.pur...@mathworks.com>
Date: Sun, 16 Nov 2008 01:00:19 +0000 (UTC)
Local: Sat, Nov 15 2008 8:00 pm
Subject: Re: Event driven audio recording
Cool application.  

I wanted to follow up on one comment about the Data Acquisition Toolbox changing a lot recently.  I'm the lead developer, and we try to make sure not to break people's code from one release to another.  Would you be willing to tell us about a place where we did break your code?  We want to learn about things that we missed in order to ensure we don't deo it in the future.

Thanks very much,
Rob Purser
Senior Team lead, Test and Measurement


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Johan Carlson  
View profile  
 More options Nov 16 2008, 2:40 am
Newsgroups: comp.soft-sys.matlab
From: "Johan Carlson" <Johan.E.Carl...@gmail.com>
Date: Sun, 16 Nov 2008 07:40:21 +0000 (UTC)
Local: Sun, Nov 16 2008 2:40 am
Subject: Re: Event driven audio recording
OK,

This piece of code was taken from a MATLAB 6.x version:

AI = analoginput('nidaq');

Then, using the exact same hardware, but with MATLAB 2007b, I had to do this:

hwinfo = daqhwinfo('nidaq');
dev = char(hwinfo.InstalledBoardIds);
AI = analoginput('nidaq',dev);

There's only one National Instruments card in the machine, so this shouldn't be necessary.

Then, for MATLAB 2008a it stopped working again, but unfortunately I don't have that code here. I'll check with my colleague if he managed to fix it, or I will post the error messages we got.

Thanks!
/JC


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Johan Carlson  
View profile  
 More options Nov 17 2008, 11:18 am
Newsgroups: comp.soft-sys.matlab
From: "Johan Carlson" <Johan.E.Carl...@gmail.com>
Date: Mon, 17 Nov 2008 16:18:01 +0000 (UTC)
Local: Mon, Nov 17 2008 11:18 am
Subject: Re: Event driven audio recording
OK, now my software is available at the File Exchange,

http://www.mathworks.com/matlabcentral/fileexchange/22115

Enjoy!
/Johan


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »