mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 04:07:08 +00:00
Move imports in baidu component (#27812)
This commit is contained in:
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…
x
Reference in New Issue
Block a user