This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Five Lines of Code and have Christian Clausen on-line!
See this thread for details.
Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Wav play......!!!!!

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm sorry if my question is OT but is the closer group I read!!
My question is:
I have to read a .wav file and to play it in my application....for ex....starting the application....the voice say "Welcome aboard!"...without the starting of any external player of course!
Please help me!!!
Fabio
 
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to use the Java Media Framework
 
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, theres not really a need for the JMF, I guess, as applets can already play wavs, and thus making it available for other Java applications too. (In fact, my servlets plays a siren when it it disconnected from the network, untill it is connected again! That will teach them! )
Oh, and behold: the code!

Good luck.
Erik
PS, for some reason, not all wavs play (but they do in Winamp, for example.) Maybe this can be solved by using Cindy's solution (the JMF), which might support wavs better (maybe my wavs have a wrong encoding for Java...who knows )
 
For my next trick, I'll need the help of a tiny ad ...
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic