Page 1 of 1

Can UCCNC Talk?

PostPosted: Wed Aug 17, 2022 4:27 pm
by mark68
Is it possible to have speech of a text string or message box, Mach3 has this function with a simple "SPEAK" command?

Re: Can UCCNC Talk?

PostPosted: Wed Aug 17, 2022 4:45 pm
by ger21
Possibly with a plugin or maybe macroloop using this info?
https://www.c-sharpcorner.com/UploadFil ... n-C-Sharp/

Re: Can UCCNC Talk?

PostPosted: Wed Aug 17, 2022 6:58 pm
by mark68
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



ger21 wrote:Possibly with a plugin or maybe macroloop using this info?
https://www.c-sharpcorner.com/UploadFil ... n-C-Sharp/

Re: Can UCCNC Talk?

PostPosted: Wed Aug 17, 2022 7:33 pm
by ger21
Not a programmer either.
Not sure if you can call those in a macro, and if you can, the syntax will most certainly be different.