finish remove unneeded returns, import debug to everything, add header
This commit is contained in:
@ -1,7 +1,12 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Fenrir TTY screen reader
|
||||
# By Chrys, Storm Dragon, and contributers.
|
||||
# Espeak driver
|
||||
|
||||
from core import debug
|
||||
|
||||
class driver():
|
||||
def __init__(self ):
|
||||
self._es = None
|
||||
|
@ -1,7 +1,12 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Fenrir TTY screen reader
|
||||
# By Chrys, Storm Dragon, and contributers.
|
||||
# generic driver
|
||||
|
||||
from core import debug
|
||||
|
||||
class driver():
|
||||
def __init__(self ):
|
||||
pass
|
||||
|
@ -1,7 +1,12 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Fenrir TTY screen reader
|
||||
# By Chrys, Storm Dragon, and contributers.
|
||||
# speech-dispatcher driver
|
||||
|
||||
from core import debug
|
||||
|
||||
class driver():
|
||||
def __init__(self ):
|
||||
self._sd = None
|
||||
@ -14,14 +19,14 @@ class driver():
|
||||
except:
|
||||
self._initialized = False
|
||||
def initialize(self, environment):
|
||||
return environment
|
||||
pass
|
||||
def shutdown(self, environment):
|
||||
if not self._isInitialized:
|
||||
return environment
|
||||
return
|
||||
self._isInitialized = False
|
||||
self.cancel()
|
||||
self._sd.close()
|
||||
return environment
|
||||
return
|
||||
|
||||
def speak(self,text, queueable=True):
|
||||
if not self._isInitialized:
|
||||
|
Reference in New Issue
Block a user