mirror of
https://github.com/home-assistant/core.git
synced 2025-08-11 08:35:15 +02:00
Move imports in baidu component (#27812)
This commit is contained in:
@@ -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"],
|
||||
|
Reference in New Issue
Block a user