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!
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
NinjaTrader
SpeechSynthesizer or Run external process...
Collapse
X
-
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
-
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
-
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
-
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 f.saeidi, Today, 12:14 PM
|
2 responses
5 views
0 likes
|
Last Post
by f.saeidi
Today, 12:47 PM
|
||
Started by TradeForge, 04-19-2024, 02:09 AM
|
2 responses
28 views
0 likes
|
Last Post
by TradeForge
Today, 12:32 PM
|
||
Started by aprilfool, 12-03-2022, 03:01 PM
|
3 responses
327 views
0 likes
|
Last Post Today, 12:31 PM | ||
Started by giulyko00, Today, 12:03 PM
|
1 response
5 views
0 likes
|
Last Post Today, 12:25 PM | ||
Started by AnnBarnes, Today, 12:17 PM
|
1 response
2 views
0 likes
|
Last Post Today, 12:22 PM |
Comment