Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

audio alert upon completion of a bar

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

    #16
    With the code you had posted, playedaudio will be true after bar 1 and continuing forever, it is not reset to false ever.

    You need the

    if (FirstTickOfBar)
    playedaudio = false;

    Put it above this line:
    if (Bars.PercentComplete>.91666 && !playedaudio)

    What error were you receiving?

    Mike
    Last edited by ctrlbrk; 05-10-2009, 01:12 AM.

    Comment


      #17
      OK!!!

      It works. There is NO way I could have done this alone.
      Thanks ctrlbrk and others. (Do you get paid for this, by NT, seriously.)

      Anyway, I think that using a text to speech setup, like the one
      on-line someone long ago mentioned, one can make audio alerts
      more professional and easier to understand. There is no "I forgot
      what that sound means." OR "This sound means one of two things."

      - Stephen

      Comment


        #18
        You are very welcome Stephen.

        I am up working on my strategies, and in between compiling/re-loading was responding on the forum. No biggie, I enjoy it. And for all the complaining I do on other NT threads to the NT team, I try to balance it out by helping others as much as I can, making their job easier if possible

        There are ways to incorporate TTS directly into C#, allowing it to speak any string. However, I've not been bold enough to wade through it yet. For now, like you, I just use recorded wav files with a speaking voice to tell me what event was triggered. I use the AT&T TTS website which generously allows easy downloading of the wav file, and multiple voices to choose from.

        Mike

        Comment


          #19
          Yes, I used the AT&T site as well. I then used Audacity
          to make the WAV file, though as I looked more closely
          at their site, I'm probably doing it the hard way (as usual).

          See you around,

          Stephen Szpak

          Adams, Massachusetts,USA

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by fx.practic, 10-15-2013, 12:53 AM
          5 responses
          5,404 views
          0 likes
          Last Post Bidder
          by Bidder
           
          Started by Shai Samuel, 07-02-2022, 02:46 PM
          4 responses
          95 views
          0 likes
          Last Post Bidder
          by Bidder
           
          Started by DJ888, Yesterday, 10:57 PM
          0 responses
          8 views
          0 likes
          Last Post DJ888
          by DJ888
           
          Started by MacDad, 02-25-2024, 11:48 PM
          7 responses
          159 views
          0 likes
          Last Post loganjarosz123  
          Started by Belfortbucks, Yesterday, 09:29 PM
          0 responses
          8 views
          0 likes
          Last Post Belfortbucks  
          Working...
          X