Add readme in spanish

This commit is contained in:
El Mau 2022-04-19 23:14:24 -05:00
parent aac5b910a5
commit a29a7d0b81
3 changed files with 28 additions and 3 deletions

21
LEEME.md Normal file
View File

@ -0,0 +1,21 @@
# zaz-talk2me
Soporte para dictado en LibreOffice
**Importante**: Solo para Linux y LibreOffice instalado desde el sistema de paquetes de tu distribución.
Soporte para inglés y español.
Dependencias:
Ubuntu
```
sudo apt install xdotool
pip install --user vosk
```
Arch
```
sudo pacman -S xdotool
pip install --user vosk
```

Binary file not shown.

View File

@ -16,12 +16,16 @@ class ZazTalk2Me(unohelper.Base, XJobExecutor):
self.ctx = ctx
@app.run_in_thread
def trigger(self, args):
def _start(self):
path_ext = app.paths.from_id(ID_EXTENSION)
path_model = app.paths.join(path_ext, 'model')
nd.main_begin(vosk_model_dir=path_model, config_override=None)
app.info('Start')
return
def trigger(self, args):
if args=='start':
nd.main_begin(vosk_model_dir=path_model, config_override=None)
app.info('Start')
self._start()
elif args=='end':
nd.main_end()
app.info('End')