Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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:

        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 warreng86, 11-10-2020, 02:04 PM
            6 responses
            1,359 views
            0 likes
            Last Post mathewlo  
            Started by Perr0Grande, Today, 08:16 PM
            0 responses
            5 views
            0 likes
            Last Post Perr0Grande  
            Started by elderan, Today, 08:03 PM
            0 responses
            9 views
            0 likes
            Last Post elderan
            by elderan
             
            Started by algospoke, Today, 06:40 PM
            0 responses
            10 views
            0 likes
            Last Post algospoke  
            Started by maybeimnotrader, Today, 05:46 PM
            0 responses
            14 views
            0 likes
            Last Post maybeimnotrader  
            Working...
            X