24 lines
471 B
Python
Raw Normal View History

2016-02-13 17:06:36 -06:00
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