[speex-dev] JSpeex help

Tom Sparks tom_a_sparks at yahoo.com.au
Sun Jun 24 02:20:06 PDT 2007


Have you looked at MoodleSpeex?
see a demo 
http://www.artofart.info/index.php/projects/post-by-post-audio-comments-system/
contact me if you want a copy
----- Original Message ----- 
> Message: 2
> Date: Fri, 22 Jun 2007 12:21:09 +0400
> From: <mail-box at nm.ru>
> Subject: [speex-dev] JSpeex help
> To: speex-dev at xiph.org
> Message-ID:
<1182500469.16229.denwebmail-2000000000 at mail-box@nm.ru>
> Content-Type: text/plain; charset="koi8-r"
>
> 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.
>
> 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();
>
> ========
> Thank you in advance!
>
>
> ------------------------------
>
> _______________________________________________
> Speex-dev mailing list
> Speex-dev at xiph.org
> http://lists.xiph.org/mailman/listinfo/speex-dev
>
>
> End of Speex-dev Digest, Vol 37, Issue 29
> *****************************************
> 


Send instant messages to your online friends http://au.messenger.yahoo.com 


More information about the Speex-dev mailing list