mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-15 22:44:36 +00:00
all: test 3.13 ci (#27197)
Co-authored-by: Bagatur <baskaryan@gmail.com> Co-authored-by: Bagatur <22008038+baskaryan@users.noreply.github.com>
This commit is contained in:
@@ -10,12 +10,12 @@ from langchain_core.tools import BaseTool
|
||||
from langchain_community.utilities.vertexai import get_client_info
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from google.cloud import texttospeech
|
||||
from google.cloud import texttospeech # type: ignore[attr-defined]
|
||||
|
||||
|
||||
def _import_google_cloud_texttospeech() -> Any:
|
||||
try:
|
||||
from google.cloud import texttospeech
|
||||
from google.cloud import texttospeech # type: ignore[attr-defined]
|
||||
except ImportError as e:
|
||||
raise ImportError(
|
||||
"Cannot import google.cloud.texttospeech, please install "
|
||||
@@ -42,7 +42,7 @@ def _encoding_file_extension_map(encoding: texttospeech.AudioEncoding) -> Option
|
||||
removal="1.0",
|
||||
alternative_import="langchain_google_community.TextToSpeechTool",
|
||||
)
|
||||
class GoogleCloudTextToSpeechTool(BaseTool):
|
||||
class GoogleCloudTextToSpeechTool(BaseTool): # type: ignore[override]
|
||||
"""Tool that queries the Google Cloud Text to Speech API.
|
||||
|
||||
In order to set this up, follow instructions at:
|
||||
|
Reference in New Issue
Block a user