• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Java Media Audio (Record sound Example)

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can anyone here tell me the example of how to record sound from a microphone or other device using java? I searched on Google but there is no example as such provided . please help
 
Ranch Hand
Posts: 808
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have a look at the Java Sound API. http://download.oracle.com/javase/6/docs/api/javax/sound/sampled/package-summary.html
 
Ackshat Sharma
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
@Dennis , It will be easy to understand a pre-written example code , I already checked all documents on oracle and other forums even here on javaranch (copy paste that code shows a no. of errors(cannot resolve) on an IDE like Myeclipse and netbeans), so please if your have done this earlier paste your example code... Thanks a lot
 
Marshal
Posts: 79177
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
And welcome to the Ranch
 
Ackshat Sharma
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
getting a desired reply will be a warm welcome.
 
Ranch Hand
Posts: 208
9
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The Java Sound Demo has example code to play and record sound clips. And no, it's not the easiest library to work with. But at least it's more flexible than the Clip class (for playing sound).

http://www.oracle.com/technetwork/java/index-139508.html
 
Campbell Ritchie
Marshal
Posts: 79177
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ackshat Sharma wrote:. . . It will be easy to understand a pre-written example code . . .

Disagree. It usually takes a lot of effort to understand pre-written code. And we don’t supply ready-made code.
 
Ackshat Sharma
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Mr. Campbell, fully agree with you but I said "pre-written code example" an example is meant to be understand which is short and simple showing simplest implementation, and ofcourse Mr. Campbell it is difficult to understand a pre-written code which is not an example .
reply
    Bookmark Topic Watch Topic
  • New Topic