Urgent Help Regarding Using Sound Files

Hello,
Using Java is it possible to
a) represent a .WAV file in WAVE FORM Format (Graph) output.i.e to represent a
audio file pictorially.
b) Spilit a .WAV file into n small pieces or portions.
Please guide me in this regard.Its Urgent
Thankz

Hello,
Using Java is it possible to
a) represent a .WAV file in WAVE FORM Format (Graph)
output.i.e to represent a
audio file pictorially.Open the AudioInputStream, read the AudioFormat, then read the frames one at a time and plot the data.
Here's some code that plays a wave file using the AudioInputStream. Java Sound, see reply 2. this shows how to open the file and get the format, it just plays it, but is able to plays it, but it does read frames. This should provide a start for you.
b) Spilit a .WAV file into n small pieces or portions.Yes, see the classes in package javax.sound.sampled.
>
>
Please guide me in this regard.Its UrgentDon't mark your posts as urgent, don't cross post.
ThankzYou're welcome, hope this helps

Similar Messages

  • Urgent help regarding iPhone 4 required

    Urgent help needed
    Hey guys, i just bought my new iPhone 4 16gb, factory unlocked.
    I just gave it to my uncle for a day as he wanted to use it,Bt I realized,
    Dat he is a super rough handler.
    He presses the touchscreen very very hard,he actually bangs his fingers
    On the screen.
    I wanted to ask whether anything would happen to the phone's touch in the future
    Due to extreme hard pressing of the screen ?(as in whether it would hamper the phones touch in future,If pressed hard ?)
    I know dis question seems to be very stuppid,but I am concerned
    As i jst Spent 40000 on it and I want it to work perfectly fine,atleast fr 2 yrs !
    Pls pls rply guys,plz m extremely worried.
     

    just tell him to give you the phone back and you won't have to worry about it. i have 1 nephew that somehow breaks everything he touches, whenever he asks to see my phone i just say "sorry, no".

  • URgent: Help regarding SQL Query

    Hi ,
    I need help regarding an sql query.
    Sample Data:
    ITEM_TYPE  ITEM_NUM   UNIT_PRICE QUANTITY       LINE_TOTAL
    ITEM         1            5         10           50
    ITEM         2           10         5            50
    ITEM         1            5          5            25
    ITEM                       2         10           20
    TAX                                               16.5
    TAX                                              -3.5I would like to display the data as
    ITEM_TYPE ITEM_NUM  UNIT_PRICE          QUANTITY          LINE_TOTAL
    ITEM       1          5                 15               145
                  2         10                  5 
                              2                 10
    TAX                                                          13.0
    Line_total = unit_price * QuantityThanks in Advance
    G.Vamsi Krishna
    Edited by: user10733211 on Aug 5, 2009 7:42 AM
    Edited by: user10733211 on Aug 5, 2009 7:49 AM
    Edited by: user10733211 on Aug 5, 2009 8:12 AM
    Edited by: user10733211 on Aug 5, 2009 8:22 AM
    Edited by: user10733211 on Aug 5, 2009 8:24 AM

    Hi,
    Try this, use some analytics:
    SQL> with t as (
      2  select 'item' item_type, 1 item_num, 5 unit_price, 10 quantity, 50 linetotal from dual union all
      3  select 'item', 2, 10, 5, 50 from dual union all
      4  select 'item', 1, 5, 5, 25 from dual union all
      5  select 'item', null, 2, 10, 20 from dual union all
      6  select 'tax', null, null, null, 16.5 from dual union all
      7  select 'tax', null, null, null, -3.5 from dual
      8  ) -- actual query starts here:
      9  select item_type
    10  ,      item_num
    11  ,      unit_price
    12  ,      sum_qty
    13  ,      case when sum_lt = lag(sum_lt) over ( order by item_type, item_num )
    14              then null
    15              else sum_lt
    16         end  sum_lt
    17  from ( select item_type
    18         ,      item_num
    19         ,      unit_price
    20         ,      quantity
    21         ,      sum(quantity) over  ( partition by item_type, item_num ) sum_qty
    22         ,      sum(linetotal) over ( partition by item_type )           sum_lt
    23         ,      row_number() over ( partition by item_type, item_num  order by item_type, item_num ) rn
    24         from   t
    25       )
    26  where rn=1;
    ITEM   ITEM_NUM UNIT_PRICE    SUM_QTY     SUM_LT
    item          1          5         15        145
    item          2         10          5
    item                     2         10
    tax                                           13
    4 rows selected.
    edit
    And please use the code tag, instead of clunging with concats.
    Read:
    http://forums.oracle.com/forums/help.jspa
    Edited by: hoek on Aug 5, 2009 5:15 PM
    edit2
    Also nulls for item_type:
    ops$xmt%OPVN> with t as (
      2  select 'item' item_type, 1 item_num, 5 unit_price, 10 quantity, 50 linetotal from dual union all
      3  select 'item', 2, 10, 5, 50 from dual union all
      4  select 'item', 1, 5, 5, 25 from dual union all
      5  select 'item', null, 2, 10, 20 from dual union all
      6  select 'tax', null, null, null, 16.5 from dual union all
      7  select 'tax', null, null, null, -3.5 from dual
      8  ) -- actual query starts here:
      9  select case when item_type = lag(item_type) over ( order by item_type, item_num )
    10              then null
    11              else sum_lt
    12         end  item_type
    13  ,      item_num
    14  ,      unit_price
    15  ,      sum_qty
    16  ,      case when sum_lt = lag(sum_lt) over ( order by item_type, item_num )
    17              then null
    18              else sum_lt
    19         end  sum_lt
    20  from ( select item_type
    21         ,      item_num
    22         ,      unit_price
    23         ,      quantity
    24         ,      sum(quantity) over  ( partition by item_type, item_num ) sum_qty
    25         ,      sum(linetotal) over ( partition by item_type )           sum_lt
    26         ,      row_number() over ( partition by item_type, item_num  order by item_type, item_num ) rn
    27         from   t
    28       )
    29  where rn=1;
    ITEM_TYPE   ITEM_NUM UNIT_PRICE    SUM_QTY     SUM_LT
           145          1          5         15        145
                        2         10          5
                                   2         10
            13                                          13
    4 rows selected.If you really need a space instead of nulls, then simply replace the nulls by a space....
    Edited by: hoek on Aug 5, 2009 5:18 PM

  • Help playing a sound file please...

    i am trying to play a sound file everytime a button is clicked. the sound will play the first time the button is clicked but wont play after that. how can i get the sound file to play everytime the button is clicked?? here's how i play the sound file...
    InputStream in = new FileInputStream(sound.wav);
    AudioStream as = new AudioStream(in);
    // in the button action event...
    AudioPlayer.player.start(as);
    i tried adding this line... AudioPlayer.player.stop(as);...before the...AudioPlayer.player.start(as); -- the sound file still only plays once
    any help appreciated...thanks

    Hi there,
    Is there a class AudioPlayer in the API or is it yours. Anyway, your class must implement AudioClip interface. Then call yourClass.play(as); You dont need to stop, each time you call play(), it restarts. Try and let me know.
    cheers

  • Its urgent  how to use calss file of jar located in lib folder

    how to use calss file of jar located in lib folder.
    i want to use RowSetDynaClass class which is in beanutil jar file which is in my lib folder .if i use that class in my jsp following error is coming.
    Class RowSetDynaClass not found.
    RowSetDynaClass resultSet = new RowSetDynaClass(rs, false);
    how to access class in jar file.
    please help

    You have to either refer to the class in its fully quallified name, or import it into the JSP:
    <%
      some.full.packagename.RowSetDynaClass resultSet = new some.full.packagename.RowSetDynaClass(rs,false);
      ...-or-
    <%@ page import="some.full.packagename.RowSetDynaClass" %>
    <%
      RowSetDynaClass resultSet = new RowSetDynaClass(rs, false);
      ...As long as the class has public visibility and you have re-started the server/servlet context since you added the JAR.

  • Using Sound Fils in Applications

    I have created a sound file in as a .wav format. I now wish to include it in an application to be audible when a button is pressed.
    how would i attempt this?

    http://java.sun.com/docs/books/tutorial/sound/playing.html
    Dave

  • Help on Play Sound File.vi - file format

    Hello,
    My request is quiet simple but I don't understand why it doesn't work.
    I want read a .wav sound file with the Play Sound File vi. But when I run the vi, an error message appears " Cannot recognize sound format"
    I have tried with different .wav sound files but nothing works.
    Do you know why this error happens ?
    Thanks
    Attachments:
    Sound_Labview.png ‏142 KB

    Ok thanks.
    Since the last time I posted I've tried many other wav sounds but nothing works I still had the same Labview error.
    I join you few of my wav files and maybe you can try it.
    Thanks
    Attachments:
    wav.zip ‏160 KB

  • Urgent : Help me Upload a file via FTP using URL

    Hi
    I am having a problem with an error (The system cannot find the file specified)
    The files FTPPut.java and TESTING.txt are both in /src directory.
    import java.net.*;
    import java.io.*;
    public class FTPPut {
         public static void main(String[] argv)throws Exception{
         int BUFFER = 1024;
         URL url = new URL("ftp://ftp.scit.wlv.ac.uk/pub/");
         File filetoupload = new File("TESTING");
         URLConnection urlc = url.openConnection();
         byte data[] = new byte[BUFFER];
         FileInputStream fis = new FileInputStream(filetoupload);
         BufferedInputStream bis = new BufferedInputStream(fis, BUFFER);
         OutputStream os = urlc.getOutputStream();
         int count;
         while ((count = bis.read(data, 0, BUFFER)) != -1) {
         os.write(data, 0, count);
         System.out.println("uploaded sucessfully...");
         bis.close();
         os.close();
    Exception in thread "main" java.io.FileNotFoundException: TESTING (The system cannot find the file specified)
         at java.io.FileInputStream.open(Native Method)
         at java.io.FileInputStream.<init>(FileInputStream.java:106)
         at FTPPut.main(FTPPut.java:11)
    Edited by: AceV on Jan 10, 2008 7:28 AM

    import java.net.*;
    import java.io.*;
    public class FTPPut {
         public static void main(String[] argv)throws Exception{
         int BUFFER = 1024;
         URL url = new URL("ftp://ftp.scit.wlv.ac.uk/pub/");
         File filetoupload = new File("TESTING");
         URLConnection urlc = url.openConnection();
         byte data[] = new byte[BUFFER];
         FileInputStream fis = new FileInputStream(filetoupload);
         BufferedInputStream bis = new BufferedInputStream(fis, BUFFER);
         OutputStream os = urlc.getOutputStream();
         int count;
         while ((count = bis.read(data, 0, BUFFER)) != -1) {
         os.write(data, 0, count);
         System.out.println("uploaded sucessfully...");
         bis.close();
         os.close();
    }

  • Urgent Help:read from text file and write to table

    Hi,
    I'm a super beginner looking for a vi to read this data from a text file and insert it into a table:
       #19
    Date: 05-01-2015
    ID= 12345678
    Sample_Rate= 01:00:00
    Total_Records= 2
    Unit: F
       1 03-23-2015 10:45:46   70.1   3.6
       2 03-23-2015 11:45:46   67.7   2.7
    Output table
    #     date                 time                 x          y        Sample rate    Total Records
    1          03-23-2015     10:45:46        76.8     2.8      01:00:00           2
    2          03-23-2015     10:45:46        48.7     2.1      01:00:00           2
    Thanks for your help in advance.
    Attachments:
    sample.txt ‏1 KB

    jcarmody wrote:
    Will there always be the same number of rows of noise header information?
    Show us how you've read the data and what you've tried to do to parse it.  Once you've got the last rows, you can loop over them using Spreadsheet String to Array (after cleaning up a few messy spaces).
    Jim,
    I didn't know you're that active on here.
    Yes, There will always be the same number of noise header information.
    I'll show you in person
    Regards,

  • Urgent help needed with class file platform transfer

    Hi,
    I am working at home on Java in the windows (2000) system. Now I have compiled a java source code which compiles fine. This is an applet and works fine.
    However, when I am uploading the files( class files generated and the html file) to the Sun Unix system, the applet does not work. My first question is: Does this class file generated in Windows system not transferable in the Unix system?
    At this point, I uploaded the java source file to the Unix system. The source file has been created in Textpad in the Windows environment. Now using telnet I used the javac command to compile the source file in Unix system. Now, I am seeing three errors which was not the case in the Windows environment? I have no idea why the same source code is working on one platform and producing error in another?
    Any help is highly appreciated. Thanks. Regards.

    What are the errors?

  • Urgent Help Regarding Storing Word and PFD Documents

    Dear Friends
    I want to store my word and pdf documents in my database using 8.1.7 for windows NT. It is quiet urgent so if any one of u guys could help me step by step . How to insert and retrieve my doc and pdf files in and from database.
    I'll be highly thankful to you.
    Regards

    The DBMS_LOB package does not support writing of data from BLOBS to the filesystem.
    An export method is defined for the intermedia doc type.
    NOTE: look at the notes and make sure the correct permissions are granted to the user for this method to work. This is in the 8.1.7 documentation which is not on OTN at this time...
    However, the intermedia does have an export method that was implemented as a java stored procedure.
    http://otn.oracle.com/doc/oracle8i_816/inter.816/relational_interface/mm_relat.htm#1078905
    You can write your own java stored procedure to write the file, place the document in an intermedia doc type and use the export method, or use the relational interface export() function.

  • Urgent help importing an XML file

    Hi all,
    I'm currently exporting my XML files from Magento, the webshop client. However I cannot use the XML task in ETL because I get the error about namedspaces. I can open the XML file itself no problem, it contains a few columns with data, some empty values.
    What I do to solve the error is create the script in ETL that converts the XML file so that I can make the SDX schema. The ETL script itself works 
    <?xml version="1.0" encoding="utf-8" ?> 
    <xsl:stylesheet version="1.0"         xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 
      <xsl:output method="xml" indent="no" /> 
      <xsl:template match="/|comment()|processing-instruction()"> 
        <xsl:copy> 
          <xsl:apply-templates /> 
        </xsl:copy> 
      </xsl:template> 
      <xsl:template match="*"> 
        <xsl:element name="{local-name()}"> 
          <xsl:apply-templates select="@*|node()" /> 
        </xsl:element> 
      </xsl:template> 
      <xsl:template match="@*"> 
        <xsl:attribute name="{local-name()}"> 
          <xsl:value-of select="." /> 
        </xsl:attribute> 
      </xsl:template> 
    </xsl:stylesheet> 
    But when I open the newly created file he looks really odd: See below for the initial file and the new file (based on how many times I open the file, i get another weird look...). Please help me out it's killing me :)

    Or you can apply a XSLT transform as per http://blogs.msdn.com/b/mattm/archive/2007/12/15/xml-source-making-things-easier-with-xslt.aspx
    Arthur My Blog

  • Urgent Help - in using Escape character

    hai,
    i have problem in using escape character..
    can anyone help me out in the same...
    sb.append(<jsp:getProperty name="resume_main" property="name"/>);
    //error i am getting is -- Missing term, ')' expected.
    pl help me out in using the escape character in the above statement.
    thanx in advance
    regards
    koel

    try
    sb.append("<jsp:getProperty name='resume_main' property='name'/>");
    or
    sb.append("<jsp:getProperty name=\"resume_main\" property=\"name\"/>");
    both will work

  • Need urgent help with creating .war file ...

    My boss gave me one day to create an app. that runs on Apache Tomcat 4.0.6. I managed to get it done, but now I'm trying to move it from my machine to the web server. Each time I try to create a .war file I get an error saying "no such file or directory". Am I missing a step here??
    What I do is: go to the webapps/<appname> directory where the app. is located, type in jar cvf * path/to/application/appname.war.
    I then get the "no such file..." message, then a message that says "added manifest" then lines on the screen that say adding: blah blah file. It goes through all the files in my app directory but I get no resulting .war file.
    I'm so frustrated and confused at this point, any help would be greatly appreciated.

    >
    What I do is: go to the webapps/<appname> directory
    where the app. is located, type in jar cvf *
    path/to/application/appname.war. No need to create an intermediate zip file, or to use JDeveloper to create a simple war file.
    You just need to put the WAR name before the list of files.
    jar cvf appName.war *

  • Please help me ~ use WSDL file and Java Querypage Class

    First, i can't write english very well. so before read this you know.
    i have a project. and oracle suggest "http://www.webbasedcrmsoftware.com.au/crm-on-demand-tutorials/65-java-access-to-crm-on-demand#_Toc224720963 " . Do you know this URL?
    anyway I Along the this URL Explanation. but i have a problem.
    First, please look this source.(that URL same source)
    <Java Source Start(QueryPage(Select?))>
    package crmod;
    import java.net.HttpURLConnection;
    import java.net.URL;
    import java.util.StringTokenizer;
    public class CRMOD {
    public CRMOD() {
    public static void main(String[] args) {
    String jsessionid, jsessionid_full;
    String endpoint;
    try
    CRMOD crmod = new CRMOD();
    System.out.println("Loggin In");
    jsessionid_full = crmod.logon("https://secure-ausomxana.crmondemand.com/Services/Integration", "MY ID", "MY PASSWORD");
    jsessionid = getSessionId(jsessionid_full);
    System.out.println(jsessionid);
    endpoint = "https://secure-ausomxdsa.crmondemand.com/Services/Integration" + ";jsessionid=" + jsessionid;
    URL urlAddr = new java.net.URL( endpoint);
    crmondemand.ws.contact.Contact service = new crmondemand.ws.contact.ContactLocator();
    crmondemand.ws.contact.Default_Binding_Contact stub = service.getDefault(urlAddr);
    crmondemand.ws.contact.ContactWS_ContactQueryPage_Input contactlist = new crmondemand.ws.contact.ContactWS_ContactQueryPage_Input();
    crmondemand.ws.contact.ContactWS_ContactQueryPage_Output outlist = new crmondemand.ws.contact.ContactWS_ContactQueryPage_Output();
    crmondemand.xml.contact.Contact[] contacts = new crmondemand.xml.contact.Contact[1];
    crmondemand.xml.contact.Contact contact = new crmondemand.xml.contact.Contact();
    crmondemand.xml.contact.Activity[] activities = new crmondemand.xml.contact.Activity[1];
    crmondemand.xml.contact.Activity activity = new crmondemand.xml.contact.Activity();
    activity.setSubject("");
    activity.setType("");
    activity.setRowStatusOld("");
    activities[0] = activity;
    contact.setContactLastName("='Lee'");
    contact.setContactFirstName("");
    contact.setContactId("");
    contact.setListOfActivity(activities);
    contacts[0] = contact;
    contactlist.setPageSize("10");
    contactlist.setUseChildAnd("false");
    contactlist.setStartRowNum("0");
    contactlist.setListOfContact(contacts);
    System.out.println("contactlist =" +contactlist);
    System.out.println("==1==");
    outlist = stub.contactQueryPage(contactlist);
    System.out.println("==2==");
    crmondemand.xml.contact.Contact[] results =
    new crmondemand.xml.contact.Contact[1];
    results = outlist.getListOfContact();
    crmondemand.xml.contact.Activity[] activitiesout =
    new crmondemand.xml.contact.Activity[1];
    int lenC = results.length;
    if (lenC > 0) {
    for (int i = 0; i < lenC; i++) {
    System.out.println(results.getContactFirstName());
    System.out.println(results[i].getContactLastName());
    System.out.println(results[i].getContactId());
    int lenA = results[i].getListOfActivity().length;
    if (lenA > 0) {
    for (int j = 0; j < lenA; j++) {
    activitiesout = results[i].getListOfActivity();
    System.out.println(" " + activitiesout[j].getSubject() + ", " + activitiesout[j].getType());
    crmod.logoff("https://secure-ausomxdsa.crmondemand.com/Services/Integration", jsessionid_full);
    System.out.println("Loggin Out");
    catch (Exception e)
    System.out.println(e);
    private static String logon(String wsLocation, String userName, String password) {
    String sessionString = "FAIL";
    try {
    // create an HTTPS connection to the On Demand webservices
    URL wsURL = new URL(wsLocation + "?command=login");
    HttpURLConnection wsConnection = (HttpURLConnection)wsURL.openConnection();
    // we don't want any caching to occur
    wsConnection.setUseCaches(false);
    // we want to send data to the server
    // wsConnection.setDoOutput(true);
    // set some http headers to indicate the username and passwod we are using to logon
    wsConnection.setRequestProperty("UserName", userName);
    wsConnection.setRequestProperty("Password", password);
    wsConnection.setRequestMethod("GET");
    // see if we got a successful response
    if (wsConnection.getResponseCode() == HttpURLConnection.HTTP_OK) {
    // get the session id from the cookie setting
    sessionString = getCookieFromHeaders(wsConnection);
    } catch (Exception e) {
    System.out.println("Logon Exception generated :: " + e);
    return sessionString;
    * log off an existing web services session, using the sessionCookie information
    * to indicate to the server which session we are logging off of
    * @param wsLocation - location of web services provider
    * @param sessCookie - cookie string that indicates our sessionId with the WS provider
    private static void logoff(String wsLocation, String sessionCookie) {
    try {
    // create an HTTPS connection to the On Demand webservices
    URL wsURL = new URL(wsLocation + "?command=logoff");
    HttpURLConnection wsConnection = (HttpURLConnection)wsURL.openConnection();
    // we don't want any caching to occur
    wsConnection.setUseCaches(false);
    // let it know which session we're logging off of
    wsConnection.setRequestProperty("Cookie", sessionCookie);
    wsConnection.setRequestMethod("GET");
    // see if we got a successful response
    if (wsConnection.getResponseCode() == HttpURLConnection.HTTP_OK) {
    // if you care that a logoff was successful, do that code here
    // showResponseHttpHeaders(wsConnection);
    } catch (Exception e) {
    System.out.println("Logoff Exception generated :: " + e);
    * given a successful logon response, extract the session cookie information
    * from the response HTTP headers
    * @param wsConnection successfully connected connection to On Demand web services
    * @return the session cookie string from the On Demand WS session or FAIL if not
    found*
    private static String getCookieFromHeaders(HttpURLConnection wsConnection) {
    // debug code - display all the returned headers
    String headerName;
    String headerValue = "FAIL";
    for (int i = 0; ; i++) {
    headerName = wsConnection.getHeaderFieldKey(i);
    if (headerName != null && headerName.equals("Set-Cookie")) {
    // found the Set-Cookie header (code assumes only one cookie is being set)
    headerValue = wsConnection.getHeaderField(i);
    break;
    // return the header value (FAIL string for not found)
    return headerValue;
    private static String getSessionId(String cookie) {
    StringTokenizer st = new StringTokenizer(cookie, ";");
    String jsessionid = st.nextToken();
    st = new StringTokenizer(jsessionid, "=");
    st.nextToken();
    return st.nextToken();
    this source excute, print this error message.
    Loggin In
    281e56bb61372daba8c0a7db2d85d403536cf7645ee1247f527466c281cf1f30.e34QbhuQbNqSci0LbhiKaheTaNyKe0
    - Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.
    contactlist =crmondemand.ws.contact.ContactWS_ContactQueryPage_Input@702c65ba
    ==1==
    java.net.ConnectException: Connection refused: connect
    Process exited with exit code 0.
    i found many internet homepage, but i can't solve this problem.
    help me~~~ T.T
    p.s: I set My host file -> 127.0.0.1 some-proxy.com
    JDeveloper version = 11g Release 2
    OS = windows XP

    It looks like you have some problems that aren't CRMOD related.
    If you have the XML you are building and can post here that would help as well.

Maybe you are looking for

  • How do I stop my original photo from changing after I edit then save it in Raw 7

    How do I stop my original image from changing after I save the edited version in Camera Raw 7. I want to be able to keep the original intact and also have the edited version. Also, if I want to work the new edited version in the future I would want t

  • Wireless communicat​ion

    i recently upgraded my broadband with a Huewai E586 Mi-Fi, it will not let my laptop talk to my photosmart C6180, both the laptop and the printer are connecting to the E586 but cannot connect from laptop to printer. 3 is my broadband supplier they ha

  • Regarding the tns-12541 error in connecting to sql server from oracle

    i need to create a database link from oracle on windows box to sql server.I configured everything but when i am trying to tnsping the sqlserver it throws me an TNS12541 no listener error. The listner status is up and the listener works

  • Source system Connection for DB2

    Hi All, I need to create a source system for DB2 in SAP BI 7.0. I have some information about the DB2 database but not sure if that info is sufficient to create a source system for this server. The info I have for DB2 server SERVER1  : FOR SERVER1: 1

  • How change position of picture in sapscript

    hi,everybody   I use command bitmap to show a picture in sapscript.because the window size and position can't change , but i want change position to center,so,use &logo_left& and &logo_left_unit&, but it doesn't work.can you help me? sapscript /: def