Audio capture using java JMF or CoreAudio or QuickTime on OS X
Audio capture using java JMF or CoreAudio or QuickTime on OS X
- Subject: Audio capture using java JMF or CoreAudio or QuickTime on OS X
- From: Joseph Lubin <email@hidden>
- Date: Sun, 24 Jun 2001 19:13:30 -0400
I am interested in capturing audio using the built-in mic or an attached
mic on OS X systems. I have explored a number of options for doing
this. Since I would like to (i) do this in Java and (ii) have this also
work on other operating systems eventually, my first preference would be
to get this working with Sun's Java Media Framework Sound API.
Using the Capture/Playback tab of the JavaSound demo (downloaded from
java.sun.com), when attempting to record a sound, under any set of
parameters (linearPCM/ulaw/alaw encoding; 8000-44100 samples/sec; 8/16
bits/sample; signed/unsigned; little-endian/big-endian; mono/stereo), I
get the following types of messages:
ERROR
Line Matching Interface TargetDataLine supporting format
PCM_SIGNED, 8000.0 Hz, 8 bit, mono, audio data not supported.
Does anyone know why this aspect of the demo does not work? All the
other aspects (sound playback, juke box, midi synthesizer and groove
box) of the demo work fine.
I checked list archives at sun, apple, mac-sound-dev@yahoogroups and
omnigroup and did not find an answer.
My configuration: TiBook 500MHz, OS X 10.0.4.
I can make a Java QuickTime-based audio capture demo (found at
/Developer/Examples/Java/QTJava/QTJavaDemos/SoundMemRecord) work (though
it is not very stable).
Thanks in advance for any help,
Joseph Lubin
Advanced Solutions Group
emagine solutions
55 Broad Street, 21st
New York NY 10004
w 212.709.5910
m 917.887.8303
h 212.255.3066