Move imports in baidu component (#27812)
parent
54ef96e79a
commit
9d583ad9f9
|
@ -1,6 +1,7 @@
|
|||
"""Support for Baidu speech service."""
|
||||
import logging
|
||||
|
||||
from aip import AipSpeech
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components.tts import CONF_LANG, PLATFORM_SCHEMA, Provider
|
||||
|
@ -106,7 +107,6 @@ class BaiduTTSProvider(Provider):
|
|||
|
||||
def get_tts_audio(self, message, language, options=None):
|
||||
"""Load TTS from BaiduTTS."""
|
||||
from aip import AipSpeech
|
||||
|
||||
aip_speech = AipSpeech(
|
||||
self._app_data["appid"],
|
||||
|
|
Loading…
Reference in New Issue