Can UCCNC Talk?

Post anything you want to discuss with others about the software.

Can UCCNC Talk?

Postby mark68 » Wed Aug 17, 2022 4:27 pm

Is it possible to have speech of a text string or message box, Mach3 has this function with a simple "SPEAK" command?
mark68
 
Posts: 59
Joined: Tue Oct 22, 2019 10:42 pm
Location: Yorkshire Uk

Re: Can UCCNC Talk?

Postby ger21 » Wed Aug 17, 2022 4:45 pm

Possibly with a plugin or maybe macroloop using this info?
https://www.c-sharpcorner.com/UploadFil ... n-C-Sharp/
Gerry
UCCNC 2022 Screenset - http://www.thecncwoodworker.com/2022.html
ger21
 
Posts: 2714
Joined: Sat Sep 03, 2016 2:17 am

Re: Can UCCNC Talk?

Postby mark68 » Wed Aug 17, 2022 6:58 pm

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/
mark68
 
Posts: 59
Joined: Tue Oct 22, 2019 10:42 pm
Location: Yorkshire Uk

Re: Can UCCNC Talk?

Postby ger21 » Wed Aug 17, 2022 7:33 pm

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.
Gerry
UCCNC 2022 Screenset - http://www.thecncwoodworker.com/2022.html
ger21
 
Posts: 2714
Joined: Sat Sep 03, 2016 2:17 am


Return to General discussion about the UCCNC software

Who is online

Users browsing this forum: No registered users and 26 guests