Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

SpeechSynthesizer or Run external process...

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

    SpeechSynthesizer or Run external process...

    Seems System.Speech.Synthesis namespace is not available in NT8. Any way we can do speech synthesis or at least run an external process from NT8 that can do it?

    #2
    Hello fxRichard,

    This would fall under general C# and would not be a documented NinjaScript item.

    That said, have you added a reference to the dll?

    Below is a link to a 3rd party guide.


    Also, below is a link to another thread that discusses speech synthesis.
    Last edited by NinjaTrader_ChelseaB; 08-01-2016, 07:03 AM.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Its easy to do, look at this thread, has code, I managed to make dynamic speech synthesis as well as load text files to read them dynamically..

      This thread has some code that should help you...

      Comment


        #4
        I have a class that does it, if you need the code let me know, I can post.

        The thread I put in the prior post explains how to put in the speech.dll so it can be accessed in your ninjascript

        Comment


          #5
          HI KhaosTrader,

          I am playing with System.Speech.Synthesis using NT8, and I would truly appreciate your posting the code to access the dll properly!

          I am basically just trying to get it to say ' Bars.Instrument.MasterInstrument.Name + "up" or "down" ' based on whether it is crossing a key trendline.

          Any help from you would be truly appreciated. Thank you in advance!

          Comment


            #6
            Hello again,

            I got it to work in the rudimentary sense: there's a simplistic example from Microsoft here https://docs.microsoft.com/en-us/dot...tframework-4.8

            If you do this, however, it will literally speak each example through the entirety of the chart history every time you change indicators on your chart. That is not good!

            To get around this, I believe the solution is to write a custom wav file for the symbol and then access that wav file in a standard NT8 Alert().

            Microsoft lays out a simple way to create a speech synthesis wav file here https://docs.microsoft.com/en-us/dot...tframework-4.8

            So, I just wanted to jot down these notes in case anyone ever wants to try this themselves. I haven't finished it yet myself.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            605 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            351 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            105 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            560 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            561 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X