-
Notifications
You must be signed in to change notification settings - Fork 1
simutils: speech
Author: ancient-sentinel - Last Updated: 5/6/2021
A module which provides helper classes for utilizing the NAO speech APIs.
See qiChat syntaxes and qiChatBuilder
See qiChat syntaxes and qiChatBuilder
This class represents a speech event which invokes a callback when a particular phrase is recognized.
-
is_subscribed() -> bool
- A method which returns a value indicating whether the speech event is subscribed. ReturnsTrue
if the event is registered, otherwiseFalse
. -
register(speech_service: SIMSpeech) -> bool
- A method which registers the speech event with the provided speech service. It returnsTrue
if the registration was successful, otherwiseFalse
. -
unregister() -> bool
- A method which unregisters the speech event from the speech service it is subscribed to. It returnsTrue
if the event was unregistered successfully, otherwiseFalse
. -
wait(timeout: float) -> qi.FutureState
- A method which waits for the speech event to occur. if a timeout is specified, the event subscription will be canceled after that period if it has not already occurred.
A class which represents an exception raised due to a speech event error.
-
message: str
- A property which stores the error message.