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

Similar Messages

  • IOS: (not) playing sound from local file system - Error #2032

    Dear all,
    I am working on an app where I want to (among others) play sound files from the local file system.
    I have added a few mp3 files into my .ipa file.
    With a small file browser in my app I can select any one of them which returns me a File object.
    I then use this File object to do a URLRequest to load the sound:
    var req:URLRequest = new URLRequest(file.nativePath);
    sound = new Sound();
    sound.addEventListener(IOErrorEvent.IO_ERROR, soundLoadError);
    sound.addEventListener(Event.COMPLETE, soundLoaded);
    sound.load(req);
    It works in flash, but fails on the iPAD. Everytime I try to load, I get a IOErrorEvent with error code Error #2032
    When I replace new URLRequest(file.nativePath) with URLRequest("http://.../testfile.mp3"), everything works fine!
    Any help appreciated.
    Is this a matter of Security settings? Can I change those?
    Something to do with Sandboxing (whatever that is)?
    or something to do with cross-domain access?
    I have been looking around for days now and any help would be appreciated!
    I am using Flash CS5.5 & AIR 2.7
    Thanks, Marcus.

    Hi Sanika,
    this was something closer to that paragraph for "nativePath":
    Some Flex APIs, such as the source property of the SWFLoader class, use a URL (the url property of a File object), not a native path (the nativePath property).
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/filesystem/File.h tml#nativePath
    but that is not exactly what I've read (maybe that was A-blog or post on someone from A-team on his personal blog or post on stackoverflow).
    (myself I'm using and providing solutions for paths using FILE protocol - file URI schemes - mostly whenever I can and where it is supported)
    regards,
    Peter

  • Playing sound over network file

    Hello,
             I have swf file in my domain which has to play sound file that is located over the network. say my domain is http://mydomain.com/play.aspx which hosts the swf file. This swf file plays a sound thats is located at \\SERVERNAME\PATH\xyz.mp3. This SERVERNAME can be local or network. When I try to access the sound file I get IO error 2032. I copied crossdomain.xml (with full access to *) under \\SERVERNAME server at the root path that is C:\ and also to \\SERVERNAME\PATH. It didnt work. IS there something that I m missing?..
    Thanks,
    Bharani

    it depends on the place you called this method and the place of the sound clip, the class within which you called the method must be at the same directory of the sound clip, if you used the file name as the parameter of this method without supplying directores like sounds/myClip.mid
    ex.
    package myPack.test
    class Test{
          getclass.getResource("myClip.mid"); //this call assumes that the file path is ...myPack/test/myClip.mid
    }GoodLuck

  • After Effects CS6 doesn't play sound of MTS file when imported to ae.

    When I record a file on my canon hfr10 camcorder and imports to my windows computer, it plays sound when played when open with windows media player. But when i import to After Effects, it doesn't have the audio thingy near the "lock layer" button. It doesnt play audio.

    The audio is probably on the wrong tracks because your recording settings were set to channel 3&4, not 1&2. AE still only does stereo and simply doesn't see extra tracks. no chance. you need to extract the audio in an external program and import it as a separate file. Premiere should be able to handle this, but feel free to use otehr tools.
    Mylenium

  • Help with playing sound in applications

    im new to java and i was practicing playing sound in a swing application but the problem is that when i press the play button no sound is played...here is my code
    import javax.swing.*;
    import java.applet.AudioClip;
    import java.awt.*;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.net.MalformedURLException;
    import java.net.URL;
    import java.io.File;
    public class JukeBox extends JFrame {
        private JLabel label;
        private JPanel panel, buttonPanel;
        private JComboBox playList;
        private JButton play, stop;
        private URL url1, url2, url3, url4, url5, url6;
        private AudioClip[] musicList;
        private AudioClip current ;
        public JukeBox() {
            setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            setSize(500, 120);
            setLocation(50, 50);
            setTitle("JAVA JukeBox");
            url1 = url2 = url3 = url4 = url5 = url6 = null;
            current = null;
            try {
                url1 = new URL("file", "localhost", "C:\\Documents and Settings\\KADA\\IdeaProjects\\Sound\\bottle-open.wav");
                url2 = new URL("file", "localhost", "C:\\Documents and Settings\\KADA\\IdeaProjects\\Sound\\BP2.mp3");
                url3 = new URL("file", "localhost", "C:\\Documents and Settings\\KADA\\IdeaProjects\\Sound\\fhm.aiff");
                url4 = new URL("file", "localhost", "C:\\Documents and Settings\\KADA\\IdeaProjects\\Sound\\jungle.rmf");
                url5 = new URL("file", "localhost", "C:\\Documents and Settings\\KADA\\IdeaProjects\\Sound\\spacemusic.au");
                url6 = new URL("file", "localhost", "C:\\Documents and Settings\\KADA\\IdeaProjects\\Sound\\trippygaia.mid");
            } catch (MalformedURLException e) {
                e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
            musicList = new AudioClip[7];
            musicList[0] = null;
            musicList[1] = JApplet.newAudioClip(url1);
            musicList[2] = JApplet.newAudioClip(url2);
            musicList[3] = JApplet.newAudioClip(url3);
            musicList[4] = JApplet.newAudioClip(url4);
            musicList[5] = JApplet.newAudioClip(url5);
            musicList[6] = JApplet.newAudioClip(url6);
            label = new JLabel("JAVA JukeBox", JLabel.CENTER);
            String[] musicList = {"select a track..."
                    , "bottle open"
                    , "bitch please II"
                    , "flutte, harmonica, mambo"
                    , "jungle"
                    , "spacemusic"
                    , "trippygaia"};
            playList = new JComboBox(musicList);
            playList.addActionListener(new ListListener());
            play = new JButton("Play");
            play.setActionCommand("play");
            play.addActionListener(new ButtonListener());
            stop = new JButton("Stop");
            stop.addActionListener(new ButtonListener());
            buttonPanel = new JPanel();
            buttonPanel.setLayout(new BoxLayout(buttonPanel, BoxLayout.X_AXIS));
            buttonPanel.add(play);
            buttonPanel.add(stop);
            panel = new JPanel();
            panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));
            panel.add(label);
            panel.add(Box.createRigidArea(new Dimension(0, 5)));
            panel.add(playList);
            panel.add(Box.createRigidArea(new Dimension(0, 5)));
            panel.add(buttonPanel);
            getContentPane().add(panel);
        private class ButtonListener implements ActionListener {
            public void actionPerformed(ActionEvent e) {
                if(current != null){
                    current.stop();
                if(e.getActionCommand().equalsIgnoreCase("play")){
                    if(current != null){
                        current.play();
        private class ListListener implements ActionListener {
            public void actionPerformed(ActionEvent e) {
                if (current != null) {
                    current.stop();
                current = musicList[playList.getSelectedIndex()];
        public static void main(String[] args) {
            setDefaultLookAndFeelDecorated(true);
            JukeBox jb = new JukeBox();
            jb.setVisible(true);
            jb.setResizable(false);
    }can u please tell me whats wrong with my code coz i cant hear no sound when i press the play button and can u please tell me why i cant simply put the file name in the URL instead of the complete path although the files are in the same directory of the source code and can i play mp3 using this little program ???
    plz help...im a newbie so plz explain as much as u can...

    After
    musicList = new AudioClip[7];
            musicList[0] = null;
            musicList[1] = JApplet.newAudioClip(url1);
            musicList[2] = JApplet.newAudioClip(url2);
            musicList[3] = JApplet.newAudioClip(url3);
            musicList[4] = JApplet.newAudioClip(url4);
            musicList[5] = JApplet.newAudioClip(url5);
            musicList[6] = JApplet.newAudioClip(url6);initialise the variable current with
    current = musicList[1];or similar because the AudioClip current always == null in your code so your listener blocks don`t execute.
    regards

  • [help]ABOUT play sound

    CFURLRef myURLRef;
    myURLRef = CFURLCreateWithFileSystemPath (kCFAllocatorDefault,
    CFSTR("/aif.aif") ,
    kCFURLPOSIXPathStyle,
    FALSE);
    OSStatus error = AudioServicesCreateSystemSoundID (myURLRef, &mySSID);
    this code can play sound in the root directory.
    but how can I play the sound in the resource Bundle?
    thanks a lot

    OK, I find it
    CFBundleRef mainBundle = CFBundleGetMainBundle();
    // Look for a resource in the main bundle by name and type.
    myURLRef = CFBundleCopyResourceURL( mainBundle,
    CFSTR("fun"),
    CFSTR("aif"),
    NULL );
    if you have some question, MSN me: [email protected]

  • JMF does not play sound for .avi file and no video for .mov file

    Hi,
    I am trying to use JMStudio to transmit media files from one computer to another.
    However, when I try to transmit .mov file it only plays audio no video is displayed on other computer.
    And when I transmit .avi file I can see the Video on other machine but it does not
    play any sound.
    I tried using capture devices like - webcam and mic and they work perfectly fine.
    Can anyone please tell me the solution for this.
    Thank you in advance.

    I discovered the same problem too..
    I think it is a general Format problem.
    When i analyzed the tracks in my .avi and .mov files before rtp streaming with jmf, I found each media containing just 1 track..
    This track was a video track, no audio at all.
    Other formats I tried, like .mpg, revealed both audio and video tracks, and performed perfectly.
    I'm still on more research.. will get the solution to you if u don't find one before I'm done..

  • Help to play Type: Movie-mpeg1 files

    Hey!
    I'm very new to Macs so I hope someone can help me with this:
    I got some Movie-mpeg1 files from a sony camera, but I can't play the files in my quicktime player.
    Someone who can help me?
    Thank you

    QuickTime Player can view MPEG-1 files so I would guess yours are really MPEG-2.
    http://www.apple.com/quicktime/mpeg2
    That extra component will allow MPEG-2 playback in QuickTime.
    You can also view them using the free VLC app:
    http://www.videolan.org/vlc/

  • QT not playing sound for MPEG1 files on my Intel Mac

    My QT Pro (latest version, automatically updated regularly) on my new Intel iMac will play the video of MPEG1 files, but no longer plays their audio. The same MPEG1 files play fine on my "Wintel" machine at work using QT for Windows 7.0.4 (the non-Pro version). QT still plays AVI and MOVs fine. Is there a known bug with the Intel version of QT?
    The last time I played an MPEG with no problems was on my older G4 Mac, just before purchasing the Intel Mac one month ago. I performed the software migration from old to new Mac using the Apple's Migration Assistant, then Software Update fetched and installed the newest version of QT. I haven't tried reinstalling an older version of QT yet. I was hoping to find some insight here before doing so.

    My QT Pro (latest version, automatically updated regularly) on my new Intel iMac will play the video of MPEG1 files, but no longer plays their audio. The same MPEG1 files play fine on my "Wintel" machine at work using QT for Windows 7.0.4 (the non-Pro version). QT still plays AVI and MOVs fine. Is there a known bug with the Intel version of QT?
    The last time I played an MPEG with no problems was on my older G4 Mac, just before purchasing the Intel Mac one month ago. I performed the software migration from old to new Mac using the Apple's Migration Assistant, then Software Update fetched and installed the newest version of QT. I haven't tried reinstalling an older version of QT yet. I was hoping to find some insight here before doing so.

  • How to play sound from a proprietary format

    I would like to convert a small java applet to flex as3
    The current applet connects  to a remote server to receive audio in a proprietry compressed and encrypted format using a tcp connection (the data is encoded as text)
    It then decrypts, decompresses the audio and uses java sound to play it.
    Looking at the as3 classes all I could find is a sound object that seems to only play mp3 audio and a urlrequest object that is used to download (what about streaming) mp3 audio from a server.
    I am looking for a simple sample that will incorporate retreving data from a server (perhaps using the http service) into e.g. a byte array, and playing pcm audio from a byte array.
    Ideally it would be a small set of files (1?) that I can compile using mxmlc; I am not good with IDEs, linux command line is my thing
    Thanks

    Maciek, many thanks!
    Here's sample code showing how to stream audio in arbitrary format and play it
    // File: Player.as
    // When running from local storage (during developement)
    // compile mxmlc -use-network=false Player.as
    // otherwise loading the local raw audio file fails with error 2148
    // The input audio format is 16 bit little endian 44.1Khz mono.
    package
        import flash.display.Sprite;
        import flash.text.TextField;
        import flash.media.Sound;
        import flash.media.SoundChannel;
        import flash.events.Event;
        import flash.events.SampleDataEvent;
        import flash.net.URLRequest;
        import flash.net.URLStream;
        public class Player extends Sprite
            private var sourceUri:String = "audio.44.raw";
            private var sound:Sound = new Sound();
            private var soundChannel:SoundChannel = new SoundChannel();
            private var playing:Boolean;
            private var stream:URLStream;
            private var request:URLRequest;
            private var statusLine:TextField = new TextField();
            public function Player()
                statusLine.width = 400;
                statusLine.text = "Starting...";
                addChild(statusLine);
                getAudio();
                start();
            public function getAudio():void
                stream = new URLStream();
                request = new URLRequest(sourceUri);
                try {
                    stream.load(request);
                } catch (error:Error) {
                    statusLine.text = "Failed to load " + request.url + " : " + err!
            private function playCallback(event:SampleDataEvent):void
                var value:Number;
                var i:int, cnt:int;
                // Input is 16bit PCM, each sample occupies 2 bytes
                cnt = stream.bytesAvailable / 2;
                if (cnt >= 8192 || playing) {
                    playing = true;
                    statusLine.text = request.url + " : playing...";
                    if (cnt > 8192)
                        cnt = 8192;
                    for (i = 0; i < cnt; i++) {
                        // Convert 16bit little edndian pcm samples to numbers
                        value = stream.readUnsignedByte() + 256 * stream.readUnsign!
                        if (value > 32767)
                            value -= 65536;
                        value /= 10000; //Adjust the volume
                        // Input is mono, write to both channels
                        event.data.writeFloat(value);
                        event.data.writeFloat(value);
                    if (cnt < 2048)
                        statusLine.text = request.url + " : done...";              !
                else {
                    // Wait until enough data is bufferred
                    statusLine.text = request.url + " : buffering...";
                    for (i = 0; i < 8192; i++) {
                        event.data.writeFloat(0);
                        event.data.writeFloat(0);
            private function start():void
                soundChannel.stop();
                sound.removeEventListener(SampleDataEvent.SAMPLE_DATA,playCallback);
                playing = false;
                sound.addEventListener(SampleDataEvent.SAMPLE_DATA,playCallback);
                soundChannel = sound.play();

  • Help on playing sound

    Hi there,
    I want to play a sound file without the dependence
    on any web browser. Below is my simple Java code.
    When I test it on DOS prompt, it can play the desired
    sound file. However, the system keep hanging after
    the play of the sound. Can anyone tell me what's
    the problem of my code? Alternatively, is there any
    better Java code (not applet) to play a sound file?
    import java.io.*;
    import java.net.*;
    import java.applet.*;
    public class testAudio{
         public static void main(String args[]){
              try{
                   URL baseURL = new URL("file:" + System.getProperty("user.dir") + "/");
                   String relativeURL = "spacemusic.au"; // any audio file you want to play
                   URL completeURL = new URL(baseURL, relativeURL);
                   System.out.println(completeURL);
                   AudioClip sound = Applet.newAudioClip(completeURL);
                   if (sound == null) {
              System.out.println("Sound " + relativeURL + " not loaded yet.");
                   sound.play();
              catch (MalformedURLException e){
                   System.err.println(e.getMessage());
    Thanks a bunch,
    - John

    Using this method to play a sound spawns a thread that plays the sound (so the app isn't blocked until the sound finishes). Doing this stops the app from terminating (much like if you created a Frame object). You can use System.exit(0); to force an application termination. I've found using AudioClip to very bug-prone. Its much better to use the javax.swing packages:
    http://java.sun.com/products/java-media/sound/index.html

  • HT204382 Hi, Ive just got myself a Macbook Pro, and Im having problems with sound on movie files. The format is wmv and they play OK on a windows 7 laptop, and Im trying to play them now on the MAC. The picture is OK , but no sound. I have Flip4Mac - no d

    Hi, Ive just got myself a Macbook Pro, and Im having problems with sound on movie files. The format is wmv and they play OK on a windows 7 laptop, and Im trying to play them now on the MAC. The picture is OK , but no sound. I have Flip4Mac - no diference

    Download and install the free VLC for Mac - that should work:
    http://www.videolan.org/vlc/download-macosx.html

  • 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

  • HELP....AVCHD / MPEG files not playing correctly!

    I have been trying to download video that was shot with the new Sony FS100 camera that I'm told are AVCHD or MPEG files to my older Adobe Premiere Pro 1.5 timeline, but they are not playing correctly. When I reverse the field dominance, the image plays better but the sound is strange (I was able to speed the sound to 450% and it worked better, but then the balance of the sound from the clip is lost somewhere.).
    Any suggestions to make these files play and work correctly? I tried converting them to AVI files but that showed up completely black on the timeline! Anything I've tried either affects the video or audio negatively!  I try either makes the image play or stutterThis was shot in regular SD format, NOT HD, so they should be able to play on  a standard timeline. Can anyone suggest anything to help please? Much appreciated!

    Thanks for your reply, I ran it through Media Info. Here are the results:
    Container & general information:
    MPEG-PS: 290 Mib  4min22s
    1 Video stream: MPEG video
    1 Audio stream: AC-3
    First Video Stream:
    8833 Kbps, 720*480 (4:3), at 29.970 fps, MPEG video (NTSC) (version 2) (Main@main) (Custom Matrix BVOP)
    First Audio Stream:
    256 Kpbs, 48.0 Khz, 16 bits, 2 channels, AC-3 (DVD-Video)
    Please let me know where to go from here. Thanks so much!
    Date: Fri, 11 Nov 2011 10:50:15 -0700
    From: [email protected]
    To: [email protected]
    Subject: HELP....AVCHD / MPEG files not playing correctly!
        Re: HELP....AVCHD / MPEG files not playing correctly!
        created by Ann Bens in Premiere Pro CS4 & Earlier - View the full discussion
    Welcome to the forum.A screendump of what these SD files exactly are would be very nice.Run them throught Media info.http://mediainfo.sourceforge.net/en
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4020725#4020725
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4020725#4020725. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Premiere Pro CS4 & Earlier by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Embedded QuickTime files not playing sound

    I'm having trouble getting older, embedded QuickTime files to play properly. Many of them do play but without sound.
    An example:
    The embedded QuickTime files in questions 6 and 10 here...
    http://www.linguistics.ucla.edu/people/schuh/lx001/Web_Quizzes/Quiz_07/07web.htm l
    ...do not play sound.
    When viewing the files directly...
    Example: http://www.linguistics.ucla.edu/people/schuh/lx001/Web_Quizzes/Quiz_07/07_Quiz_m edia/0706_split_brain_red.mov
    ...the sound plays properly.
    I have done a bit of playing around on a few different machines and have found the following:
    2009 MacBook Pro: video and sound play correctly in Safari and Firefox
    OS X: 10.7.5
    Safari: 6.1.6
    Firefox: 36.0 with QuickTime Plugin ?
    QuickTime 7: ?
    QuickTime X:10.1
    2009 Mac Mini: video and sound play correctly in Safari and Firefox
    OS X: 10.8.5
    Safari: 6.2.3
    Firefox: 33.1 with QuickTime Plugin 7.7.1
    Firefox: 36.0.1 with QuickTime Plugin 7.7.1
    QuickTime 7: 7.6.6
    QuickTime X: 10.2
    2011 Mac Mini:  video and sound play correctly in Safari and Firefox
    OS X: 10.9.5
    Safari: 7.1.3
    Firefox: 31.0 with QuickTime Plugin 7.7.1
    Firefox: 36.0.1. With QuickTime Plugin 7.7.3
    QuickTime 7: 7.6.6
    QuickTime X: 10.3
    2011 iMac: no sound in videos, improper display of video with menu in both Safari and Firefox
    OS X: 10.10.2
    Safari: 8.0.3
    Firefox: 36.0.1 with QuickTime Plugin 7.7.3
    QuickTime 7: 7.6.6
    QuickTime X: 10.4
    2011 Mac Pro: no sound in videos, improper display of video with menu in both Safari and Firefox
    OS X: 10.10.2
    Safari: 8.0.3
    Firefox: 36.0.1 with QuickTime Plugin 7.7.3
    QuickTime 7: 7.6.6
    QuickTime X: 10.4
    Is this a Yosemite issue? Not being able to play older QuickTime 7 files properly? I'm not sure what else the issue could be since everything seems to work fine in 10.7, 10.8, and 10.9 (unfortunately, I have been unable to test this in 10.10 or 10.10.1). Maybe I'm overcomplicating a simple issue? Any help would be greatly appreciated.
    Thanks!

    Is this a Yosemite issue? Not being able to play older QuickTime 7 files properly? I'm not sure what else the issue could be since everything seems to work fine in 10.7, 10.8, and 10.9 (unfortunately, I have been unable to test this in 10.10 or 10.10.1). Maybe I'm overcomplicating a simple issue? Any help would be greatly appreciated.
    Some very interesting observations which peaked my own curiosity due to on-again, off-again nature of the playback. I suspect this is either a "bug" or represents content handling changes that are currently in the process of  "evolving." Not a web site programmer so I used iWeb to run some contrast-comparison tests on how audio was handled by the plug-in software when directly accessing the content by its URL and via the page embed strategies. My results mirrored yours in that:
    1) All legacy codecs tested (A-Law, IMA, QDM2, QPV, and u-Law) in an MOV file container played correctly in the QT 7 player.
    2) The same files all played correctly when content was accessed by the plug-in software directly using the URL reference.
    3) None of the files containing legacy audio compression formats would play audio using the plug-in software using a web page embedding strategy.
    4) An MP4 (H.264/AAC) version of you original clip played correctly in all instances.
    5) Replacing your QDM2 audio track with an AAC audio track in the original MOV file allowed the file to play correctly in all instances.
    Based on these observations, I suspect the problem is in the way the software is currently programmed to handle (or rather ignore) the embedded strategy content. However, as you indicated, it is probably time to update your files. Not only did the H.264/AAC version of your original file play in all instances, but it used less than 45% of the file space/bandwidth for the settings I employed as compared to your original "0706_split_brain_red.mov" original file.

Maybe you are looking for