using Jspeex to encode audio



Hello,

I have a java applet which currently either captures audio in a
ByteArrayOutputStream or writes the capture as a PCM wave file.

I want to be able to encode the data using Speex, for playback and/or
saving for use later.

I've looked around the 'net and havent had much luck finding anywhere
for detailed information on integrating Jspeex into a Java application.

can anybody help me with this? I'm using the following code to capture
audio:

=======

// open line
line = (TargetDataLine)AudioSystem.getLine( dataLineInfo );
line.open( format );
line.start();

// write audio capture to buffer (ostream)
int buffSize = (int)format.getSampleRate() * format.getFrameSize();
byte buffer[] = new byte[buffSize];

ostream = new ByteArrayOutputStream();

while( state == 1 )
{
int count = line.read( buffer , 0 , buffer.length );

if( count > 0 )
ostream.write( buffer , 0 , count );
}
ostream.close();

.



Relevant Pages

  • Re: no audio in WMM
    ... Good idea to give all that details about your settings. ... your capture settings need some configuring. ... expand to see Choosing a video & audio capture device. ... I have checked my sound recorder and it works just ...
    (microsoft.public.windowsxp.moviemaker)
  • Re: Video equipment for online guitar lessons web-site
    ... capturing multiplevideoinputs, ... I'm doing 16 tracks of audio at 32bit 48k with no problem, ... you get an application which allows you to capture three ... With this configuration you could use the S-Videoout of 1 camera + the ...
    (rec.video.production)
  • Re: Audio Problems
    ... >I have the Dazzle 80, ... > Analog is analog and it won't be digital quality, ... >> You can capture using the Conexant software or you can purchase a digital ... >>> Audio, ...
    (microsoft.public.windowsxp.moviemaker)
  • Encoding audio as ogg/speex
    ... I have a java applet which currently either captures audio in a ... ByteArrayOutputStream or writes the capture as a PCM wave file. ... // write audio capture to buffer (ostream) ...
    (comp.lang.java.programmer)
  • A/V sync drift in long capture
    ... I've built a DirectShow-based live capture application (based on AMCap ... video frame rate to fluctuate slightly, as long as the audio and video ...
    (microsoft.public.win32.programmer.directx.video)