salvius package

Submodules

salvius.communication module

class salvius.communication.ApiDriver(options, connection)[source]

Bases: zorg.driver.Driver

get_response(text)[source]
class salvius.communication.Conversation(options)[source]

Bases: zorg.adaptor.Adaptor

respond(text)[source]

salvius.hbridge module

class salvius.hbridge.HBridge(options, connection)[source]

Bases: zorg.driver.Driver

A h-bridge base class.

exception RelayException(value)[source]

Bases: Exception

class salvius.hbridge.RelayHBridge(options, connection)[source]

Bases: salvius.hbridge.HBridge

A relay h-bridge driver class.

rotate_clockwise()[source]

Turn the h-bridge on and set it to spin the motor clockwise.

rotate_counterclockwise()[source]

Turn the h-bridge on and set it to spin the motor counterclockwise.

turn_off()[source]

Turn the h-bridge off.

turn_relays_off_if_on()[source]

Turn each relay off only if it is on. This prevents unnecessary writes to relays that are already off.

class salvius.hbridge.ServoHBridge(options, connection)[source]

Bases: salvius.hbridge.HBridge

A servo h-bridge driver class.

rotate_clockwise()[source]

Turn the h-bridge on and set it to spin the motor clockwise.

rotate_counterclockwise()[source]

Turn the h-bridge on and set it to spin the motor counterclockwise.

turn_off()[source]

Turn the h-bridge off.

salvius.speech module

class salvius.speech.ApiDriver(options, connection)[source]

Bases: zorg.driver.Driver

get_words()[source]
start()[source]
stop()[source]
class salvius.speech.SpeechRecognition(options)[source]

Bases: zorg.adaptor.Adaptor

callback(recognizer, audio)[source]
connect()[source]
disconnect()[source]
start_listening()[source]

Start the listening process.

class salvius.speech.SpeechSynthesis(options, connection)[source]

Bases: zorg.driver.Driver

reply(text)[source]
start()[source]
stop()[source]

Module contents