initial commit

This commit is contained in:
deadvey
2026-03-29 19:53:07 +01:00
commit ce6da0d106
17 changed files with 388 additions and 0 deletions

25
main.py Normal file
View File

@@ -0,0 +1,25 @@
import pyttsx3
import sys
import json
import args # Handles command line arguments
import maths
import dictate
config = {}
with open('config.json', 'r') as file:
config = json.load(file)
# Handle the command line arguments
config = args.handle_arguments(sys.argv, config)
print(config)
dictation = ''
# TODO: match case
if config['mode'] == 'words':
dictate.words(config)
if config['mode'] == 'timed':
dictate.timed(config)
if config['mode'] == 'quote':
dictate.quote(config)