dictation-toolbox / unimacro

Other
3 stars 1 forks source link

Setup of Vocola completely confusing #23

Closed dougransom closed 7 months ago

dougransom commented 2 years ago
  1. there is no discussion of what the folders mean.

What is the user directtory and what is kept there?

What is the grammars directory? Isn't the grammars what I use in C:\Users\Doug\OneDrive\doug\dication_toolbox\p3voice\vocola?

What is the Vocola directory? Why do i have to seelect it? is is the source code for vocola? Does the user really need to navigate to C:\Users\Doug\AppData\Roaming\Python\Python39\site-packages\? Because nobody is used to navigating to AppData to do anything.

if my vocola user directory is C:\Users\Doug\OneDrive\doug\dication_toolbox\p3voice\vocola why did the install program create a folder "C:\Users\Doug.natlink\VocolaGrammars"?

If the vocola (or unimacro) source directories are required at runtime, why not write a python function AND a script (using flit) like "vocala_source_directory" and "unimacro_source_directory"? Why do we even need this info at config time?

dougransom commented 2 years ago

Here is my natlink ini. To me there should be one (or maybe zero if there is a natlink default user directory) setting for a folder: the folder where my customizations live. C:\Users\Doug\OneDrive\doug\dication_toolbox\p3voice\vocola

`[directories] vocoladirectory = C:\Users\Doug\AppData\Roaming\Python\Python39\site-packages\vocola2 vocolagrammarsdirectory = C:\Users\Doug.natlink\VocolaGrammars

[userenglish-directories]

[userspanish-directories]

[settings] log_level = DEBUG load_on_startup = True load_on_begin_utterance = False load_on_mic_on = True load_on_user_changed = True

[vocola] vocolauserdirectory = C:\Users\Doug\OneDrive\doug\dication_toolbox\p3voice\vocola

`

drmfinlay commented 2 years ago

Hello Doug,

These are good points. I too have found the new configuration of Natlink, and related projects, somewhat confusing. Your posts are from a few months back. Are these issues still present?

dougransom commented 2 years ago

to be improved somewhat in next release. and expect a new config gui as well.

drmfinlay commented 2 years ago

All right then. :+1:

quintijn commented 7 months ago

We stick to this, except I added prefixes "natlink_userdir", which should be converted to "natlink_settingsdir", and ~ for home directory (C:\Users\Gebruiker\ on my computer.

Vocoladirectory is in sitepackages, and holds "_vocola_main.py", which is the controlling grammar of vocola. vocolagrammarsdirectory holds the by vocola generated python grammar files. This directory should be local.

vocolauserdirectory holds the vocola command files (.vcl files).

(part of natlink.ini file): [directories] vocoladirectory = vocola2 vocolagrammarsdirectory = natlink_userdir\vocolagrammars

[vocola] vocolauserdirectory = ~\Documents\vocola_qh vocolatakeslanguages = True vocolatakesunimacroactions = True