Files
aladeen/main.py
2026-03-30 00:34:54 +01:00

28 lines
490 B
Python

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)
dictation = ''
# TODO: match case
match config['mode']:
case 'word':
dictate.words(config)
case 'timed':
dictate.timed(config)
case 'quote':
dictate.quote(config)
case 'file':
dictate.file(config)