zendalona / lios

Linux-intelligent-ocr-solution
GNU General Public License v3.0
134 stars 33 forks source link

Avoid requiring speech-dispatcher #27

Closed sthibaul closed 1 year ago

sthibaul commented 1 year ago

On first launch, test = speech.Speech() would require installing speech-dispatcher, otherwise it raises an exception. Handling the exception as "disable speech support" allows not requiring installing speech-dispatcher.

Fixes #26

Nalin-x-Linux commented 1 year ago

I agree with your idea. But we have to remove the dependency from main.py and speech.py too.

sthibaul commented 1 year ago

I agree with your idea. But we have to remove the dependency from main.py and speech.py too.

Those are only called when explicitly requesting speech, so it's expected that we get exceptions in such a case.

Nalin-x-Linux commented 1 year ago

Okay. We will fix it later.