The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
docs: fix the `ImportError` in `google_speech_to_text.ipynb` (#26522)
gbaian106fe2536c5a41
diff --git a/docs/docs/integrations/document_loaders/google_speech_to_text.ipynb b/docs/docs/integrations/document_loaders/google_speech_to_text.ipynbindex fd17cea4fd..7b23a06413 100644--- a/docs/docs/integrations/document_loaders/google_speech_to_text.ipynb+++ b/docs/docs/integrations/document_loaders/google_speech_to_text.ipynb@@ -6,7 +6,7 @@"source": ["# Google Speech-to-Text Audio Transcripts\n","\n",- "The `GoogleSpeechToTextLoader` allows to transcribe audio files with the [Google Cloud Speech-to-Text API](https://cloud.google.com/speech-to-text) and loads the transcribed text into documents.\n",+ "The `SpeechToTextLoader` allows to transcribe audio files with the [Google Cloud Speech-to-Text API](https://cloud.google.com/speech-to-text) and loads the transcribed text into documents.\n","\n","To use it, you should have the `google-cloud-speech` python package installed, and a Google Cloud project with the [Speech-to-Text API enabled](https://cloud.google.com/speech-to-text/v2/docs/transcribe-client-libraries#before_you_begin).\n","\n",@@ -41,7 +41,7 @@"source": ["## Example\n","\n",- "The `GoogleSpeechToTextLoader` must include the `project_id` and `file_path` arguments. Audio files can be specified as a Google Cloud Storage URI (`gs://...`) or a local file path.\n",+ "The `SpeechToTextLoader` must include the `project_id` and `file_path` arguments. Audio files can be specified as a Google Cloud Storage URI (`gs://...`) or a local file path.\n","\n","Only synchronous requests are supported by the loader, which has a [limit of 60 seconds or 10MB](https://cloud.google.com/speech-to-text/v2/docs/sync-recognize#:~:text=60%20seconds%20and/or%2010%20MB) per audio file."]@@ -52,13 +52,13 @@"metadata": {},"outputs": [],"source": [- "from langchain_google_community import GoogleSpeechToTextLoader\n",+ "from langchain_google_community import SpeechToTextLoader\n","\n","project_id = \"<PROJECT_ID>\"\n","file_path = \"gs://cloud-samples-data/speech/audio.flac\"\n","# or a local file path: file_path = \"./audio.wav\"\n","\n",- "loader = GoogleSpeechToTextLoader(project_id=project_id, file_path=file_path)\n",+ "loader = SpeechToTextLoader(project_id=project_id, file_path=file_path)\n","\n","docs = loader.load()"]@@ -152,7 +152,7 @@" RecognitionConfig,\n"," RecognitionFeatures,\n",")\n",- "from langchain_google_community import GoogleSpeechToTextLoader\n",+ "from langchain_google_community import SpeechToTextLoader\n","\n","project_id = \"<PROJECT_ID>\"\n","location = \"global\"\n",@@ -171,7 +171,7 @@" ),\n",")\n","\n",- "loader = GoogleSpeechToTextLoader(\n",+ "loader = SpeechToTextLoader(\n"," project_id=project_id,\n"," location=location,\n"," recognizer_id=recognizer_id,\n",