updated reamde and language files and args

This commit is contained in:
deadvey
2026-03-30 00:34:54 +01:00
parent 17e77c6372
commit 2859b3fbd5
9 changed files with 733 additions and 26 deletions

18
main.py
View File

@@ -12,16 +12,16 @@ with open('config.json', 'r') as 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)
if config['mode'] == 'file':
dictate.file(config)
match config['mode']:
case 'word':
dictate.words(config)
case 'timed':
dictate.timed(config)
case 'quote':
dictate.quote(config)
case 'file':
dictate.file(config)