Classes | |
| class | AudioService |
Functions | |
| def | create_service_descriptor (service_folder) |
| def | get_services (services_folder) |
| def | load_services (config, bus, path=None) |
Variables | |
| string | MAINMODULE = '__init__' |
| pulsectl = None | |
| def mycroft.audio.audioservice.create_service_descriptor | ( | service_folder | ) |
Prepares a descriptor that can be used together with imp.
Args:
service_folder: folder that shall be imported.
Returns:
Dict with import information
Definition at line 37 of file audio/audioservice.py.
| def mycroft.audio.audioservice.get_services | ( | services_folder | ) |
Load and initialize services from all subfolders.
Args:
services_folder: base folder to look for services in.
Returns:
Sorted list of audio services.
Definition at line 50 of file audio/audioservice.py.
| def mycroft.audio.audioservice.load_services | ( | config, | |
| bus, | |||
path = None |
|||
| ) |
Search though the service directory and load any services.
Args:
config: configuration dict for the audio backends.
bus: Mycroft messagebus
Returns:
List of started services.
Definition at line 88 of file audio/audioservice.py.
| string mycroft.audio.audioservice.MAINMODULE = '__init__' |
Definition at line 33 of file audio/audioservice.py.
| mycroft.audio.audioservice.pulsectl = None |
Definition at line 31 of file audio/audioservice.py.