karen.devices.Speaker
Speaker device to convert any text to speech send to the audio output device.
__init__(self, parent=None, callback=None)
special
Speaker Initialization
Parameters: |
|
---|
isRunning(self)
Identifies if the device is actively running.
Returns: |
|
---|
say(self, text)
Sends text to the festival executable to be translated and sent to the audio device.
Parameters: |
|
---|
Returns: |
|
---|
speak(self, httpRequest=None)
Accepts inbound commands from Brain and sends to standard "say()" function.
Parameters: |
|
---|
Returns: |
|
---|
start(self, httpRequest=None, useThreads=True)
Starts the speaker. Function provided for compatibility as speaker does not require a daemon.
Parameters: |
|
---|
Returns: |
|
---|
stop(self, httpRequest=None)
Stops the speaker. Function provided for compatibility as speaker does not require a daemon.
Parameters: |
|
---|
Returns: |
|
---|
wait(self, seconds=0)
Waits for any active speakers to complete before closing. Provided for compatibility as speaker does not requrie a daemon.
Parameters: |
|
---|
Returns: |
|
---|