Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > Java Basics
Java Basics General beginning Java language questions that don't fit in one of the more specific forums. Please specify what version.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old October 15th, 2008, 06:21 AM
Registered User
Join Date: Oct 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to naresh
Default playing sound files (java 2 jdk1.3 edition)


i want to make a console program that allows to enter amount (int) from keyboard and then plays the amount back from the speaker. in the book its written about how to play sound files using java applet only. how can i play the wav files in a specific folder using a console program.

secondly i have recorded the audio files for the necessary digits (1.wav to 20.wav,30.wav,40.wav,50.wav, 60.wav, 70.wav,80.wav,90.wav, hundred.wav, thousand.wav). wouldn't it be better to use hashmaps and assign a key (considering in mind the recorded file) to recorded objects. i think it would be easier to call and play digits:(. kindly comment.


Old April 11th, 2009, 01:04 AM
Friend of Wrox
Join Date: Dec 2008
Posts: 238
Thanks: 2
Thanked 20 Times in 19 Posts

use javax.sound package.

Similar Threads
Thread Thread Starter Forum Replies Last Post
playing SWF sound onmouseover rmjaworski Javascript How-To 2 October 7th, 2008 02:09 PM
playing wid registry files amit.reply C# 0 March 17th, 2007 01:30 PM
playing audio files in c#.net sumith ASP.NET 1.0 and 1.1 Professional 0 February 7th, 2007 12:14 AM
[JAVA] PRINT - SOUND gianni17 J2EE 0 February 20th, 2005 01:11 PM
Java Sound Help anjithalb BOOK: Beginning Java 2 0 September 18th, 2003 02:42 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.