Diff of /aucapture.m [c82d3f] .. [41838f]  Maximize  Restore

  Switch to unified view

a/aucapture.m b/aucapture.m
...
...
12
##
12
##
13
## You should have received a copy of the GNU General Public License
13
## You should have received a copy of the GNU General Public License
14
## along with this program; if not, write to the Free Software
14
## along with this program; if not, write to the Free Software
15
## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
15
## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
16
17
## usage: [x, fs] = aucapture(t, fs, channels)
17
## -*- texinfo -*-
18
## @deftypefn {Function File} {[@var{x},@var{rate}] =} aucapture (@var{t},@var{fs},@var{channels})
18
##
19
##
19
## Capture an audio event at the given sample rate fs.  This uses an
20
## Capture an audio event at the given sample rate @var{fs}.  This uses an
20
## endpoint detection routine to eliminate the silence surrounding the
21
## endpoint detection routine to eliminate the silence surrounding the
21
## event. On return, data contains the samples, one column per channel
22
## event. On return, @var{x} contains the samples, one column per channel
22
## and rate contains the sample rate used. Note that the sample rate
23
## and @var{rate} contains the sample rate used. Note that the sample rate
23
## used may not match the requested sample rate. Use the returned rate
24
## used may not match the requested sample rate. Use the returned rate
24
## for further processing.  Similarly, the actual number of samples and
25
## for further processing.  Similarly, the actual number of samples and
25
## channels may not match the request.
26
## channels may not match the request.
26
##
27
##
27
## Time defaults to 10s, rate defaults to 8000 Hz, and channels defaults
28
## @var{t} defaults to 10s, @var{fs} defaults to 8000 Hz, and @var{channels}
28
## to 1
29
## defaults to 1
30
## @end deftypefn
29
31
30
## TODO: Consider combining with aurecord.m, with capture indicated by
32
## TODO: Consider combining with aurecord.m, with capture indicated by
31
## TODO:      time t=[] or t=0 or t<0, or maybe aurecord_usecapture
33
## TODO:      time t=[] or t=0 or t<0, or maybe aurecord_usecapture
32
function [data, rate] = aucapture(time, rate, channels)
34
function [data, rate] = aucapture(time, rate, channels)
33
35