Added support for different voices, renamed language and quote files with their 2 letter abreviations.

New arguments: -v, -c
This commit is contained in:
deadvey
2026-03-30 15:11:54 +01:00
parent 21345481b4
commit c59e00cf78
10 changed files with 1144 additions and 11 deletions

View File

@@ -8,16 +8,14 @@ import dictate
engine = pyttsx3.init()
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 = ''
config = args.handle_arguments(sys.argv, config, engine)
engine.setProperty('rate', config['wpm'])
engine.setProperty('voice', config['voice'])
# TODO: match case
match config['mode']:
case 'words':