* Add wyoming integration with stt/tts * Forward config entry setup * Use SpeechToTextEntity * Add strings to config flow * Move connection into config flow * Add tests * On load/unload used platforms * Tweaks * Add unload test * Fix stt * Add missing file * Add test for no services * Improve coverage * Finish test coverage --------- Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
22 lines
587 B
Python
22 lines
587 B
Python
"""Tests for the Wyoming integration."""
|
|
from wyoming.info import AsrModel, AsrProgram, Attribution, Info
|
|
|
|
TEST_ATTR = Attribution(name="Test", url="http://www.test.com")
|
|
STT_INFO = Info(
|
|
asr=[
|
|
AsrProgram(
|
|
name="Test ASR",
|
|
installed=True,
|
|
attribution=TEST_ATTR,
|
|
models=[
|
|
AsrModel(
|
|
name="Test Model",
|
|
installed=True,
|
|
attribution=TEST_ATTR,
|
|
languages=["en-US"],
|
|
)
|
|
],
|
|
)
|
|
]
|
|
)
|
|
EMPTY_INFO = Info()
|