ovos-core audio daemon client
Project description
ovos-audio
The "mouth" of the OVOS assistant!
Handles TTS generation and sounds playback
Install
pip install ovos-audio[extras]
to install this package and the default
plugins.
Without extras
, you will also need to manually install,
and possibly configure TTS modules as described below.
Configuration
under mycroft.conf
{
// Text to Speech parameters
"tts": {
"module": "ovos-tts-plugin-server",
"fallback_module": "ovos-tts-plugin-mimic",
"ovos-tts-plugin-mimic": {
"voice": "ap"
}
},
// File locations of sounds to play for system events
"sounds": {
"start_listening": "snd/start_listening.wav",
"end_listening": "snd/end_listening.wav",
"acknowledge": "snd/acknowledge.mp3",
"error": "snd/error.mp3"
},
// Mechanism used to play WAV audio files
"play_wav_cmdline": "paplay %1 --stream-name=mycroft-voice",
// Mechanism used to play MP3 audio files
"play_mp3_cmdline": "mpg123 %1",
// Mechanism used to play OGG audio files
"play_ogg_cmdline": "ogg123 -q %1"
}
Using Legacy AudioService
The legacy audio service supports audio playback via the old mycroft api (@mycroft @ovos)
by default OCP acts as a translation layer for this api and no action is needed, but if you want to disable ocp this api remains available
NOTE: once ovos-media is released OCP and this api will be disabled by default and deprecated!
{
"enable_old_audioservice": true,
"disable_ocp": true,
"Audio": {
"default-backend": "vlc",
"backends": {
"simple": {
"type": "ovos_audio_simple",
"active": true
},
"vlc": {
"type": "ovos_vlc",
"active": true
}
}
}
},
}
legacy plugins:
OCP technical details:
- OCP was developed for mycroft-core under this legacy system
- OCP will pose as a legacy plugin and translate the received bus events to the OCP api
- OCP is always the default audio plugin, unless you set
"disable_ocp": true
in config - OCP uses the legacy api internally, to delegate playback when GUI is not available (or configured to do so)
- this does NOT bring support for old Mycroft CommonPlay skills, that is related to skills service not ovos-audio
- this brings support for OCP skills to OVOS until ovos-media is finished
- ovos-media will fully replace OCP in ovos-audio 0.2.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for ovos_audio-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0cf4afc00a79fb3adb45e025d99fd3f7fcacf40903f19e24c8611efdadb0dd18 |
|
MD5 | 1ca7ab550895409843b2d6d1e116c0a8 |
|
BLAKE2b-256 | e0ab4dca124e81c02d7059e2a272cc6d60c5365d3184b2a2e49a5bb73e107c65 |