Skip to content

I created a speech-to-Gcode generator using speech recognition and ttgLib.TextToGcode library.

License

Notifications You must be signed in to change notification settings

the-avyakta/Speech-to-GCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

speech-to-gcode

i created speech to gcode solution. i am using python speech_recognition and ttgLib.TextToGcode library.

for speech i am using, i am using my microphone, so before run this code connect your pc to a microphone then run it, so firstly it will convert the speech to text

then i am using TextToGcode Library to convert this generated text to gcode it's syntax is

ttg("TEXT", SIZE, ROTATION, "MODE", FEEDRATE).toGcode("ON COMMAND", "OFF COMMAND", "FAST COMMAND", "SLOW COMMAND")

ttg(text,1,0,"return",1).toGcode("M300 S50.00","M300 S30.00","G0","G1")

We Are Using

TEXT = text SIZE = 1 ROTATION = 0 MODE = "return" you can use file in mode to get the file directly, i am writing the output in file.

FEEDRATE = 1

ON: "M300 S50.00" OFF: "M300 S30.00" FAST: "G0" SLOW: "G1"

Releases

No releases published

Packages

No packages published