Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
使用 LangChain Python 集成 Google 云文本转语音工具
Google Cloud 文本转语音使开发者能够合成自然流畅的语音,提供100+种声音选择,支持多种语言和变体。该服务应用了DeepMind在WaveNet领域的突破性研究成果,结合Google强大的神经网络技术,实现最高音质输出。 支持的语言包括英语、德语、波兰语、西班牙语、意大利语、法语、葡萄牙语和印地语。
Google Cloud Text-to-Speech API
!pip install -U langchain-google-community[texttospeech]
from langchain_google_community import TextToSpeechTool
langchain-community
langchain_community
from langchain_community.tools import GoogleCloudTextToSpeechTool
text_to_speak = "Hello world!" tts = GoogleCloudTextToSpeechTool() tts.name
speech_file = tts.run(text_to_speak)
官方原文:src/oss/python/integrations/tools/google_cloud_texttospeech.mdx · 非官方翻译,译文由 AI 生成,以英文原文为准。