Excuse me as I'm not a programmer, I'm slowly learning how to edit the Macros more through trial and error.
I have tried to run a new macro with code the same as you linked to and other examples i found but in all cases I cannot get passed the first few lines without UCCNC console throwing up an error. As an exmpale "using system" returns this below. Am I correct in thinking the macro's are already using System?
I have downloaded windows system.speech.dll and copied that into UCCNC folders at top level and pluggins ( I know this isn't making a plugin)..
I have worked out how to run a .wav file from within any of the macro's where i could record predefined sentences but would prefer to have any marco read a text string within it's own code if possible and/or a message box which we know can be created easily.
<!> Last error dated: 8/17/2022 7:48:11 PM
<!> In macro: M2005
<!> --------------------------------------
<!> CS1003 | in line: 10 | error text: Syntax error, '(' expected
<!> CS1026 | in line: 10 | error text: ) expected
<!> CS1003 | in line: 11 | error text: Syntax error, '(' expected
<!> CS1026 | in line: 11 | error text: ) expected
<!> CS1003 | in line: 12 | error text: Syntax error, '(' expected
<!> CS1026 | in line: 12 | error text: ) expected
<!> CS1003 | in line: 13 | error text: Syntax error, '(' expected
<!> CS1026 | in line: 13 | error text: ) expected
<!> --------------------------------------
using System;
using System.Windows.Forms;
using System.Speech;
using System.Speech.Synthesis;
namespace TextToSpeechConverter