Inserting Sound FIles in Java

Hello,
I am about to finish College and I am in this Java class. I am trying to get a sound file to play on my Applet(htm) and I can't figure out how. If you have the answers, please give me a dummy list(A step by step list of what to do). I am new to Java and I would very much like to add the sound dynamic to my project. PLEASE HELP....email me at [email protected]
Thanks a million

You would think at college they would teach you some problem solving skills.
There is a tutorial on Sound at:
http://java.sun.com/docs/books/tutorial/
This question has been asked before in the forum so you could also learn how to use the search facility of the forum.

Similar Messages

  • Insert sound file into Oracel DB via Forms 6i

    Dear All
    Pls let me know how to insert sound files in to Oracle DB via Forms 6i.
    Regards
    Lakmal Marasinge

    by the way - just for info : Sound-Items in Forms 6i can't be migrated to 10g. They are now obsolet.
    So, the best way is to develop in 6i a solution based on java. Then you use it and communicate with it per java bean.
    try it
    Gerd

  • JMStudio locks up playing sound file - using java 1.5.0_02 - HELP!

    I'm using the jmf 2.1.1e cross platform version on Windows XP SP2. I have java 1.5.0_02 installed.
    When I open the sound file using JMStudio it locks up. It plays videos that don't have sound fine, so it's not the video. It's the sound that is killing it.
    Does anyone have any suggestions?

    Hi,
    yeah it's possible to play sound on Windows but you have to use the Windows Performance Pack instead of the crossplatform-version of JMF.
    This has to do with the JavaSound Architecture of Java 5.0. They made changes and now the JavaSound Renderer didn't work under Windows but the DircetSound Renderer works fine.
    So be sure that your application uses the DirectSound Renderer!
    This is one of the main problems of JMF but now Sun gets interested in JMF and they would build a new version of JMF. If this is true they have to fix this problem!
    Best regards, thomas

  • Insert Image file from java to ms access database

    Are there any ways to insert image file or any files into microsoft access database and retrieve the file from the database. Guild will be helpful.Thank you.
    regards
    Singaravelan

    The right answer? Don't do it. You should not be putting images in any database.
    Better to write the image to the server's file system and add the path/link to the database instead.
    %

  • Inserting sound files

    Ok, someone help a rookie here...
    I shot a project, I want to replace the sound takes with the audio files our sound people recorded. I am stumped, I can't figure out how to replace just the lines and parts I want with the good sound. I sent the sequence from Final Cut. So all the tracks are laid out nicely. How do I replace the parts I want with the parts of the files I want to insert?
    Thanks!

    I think you want the Multitake Editor. It's on page 251 of the Soundtrack Pro manual.

  • Simple Sound File

    How do I play a simple sound file in java? I'm talking extremely simple, just a play button - doesn't matter if it loops continuously or plays only once.

    [http://java.sun.com/docs/books/tutorial/sound/TOC.html]

  • Inserting and/or repeating part of sound file?

    As a potential new Audition user, I am still finding some things very puzzling.
    For instance, how can I simply select part of an audio file, then insert it several times on a certain point in time in the same file?
    With Bias Peak it was possible to simply repeat a selection of a sound file several times, do I have to use multitrack for this in Audition? Can't find a way to do it there either, though.
    Most importantly I just want to copy part of a sample, and repeat it/insert it once or several times.
    Another thing: after selecting part of a sound file, I can't simply choose the *end* point of the selection, and then paste the copied selection immediately after the selection. This is because a "adjust selection" tool appears as soon as I move the pointer close to the selection. What can I do?
    These things seem so basic, so I must be missing something. Thanks for any help.

    In waveform view it is basic - just cut and paste the bit you want to copy, just the same as with word processing. Even uses the same commands, so if you highlight a section and go Ctrl-C you've copied it,  and then if you hit Ctrl-V you will paste it. And if you move the cursor to the end of the section and go Ctrl-V again, you'll paste it again - and you can do this as many times as you want. How do you move the cursor immediately to the end of a selection? Hit Ctrl-right arrow and it's there. How do you move to the end of the selection and deselect? Ctrl-Shift-A.
    All these commands and shortcuts are in the menus.

  • Record Sound From a Microphone and convert it text file using jave applicat

    Hi, I want source code for recording sound from a microphone which is connected to a sound card fixed in my machine,and convert that sound file to a text file , so that i can compare that text later with the command which i have stored already in my computer.How to do this in Java ? If any one could help me in solving this problem, it would be very helpful for me !

    Have you looked into the JSAPI?
    http://www.esus.com/docs/GetQuestionPage.jsp?uid=1471

  • Read sound file from disk in Java

    Write a simple application that reads a sound file from disk (use a Clip). Play the sound backwards by arranging the byte arrays/frames in the reverse order.
    Please I need an explanation of every step.
    Get some Duke Dollars for your help.

    Hi,
    When execute this code, I see this: "[Ljava.io.File;@111f71".   
    How I can see the name of the File, and How I can run a program with one by one from the files reader in a parameter ???
      Thank's.
       Hervey P.                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Invalid sound file error

    Ok heres one for all, I am trying to use the sound recorder to record voice to be inserted into a Open Office power point presentation error message "invalid sound file" please someone take over and send me steps to resolve.I know its operator error somewhere

    {color:red}CROSS POSTED{color} Including this --
    {color:0000ff}http://forum.java.sun.com/thread.jspa?threadID=5240695
    http://forum.java.sun.com/thread.jspa?threadID=5240696
    http://forum.java.sun.com/thread.jspa?threadID=5240699
    {color}
    Cross posting is rude.
    db

  • Oracle table(s) data to INSERT(String) statements with JAVA

    Hi,
    How can I get sql inserts from a oracle table with JAVA?
    Is there a Oracle API for it?
    I need to store it in a file, the result file should have these examples lines:
    -- INSERTING into TEST
    Insert into "TEST" ("CODE","FAMILY","SUB_FAMILY","SEVERITY","STATUS","ANOMALY_DATE","DESCRIPTION",
    "COMMENTS","VALUE0","VALUE1","VALUE2","VALUE3","VALUE4","VALUE5","VALUE6","VALUE7","VALUE8",
    "VALUE9") values (1,'family1','subFamily11','bad','initial',to_date('0005-11-21','DD/MM/RR'),'someDescription',
    'someComment','someValue','someValue','someValue','uselessValue','uselessValue',null,null,null,null,null);
    the example line was created with the export tool from Oracle SQl developer
    Thks.
    Francisco

    user9046632 wrote:
    Hi Guys, this is me Francisco that wrote the first question, but now I've an NEW account. I'll try to explain it. For a Job I need a .txt file that contains the SQl string inserts from an Oracle Table. I can't use a Software because I need to do it with Java Code. I'm not trying to get the inserts's logging , I need a to export it from a table.I read One way to do it is using DataPump utility, but using this tools, will I get a text file? I read that DataPump works with binaries files. using Java JDBC and metadata, I need to convert all in String file, ok for it I'm agree, but I have to write a lot of code to know what kind of type I get from the Table to parse it. One example is with Date types, oracle softwares parse it as to_date('0005-11-21','DD/MM/RR') and java toTostrig will do it something like '2009-1-25 13:00:00'. Java toString method will truncate some Number types So I need to know if someone did it or give or can help me.
    Thank you very much. Francisco
    Again, explain the business problem you are trying to solve, not the technical one. WHY do you need a text file that contains "SQL string inserts"? It sounds very much like you are looking at your problem "through the wrong end of the telescope" and thus finding a poorly designed solution. But unless we know the real problem to be solved, it's hard to say any more than that this smells bad.
    Sorry about my English, it's not my natural language

  • Play audio file in Java

    This is very cute example.
    I want to do this: In JTextPane I have some audio files (.au) and what I want to do is that vhen I duble clicked to the file that this file will be opened in some program (like CoolEdit). And this program (with file, which is played) I want to insert to my application. If someone know how to do this, pleasse tell.
    I know that with applet player can play audio file, but this is not good enough for me:)
    Thanks a lot.

    You can use some static methods in the Applet class to play AudioClips, but these only play short sound files. Try reading this thread to play long sound files:
    http://forum.java.sun.com/thread.jspa?forumID=513&threadID=450768

  • Creation of .RTF file in java

    Hi,
    I want to create/edit .RTF file through java application. In my RTF file, I should be able to edit data(formatting), inserting tables. This is already done. Now I want to create chart (like pie-chart) using java. I searched the net for the last couple of days but I couldn't get the proper help. I can do that in SWING but its of no use.
    can anyone help me in this?
    Thanks & Regards,
    mrP

    Hi,
    Can someone please point me in the right direction? I'm trying to create an RTF file from data in a database, so I have no need to use JTextPanel or any GUI components. I've been trying to use the RTFEditorkit with a DefaultStyledDocument, but can only manage to insert one line into the document(!) Does anyone have any suggestions or examples that would explain how to do this?
    Any ideas would be appreciated.
    Thanks in advance,
    Gillian

  • How to insert a file in to the table.

    hi all,
    i'm new to lob types. my requirement is to store a document or excel spreadsheet or image to a single column and will be known at run time.
    i'm using java and oracle xe.
    1. lob has 4 types (blob, clob, nlob and bfile). which one will be best for my requirement.
    2. i have read some examples about clob and bfile. in all the examples, we need to create a directory and with the help of that directory, we need to insert the file.
    but, my doubt is, is it necessary to copy the file in that location, before inserting the file. and if not how i can give the file path to that one.
    its really helpful for me if u given the code or an example.
    regards
    pavan.

    hi pavan
    i am not very fimilar with lob's
    but i read one article in forms i hope it will help u
    http://www.oracle-base.com/articles/8i/ImportBlob.php
    Mohammadi

  • Problem, trying to play many sound files

    hello,
    I did not find a specific answer to my question in most of the archives and so I am posting here.
    my problem is that I have to play a sound when mouse moves over an object and another sound when the same object is clicked.
    there are many such items on the screen and so it is expected that when the mouse entered from the mouse listener is fired, the sound must play.
    but what really happens is that when the mouse moves over the first object the sound plays all right. but there is no sound played when the mouse click happens.
    I have properly loaded the sound files and I am sure that the code is right.
    infact the major thing that has frustrated me is that if I move the mouse on an opject (an icon) the sound is properly played. and if I wait for a long time and then move the mouse on another icon the other sound is played as well. but if I move the mouse quickly from one object to another no sound is played for the second object. or if I click the mouse on an icon after a long holt even the click sound playes.
    what could be the problem. why is it that sound only play when the actions are done after long haults?
    is it an issue of java performance. should I try to do the sound playing stuff in different threads for each icon's mouse events?
    I also tried to stop the file on the mouse exit method to make sure that there is no sound left playing.
    this game is depending a lot on mouse movements with sounds and so I have to get the sounds playing at the same time mouse moves over the objects.
    I use the audioClip to load my sounds with the method in the applet class.
    I really don't know abt the latest java media api and will like to know if that is what I must use for my task or audioClip is ok with me.
    thanks
    Krishnakant.

    I dont know exactly, but I dont know if applets support various files at one time.
    Have your tried to do that with javax.media or with javax.sound.sampled?
    Or could your post the code?
    R. Hollenstein

Maybe you are looking for

  • Trying to parse a Soap Message

    I'm working on creating webservices that will be consumed by Director and working with the client programmer, we've come to recognize the problem, but we don't know how to resolve it. Problem: the XMLParser doesn't follow href parameters in tags that

  • FI-MM integration: Non Stock Material goods inwards

    Hi, We do account determination configuration for FI-MM integration for goods movements. My question is - what all required for Non-stock item goods movements. Please let me what comfiguration. required, and what's required at the time of goods recei

  • Problems with pdf in illustrator, my latest changes are gone!

    I have an illustrator file with layers and I saved it as a pdf and now when I open it in illustrator, all my latest changes are gone! BUT its fine when I open the same file in acrobat! Help, what to do?

  • Select records based on first n distinct values of column

    I need to write a query in plsql to select records for first 3 distinct values of a single column (below example, ID )and all the rows for next 3 distinct values of the column and so on till the end of count of distinct values of a column. eg: ID nam

  • [fsck] Superblock last write time is in the future

    Hello, I have HARDWARECLOCK="localtime" in my rc.conf but every time I reboot I get the below fsck error Superblock last write time is in the future then I am required to enter root password to get a shell. I usually fix the issue by remounting the r