Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Beginners java code to display in audio
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


hari
java code to display in audio
1 Answer(s)      6 years and a month ago
Posted in : Java Beginners



Advertisement
View Answers

November 25, 2008 at 12:32 AM


Hi friend,


Code to help in solving the problem :

import java.applet.*;
import java.io.File;
import java.net.*;

public class SoundExample {
public static void main(String args[]) {
try {
// Loop
URL url = new URL("http://localhost:3306/abc.au";);
AudioClip clip = Applet.newAudioClip(url);
clip.loop();
Thread.sleep(5000);
//SoundPlay
File file = new File("abc.wav");
clip = Applet.newAudioClip(file.toURL());
clip.play();
Thread.sleep(500);
System.exit(0);
} catch (InterruptedException e) {
} catch (MalformedURLException e) {
}
}
}


Thanks


Related Tutorials/Questions & Answers:
java code to display in audio - Java Beginners
java code to display in audio  Is their any java code, When i enterd text in text field , and when i press submit button,the text i entered should come in voice  Hi friend, Code to help in solving the problem
converter code for audio file
converter code for audio file  how can i convert a audio file to a another file format like mp3
Advertisements
Java how to stop audio
Java how to stop audio  hello i have this code in the main: try { AudioInputStream audio = AudioSystem.getAudioInputStream(new File...(audio); clip.start(); } catch
java code to open and display MS-word document
java code to open and display MS-word document  java code to open and display MS-word document
how to play audio track in java applat
how to play audio track in java applat  Sir,i took help of coding in how to play audio track in java applet....nd i found perfect code ..but when i run same code on net beans then it shows error that could not found main class
Play Audio in Java Applet
Play Audio in Java Applet       Introduction Java has the feature of the playing the sound file. This program will show you how to play a audio clip in your java applet
Audio Processing
Audio Processing  Sir, I want implement an audio recognition system by using java.. Is it possible? and tell me the process... thank you
playing an audio file
playing an audio file  In playing an audio file we have to take one... how to solve this problem and also tell me where i should pass my audio clip path   Please visit the following link: http://www.roseindia.net/java
uploading audio file iphone
uploading audio file iphone  uploading audio file iphone
Audio Level Meter
Audio Level Meter  Hello I'm new to programming and I'm trying to make a java application that will "hear" (not record necessarily) the sound and display how loud is.I'm thinking of converting the sound recordings to numbers,so
Display Date - Java Beginners
Display Date  Plz send me sample java program that display day, date,year and crunent time. help me plz...  Hi friend, Code to display day,date,year and current time. import java.util.*; class DateExample
HTML5 audio controls, Discuss the controls attribute of audio tag.
in audio tag file; music controls will be display on screen. Declaration...HTML5 audio controls, Discuss the controls attribute of audio tag. Introduction:The controls is attribute of audio. which is used for showing media player
ffmpeg audio from video
ffmpeg audio from video  Hi, How to extract audio from a video file? Thanks
Display Java in JSP
Display Java in JSP  please i need urgent help. How can i display Java Applet created in netbeans in JSP?. the Application involves MYSQL Database connection. Thanks
audio file to play automatically
audio file to play automatically  I want to get an audio file to play automatically when someone visits my site
HTML audio tag
HTML audio tag  Hi, I have written a simple html page to play audio file, I m using audio tag as shown below: Your browser does not support the audio tag. when I open the page using Chrome, it works fine(plays audio
HTML5 audio reference
HTML5 audio reference  Hi, Tell me the best url to learn HTML5 audio tags with examples. Thanks   Hi, Learn how to use HTML5 audio tags to play the audio on web page. The HTML5 audio tag is used to play the video
code - Java Beginners
code  sir i want to design a audio and video player in java can you please give me instructions to do that project.. i want some sample code play audio and video in java please help me sir
audio video conferencing
audio video conferencing  how to develop a chat application in peer to peer setup
image display - Java Beginners
image display  i need to display all the images from the folder and i dont want give the image path.dynamically it should display. please help  Hi friend, Code to help in solving the problem var
how to stop audio (mp3)
how to stop audio (mp3)   if(e.getActionCommand(). equals("Stop")){ player.stop(); } i am making an audio player in which i have to stop a song. on writing player.close() it pauses the song rather than
Broadcasting audio.. - JSP-Servlet
Broadcasting audio..  i am doing a project on Internet radio. I embeded windows media player,but doesnt know how to broadcast...i need to stream the audio. can anyone give a solution for this. Its very urgent
HTML5 audio autoplay, Use of autoplay attribute in audio tag.
HTML5 audio autoplay, Use of autoplay attribute in audio tag. Introduction:The autoplay is an audio tag attribute. It is only supported by HTML5. When it is present in audio tag, the music file will begin itself. or After loading
HTML5  audio tag example, Use of audio tag  in HTML5.
of audio is case_ insensitive. Example of <audio> in HTML5: Code...HTML5  audio tag example, Use of audio tag  in HTML5. Introduction:In this section, you will see the use and implementation of audio tag
Display Data - Java Beginners
Display Data  I need sample how to display data from my table Mysql with swt/jface Thank you
HTML5 audio loop, Use of loop attribute of audio tag in  HTML5.
HTML5 audio loop, Use of loop attribute of audio tag in  HTML5. Introduction:Loop attribute is used for reputation of audio or music. It repeats audio file again, until you do not click any controls. It supports only Boolean
HTML5 audio autobuffer, Use of autobuffer attribute in audio tag.
HTML5 audio autobuffer, Use of autobuffer attribute in audio tag. Introduction:The autobuffer attribute has Boolean value. It is available in audio tag... in audio tag file; music will start buffering automatically . Declaration
java image display - Java Beginners
java image display  How to display images in the folder dynamically with out using database using java and jsp  Hi friend, Code to help in solving the problem var galleryarray=new Array
how to add audio clip in swings with event handling
how to add audio clip in swings with event handling  hello dear, i wanna to play audio clip in java program in JFrame in swings by event handling ,it should be like when i click on a button , audio clip should play , plz tell me
Display Image in Java
Display Image in Java     ...): Pass the boolean value as true to display the image or Vice-Versa. Here we are passing the boolean value as true to display the image on the frame
code to display images using 2d array - Swing AWT
to display this using java code. I am relatively new to coding such requirements. Can anyone please tell me how to go about it ? Explanation of the code...code to display images using 2d array  HI !! I have an image file
Advertisements
 

 

 

DMCA.com