Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2006

Tip: Looking for answers? Try searching our database.

Java MP3 audio recorder

Thread view: 
Sam - 31 Oct 2006 08:05 GMT
Hi, I need source code in java for recording audio in MP3 format.

Currently i have a similar code which actually records audio in WAV.
Problem with this is that, as it buffers audio (in RAM) in wav format
consumes hell lot of memory and ultimately end by throwing out of
memory exception.

So, I need java code which buffers audio in MP3 format & not in wav
format.

Thanks in advance for your help
Sam
Dan P - 31 Oct 2006 14:16 GMT
> Hi, I need source code in java for recording audio in MP3 format.
>
> Currently i have a similar code which actually records audio in WAV.
> Problem with this is that, as it buffers audio (in RAM) in wav format
> consumes hell lot of memory and ultimately end by throwing out of
> memory exception.

Have you tried Java Media Framework (JMF)?
Knute Johnson - 01 Nov 2006 02:02 GMT
> Hi, I need source code in java for recording audio in MP3 format.
>
[quoted text clipped - 8 lines]
> Thanks in advance for your help
> Sam

There is a MP3 plugin for JavaSound and JMF but why don't you buffer to
disk?  It should be plenty fast unless you have a really slow disk drive.

Signature

Knute Johnson
email s/nospam/knute/

Sam - 02 Nov 2006 11:32 GMT
> > Hi, I need source code in java for recording audio in MP3 format.
> >
[quoted text clipped - 16 lines]
> Knute Johnson
> email s/nospam/knute/

Hi, Johnson
I'm buffering to the disc once the stream reaches the threshold value.
But while playing the merged file, there is small gap or pause after
every merge.

I am able to record for unlimited amount of time but at the cost of
quality of the audio.

And Dan, I dont think JMF supports MP3 recording. Does it support?

Need your help
Sam


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.