mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2025-08-25 17:39:23 +00:00
24 lines
471 B
Python
24 lines
471 B
Python
from base import Output
|
|
|
|
class SystemAccess (Output):
|
|
"""Supports System Access and System Access Mobile"""
|
|
|
|
name = "System Access"
|
|
lib32 = 'saapi32.dll'
|
|
priority = 99
|
|
|
|
def braille(self, text, **options):
|
|
self.lib.SA_BrlShowTextW(unicode(text))
|
|
|
|
def speak(self, text, interrupt=False):
|
|
if self.is_active():
|
|
self.dll.SA_SayW(unicode(text))
|
|
|
|
def is_active(self):
|
|
try:
|
|
return self.dll.SA_IsRunning()
|
|
except:
|
|
return False
|
|
|
|
output_class = SystemAccess
|