• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Sound Alert does not play . . .

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    Sound Alert does not play . . .

    Hi Y’all,
    I have coded an Alert that should work, but doesn’t. To double-check my work, I also DrawDot based on the same code (in the line immediately following the Alert). The Dot works, so I believe the Alert code is triggered, but perhaps the .wav file is not found in the proper directory?? Or some other problem. . . ??

    The exact code used:
    Alert("sayLong",NinjaTrader.Cbi.Priority.High,"","Long.wav",10,Color.Empty,Color.Empty);

    The only NinjaTrader sound folder I could find is located:
    C:Program Files(x86) / NinjaTrader7 / sounds /
    I have placed the Long.wav file in the sounds folder.

    Suggestions?
    Thanks so much for your help!

    Jules

    #2
    Originally posted by JulieC View Post
    Hi Y’all,
    I have coded an Alert that should work, but doesn’t. To double-check my work, I also DrawDot based on the same code (in the line immediately following the Alert). The Dot works, so I believe the Alert code is triggered, but perhaps the .wav file is not found in the proper directory?? Or some other problem. . . ??

    The exact code used:
    Alert("sayLong",NinjaTrader.Cbi.Priority.High,"","Long.wav",10,Color.Empty,Color.Empty);

    The only NinjaTrader sound folder I could find is located:
    C:Program Files(x86) / NinjaTrader7 / sounds /
    I have placed the Long.wav file in the sounds folder.

    Suggestions?
    Thanks so much for your help!

    Jules
    wav files represent many different formats. Do you know the exact format of your wave file? If so, what is that format?

    Comment


      #3
      Ah !. . . maybe that's it. I don't know the format, I recorded my own using "Sound Recorder" on Microsoft 7.
      Maybe I should try a simple "ding" already in the Ninja folder.
      Is there a way to convert home-made .wav files into something that works?
      J

      Comment


        #4
        Originally posted by JulieC View Post
        Ah !. . . maybe that's it. I don't know the format, I recorded my own using "Sound Recorder" on Microsoft 7.
        Maybe I should try a simple "ding" already in the Ninja folder.
        Is there a way to convert home-made .wav files into something that works?
        J
        The file needs to be a PCM wave file.

        Take a look at these threads:
        http://www.ninjatrader.com/support/f...ght=wave+files
        http://www.ninjatrader.com/support/f...&highlight=PCM
        Last edited by koganam; 06-04-2013, 07:51 AM. Reason: Corrected sentence.

        Comment


          #5
          Thanks Koganam,

          You the man! Helpful information for sure.
          I took it one step further and found a way to use CUSTOM SOUND BITES. Below I share that process in case others want to create a PCM wave file. AT&T has a site that converts typed words into spoken words that are PCM wav files. Go to:

          http://www2.research.att.com/~ttsweb/tts/demo.php

          It is a 3 step process:
          Step 1 – choose a voice that you like.
          Step 2 – Type the words you want into the Text field.
          Step 3A – Click “Speak” and see if you like the words.
          Step 3B – Click “Download”; then on the new screen that pops up, right click the audio file, followed by “Save target as” and name & save the file somewhere to your computer -- thereafter move the .wav file into the folder where NinjaTrader will find it (for me, the Alert looks in the sound file identified in Comment #1 of this thread).

          Thanks again Koganam for your help.
          Jules
          Last edited by JulieC; 06-04-2013, 02:48 PM.

          Comment


            #6
            Originally posted by JulieC View Post
            Thanks Koganam,

            You the man! Helpful information for sure.
            I took it one step further and found a way to use CUSTOM SOUND BITES. Below I share that process in case others want to create a PCM wave file. AT&T has a site that converts typed words into spoken words that are PCM wav files. Go to:

            http://www2.research.att.com/~ttsweb/tts/demo.php

            It is a 3 step process:
            Step 1 – choose a voice that you like.
            Step 2 – Type the words you want into the Text field.
            Step 3A – Click “Speak” and see if you like the words.
            Step 3B – Click “Download”; then on the new screen that pops up, right click the audio file, followed by “Save target as” and name & save the file somewhere to your computer -- thereafter move the .wav file into the folder where NinjaTrader will find it (for me, the Alert looks in the sound file identified in Comment #1 of this thread).

            Thanks again Koganam for your help.
            Jules
            Hey Julie - this is a great resource.

            Thanks!

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by uiwislth, Yesterday, 11:25 PM
            0 responses
            4 views
            0 likes
            Last Post uiwislth  
            Started by Steve L, Yesterday, 10:04 PM
            0 responses
            3 views
            0 likes
            Last Post Steve L
            by Steve L
             
            Started by marianfed, Yesterday, 09:47 PM
            0 responses
            5 views
            0 likes
            Last Post marianfed  
            Started by hir04068, Yesterday, 09:29 PM
            0 responses
            4 views
            0 likes
            Last Post hir04068  
            Started by iq200, 03-11-2018, 07:49 PM
            24 responses
            1,022 views
            0 likes
            Last Post mrlucky1x  
            Working...
            X