* Add ATTR_PREFERRED_FORMAT to TTS for auto-converting audio * Move conversion into SpeechManager * Handle None case for expected_extension * Only use ATTR_AUDIO_OUTPUT * Prefer MP3 in pipelines * Automatically convert to mp3 on demand * Add preferred audio format * Break out preferred format * Add ATTR_BLOCKING to allow async fetching * Make a copy of supported options * Fix MaryTTS tests * Update ESPHome to use "wav" instead of "raw" * Clean up tests, remove blocking * Clean up rest of TTS tests * Fix ESPHome tests * More test coverage
71 lines
1.2 KiB
Text
71 lines
1.2 KiB
Text
# serializer version: 1
|
|
# name: test_get_tts_audio
|
|
list([
|
|
dict({
|
|
'data': dict({
|
|
'text': 'Hello world',
|
|
}),
|
|
'payload': None,
|
|
'type': 'synthesize',
|
|
}),
|
|
])
|
|
# ---
|
|
# name: test_get_tts_audio_different_formats
|
|
list([
|
|
dict({
|
|
'data': dict({
|
|
'text': 'Hello world',
|
|
}),
|
|
'payload': None,
|
|
'type': 'synthesize',
|
|
}),
|
|
])
|
|
# ---
|
|
# name: test_get_tts_audio_different_formats.1
|
|
list([
|
|
dict({
|
|
'data': dict({
|
|
'text': 'Hello world',
|
|
}),
|
|
'payload': None,
|
|
'type': 'synthesize',
|
|
}),
|
|
])
|
|
# ---
|
|
# name: test_get_tts_audio_mp3
|
|
list([
|
|
dict({
|
|
'data': dict({
|
|
'text': 'Hello world',
|
|
}),
|
|
'payload': None,
|
|
'type': 'synthesize',
|
|
}),
|
|
])
|
|
# ---
|
|
# name: test_get_tts_audio_raw
|
|
list([
|
|
dict({
|
|
'data': dict({
|
|
'text': 'Hello world',
|
|
}),
|
|
'payload': None,
|
|
'type': 'synthesize',
|
|
}),
|
|
])
|
|
# ---
|
|
# name: test_voice_speaker
|
|
list([
|
|
dict({
|
|
'data': dict({
|
|
'text': 'Hello world',
|
|
'voice': dict({
|
|
'name': 'voice1',
|
|
'speaker': 'speaker1',
|
|
}),
|
|
}),
|
|
'payload': None,
|
|
'type': 'synthesize',
|
|
}),
|
|
])
|
|
# ---
|