API
audibleAlerts.core.AudibleAlerts Class Reference
Inheritance diagram for audibleAlerts.core.AudibleAlerts:
Inheritance graph
Collaboration diagram for audibleAlerts.core.AudibleAlerts:
Collaboration graph

Public Member Functions

def enqueue_speech_request (self, sr)
 
def handle_speech_text (self, existing_property, new_message)
 
def handle_speech_request (self, existing_property, new_message)
 
def handle_reload_request (self, existing_property, new_message)
 
def handle_mute_toggle (self, existing_property, new_message)
 
def reaction_handler (self, new_message, element_name, transition, utterance_choices)
 
def preprocess (self, speech)
 
def handle_personality_switch (self, properties.IndiProperty prop, new_message)
 
def handle_soundboard_switch (self, properties.IndiProperty prop, new_message)
 
def load_personality (self, personality_name)
 
def setup (self)
 
def loop (self)
 

Public Attributes

 mute
 
 personality
 
 soundboard_sw_prop
 
 default_voice
 
 active_personality
 
 last_utterance_ts
 
 latch_transitions
 
 per_transition_cooldown_ts
 
 last_utterance_chosen
 

Static Public Attributes

 SwitchVector
 
 str
 
 bool
 
 float
 

Private Attributes

 _cb_handles
 
 _speech_requests
 

Detailed Description

Definition at line 35 of file core.py.

Member Function Documentation

◆ enqueue_speech_request()

def audibleAlerts.core.AudibleAlerts.enqueue_speech_request (   self,
  sr 
)

◆ handle_mute_toggle()

def audibleAlerts.core.AudibleAlerts.handle_mute_toggle (   self,
  existing_property,
  new_message 
)

Definition at line 80 of file core.py.

◆ handle_personality_switch()

def audibleAlerts.core.AudibleAlerts.handle_personality_switch (   self,
properties.IndiProperty  prop,
  new_message 
)

Definition at line 148 of file core.py.

◆ handle_reload_request()

def audibleAlerts.core.AudibleAlerts.handle_reload_request (   self,
  existing_property,
  new_message 
)

Definition at line 74 of file core.py.

◆ handle_soundboard_switch()

def audibleAlerts.core.AudibleAlerts.handle_soundboard_switch (   self,
properties.IndiProperty  prop,
  new_message 
)

Definition at line 163 of file core.py.

◆ handle_speech_request()

def audibleAlerts.core.AudibleAlerts.handle_speech_request (   self,
  existing_property,
  new_message 
)

Definition at line 64 of file core.py.

◆ handle_speech_text()

def audibleAlerts.core.AudibleAlerts.handle_speech_text (   self,
  existing_property,
  new_message 
)

Definition at line 57 of file core.py.

◆ load_personality()

def audibleAlerts.core.AudibleAlerts.load_personality (   self,
  personality_name 
)

◆ loop()

def audibleAlerts.core.AudibleAlerts.loop (   self)

Definition at line 284 of file core.py.

◆ preprocess()

def audibleAlerts.core.AudibleAlerts.preprocess (   self,
  speech 
)

Definition at line 128 of file core.py.

Referenced by audibleAlerts.core.AudibleAlerts.loop().

◆ reaction_handler()

def audibleAlerts.core.AudibleAlerts.reaction_handler (   self,
  new_message,
  element_name,
  transition,
  utterance_choices 
)

Definition at line 90 of file core.py.

◆ setup()

def audibleAlerts.core.AudibleAlerts.setup (   self)

Definition at line 224 of file core.py.

Member Data Documentation

◆ _cb_handles

audibleAlerts.core.AudibleAlerts._cb_handles
private

Definition at line 182 of file core.py.

Referenced by audibleAlerts.core.AudibleAlerts.load_personality().

◆ _speech_requests

audibleAlerts.core.AudibleAlerts._speech_requests
private

◆ active_personality

audibleAlerts.core.AudibleAlerts.active_personality

◆ bool

audibleAlerts.core.AudibleAlerts.bool
static

Definition at line 45 of file core.py.

◆ default_voice

audibleAlerts.core.AudibleAlerts.default_voice

Definition at line 198 of file core.py.

Referenced by audibleAlerts.core.AudibleAlerts.loop().

◆ float

audibleAlerts.core.AudibleAlerts.float
static

Definition at line 48 of file core.py.

Referenced by audibleAlerts.core.AudibleAlerts.preprocess().

◆ last_utterance_chosen

audibleAlerts.core.AudibleAlerts.last_utterance_chosen

Definition at line 298 of file core.py.

Referenced by audibleAlerts.core.AudibleAlerts.loop().

◆ last_utterance_ts

audibleAlerts.core.AudibleAlerts.last_utterance_ts

Definition at line 225 of file core.py.

Referenced by audibleAlerts.core.AudibleAlerts.loop().

◆ latch_transitions

audibleAlerts.core.AudibleAlerts.latch_transitions

Definition at line 226 of file core.py.

Referenced by audibleAlerts.core.AudibleAlerts.reaction_handler().

◆ mute

audibleAlerts.core.AudibleAlerts.mute

Definition at line 82 of file core.py.

Referenced by audibleAlerts.core.AudibleAlerts.loop().

◆ per_transition_cooldown_ts

audibleAlerts.core.AudibleAlerts.per_transition_cooldown_ts

Definition at line 227 of file core.py.

Referenced by audibleAlerts.core.AudibleAlerts.reaction_handler().

◆ personality

audibleAlerts.core.AudibleAlerts.personality

◆ soundboard_sw_prop

audibleAlerts.core.AudibleAlerts.soundboard_sw_prop

Definition at line 189 of file core.py.

◆ str

audibleAlerts.core.AudibleAlerts.str
static

Definition at line 41 of file core.py.

Referenced by audibleAlerts.core.AudibleAlerts.preprocess().

◆ SwitchVector

audibleAlerts.core.AudibleAlerts.SwitchVector
static

Definition at line 40 of file core.py.


The documentation for this class was generated from the following file: