mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Fix MaryTTS filename extensions (#42228)
Co-authored-by: Brian Laferriere <BrianWithAHat@users.noreply.github.com>
This commit is contained in:
parent
536f1186b0
commit
3fa97f5fc0
@ -21,6 +21,8 @@ DEFAULT_VOICE = "cmu-slt-hsmm"
|
|||||||
DEFAULT_CODEC = "WAVE_FILE"
|
DEFAULT_CODEC = "WAVE_FILE"
|
||||||
DEFAULT_EFFECTS = {}
|
DEFAULT_EFFECTS = {}
|
||||||
|
|
||||||
|
MAP_MARYTTS_CODEC = {"WAVE_FILE": "wav", "AIFF_FILE": "aiff", "AU_FILE": "au"}
|
||||||
|
|
||||||
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
|
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
|
||||||
{
|
{
|
||||||
vol.Optional(CONF_HOST, default=DEFAULT_HOST): cv.string,
|
vol.Optional(CONF_HOST, default=DEFAULT_HOST): cv.string,
|
||||||
@ -81,5 +83,6 @@ class MaryTTSProvider(Provider):
|
|||||||
effects = options[CONF_EFFECT]
|
effects = options[CONF_EFFECT]
|
||||||
|
|
||||||
data = self._mary.speak(message, effects)
|
data = self._mary.speak(message, effects)
|
||||||
|
audiotype = MAP_MARYTTS_CODEC[self._mary.codec]
|
||||||
|
|
||||||
return self._mary.codec, data
|
return audiotype, data
|
||||||
|
Loading…
x
Reference in New Issue
Block a user