API
 
Loading...
Searching...
No Matches
audibleAlerts.core.AudibleAlerts Class Reference
Inheritance diagram for audibleAlerts.core.AudibleAlerts:
Inheritance graph
Collaboration diagram for audibleAlerts.core.AudibleAlerts:
Collaboration graph

Public Member Functions

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

Public Attributes

 active_personality
 
 mute
 
 soundboard_sw_prop
 
 personality
 
 default_voice
 
 last_utterance_ts
 
 latch_transitions
 
 per_transition_cooldown_ts
 
 api_url
 
 last_utterance_chosen
 

Static Public Attributes

AudibleAlertsConfig config
 
Personality personality
 
properties soundboard_sw_prop = None
 
str default_voice = "coqui-tts:en_ljspeech"
 
list personalities = ['default', 'lab_mode',]
 
str active_personality = "default"
 
str api_url = "http://localhost:5500/"
 
bool mute = False
 
dict latch_transitions [Transition, constants.AnyIndiValue]
 
dict per_transition_cooldown_ts [Transition, float]
 
float last_utterance_ts = 0
 
Optional last_utterance_chosen = None
 

Protected Attributes

 _cb_handles
 
 _speech_requests
 

Static Protected Attributes

set _cb_handles
 
list _speech_requests [Union[SSML, Recording]]
 

Detailed Description

Definition at line 35 of file core.py.

Member Function Documentation

◆ enqueue_speech_request()

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

◆ handle_mute_toggle()

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

Definition at line 80 of file core.py.

◆ handle_personality_switch()

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

Definition at line 148 of file core.py.

◆ handle_reload_request()

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

Definition at line 74 of file core.py.

◆ handle_soundboard_switch()

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

Definition at line 163 of file core.py.

◆ handle_speech_request()

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

Definition at line 64 of file core.py.

◆ handle_speech_text()

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

Definition at line 57 of file core.py.

◆ load_personality()

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

Definition at line 175 of file core.py.

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

◆ loop()

audibleAlerts.core.AudibleAlerts.loop (   self)

Definition at line 284 of file core.py.

◆ preprocess()

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

Definition at line 128 of file core.py.

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

◆ reaction_handler()

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

Definition at line 90 of file core.py.

◆ setup()

audibleAlerts.core.AudibleAlerts.setup (   self)

Definition at line 224 of file core.py.

Member Data Documentation

◆ _cb_handles [1/2]

set audibleAlerts.core.AudibleAlerts._cb_handles
staticprotected

Definition at line 38 of file core.py.

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

◆ _cb_handles [2/2]

audibleAlerts.core.AudibleAlerts._cb_handles
protected

Definition at line 182 of file core.py.

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

◆ _speech_requests [1/2]

list audibleAlerts.core.AudibleAlerts._speech_requests [Union[SSML, Recording]]
staticprotected

◆ _speech_requests [2/2]

audibleAlerts.core.AudibleAlerts._speech_requests
protected

◆ active_personality [1/2]

str audibleAlerts.core.AudibleAlerts.active_personality = "default"
static

◆ active_personality [2/2]

audibleAlerts.core.AudibleAlerts.active_personality

◆ api_url [1/2]

str audibleAlerts.core.AudibleAlerts.api_url = "http://localhost:5500/"
static

Definition at line 44 of file core.py.

◆ api_url [2/2]

audibleAlerts.core.AudibleAlerts.api_url

Definition at line 291 of file core.py.

◆ config

◆ default_voice [1/2]

str audibleAlerts.core.AudibleAlerts.default_voice = "coqui-tts:en_ljspeech"
static

Definition at line 41 of file core.py.

◆ default_voice [2/2]

audibleAlerts.core.AudibleAlerts.default_voice

Definition at line 198 of file core.py.

◆ last_utterance_chosen [1/2]

Optional audibleAlerts.core.AudibleAlerts.last_utterance_chosen = None
static

Definition at line 49 of file core.py.

◆ last_utterance_chosen [2/2]

audibleAlerts.core.AudibleAlerts.last_utterance_chosen

Definition at line 298 of file core.py.

◆ last_utterance_ts [1/2]

float audibleAlerts.core.AudibleAlerts.last_utterance_ts = 0
static

Definition at line 48 of file core.py.

◆ last_utterance_ts [2/2]

audibleAlerts.core.AudibleAlerts.last_utterance_ts

Definition at line 225 of file core.py.

◆ latch_transitions [1/2]

dict audibleAlerts.core.AudibleAlerts.latch_transitions [Transition, constants.AnyIndiValue]
static

Definition at line 46 of file core.py.

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

◆ latch_transitions [2/2]

audibleAlerts.core.AudibleAlerts.latch_transitions

Definition at line 226 of file core.py.

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

◆ mute [1/2]

bool audibleAlerts.core.AudibleAlerts.mute = False
static

Definition at line 45 of file core.py.

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

◆ mute [2/2]

audibleAlerts.core.AudibleAlerts.mute

Definition at line 82 of file core.py.

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

◆ per_transition_cooldown_ts [1/2]

dict audibleAlerts.core.AudibleAlerts.per_transition_cooldown_ts [Transition, float]
static

Definition at line 47 of file core.py.

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

◆ per_transition_cooldown_ts [2/2]

audibleAlerts.core.AudibleAlerts.per_transition_cooldown_ts

Definition at line 227 of file core.py.

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

◆ personalities

list audibleAlerts.core.AudibleAlerts.personalities = ['default', 'lab_mode',]
static

Definition at line 42 of file core.py.

◆ personality [1/2]

Personality audibleAlerts.core.AudibleAlerts.personality
static

Definition at line 37 of file core.py.

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

◆ personality [2/2]

audibleAlerts.core.AudibleAlerts.personality

Definition at line 187 of file core.py.

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

◆ soundboard_sw_prop [1/2]

properties audibleAlerts.core.AudibleAlerts.soundboard_sw_prop = None
static

Definition at line 40 of file core.py.

◆ soundboard_sw_prop [2/2]

audibleAlerts.core.AudibleAlerts.soundboard_sw_prop

Definition at line 184 of file core.py.


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