This commit is contained in:
Eugene Yurtsev
2024-02-28 17:27:29 -05:00
parent e9768c2ffc
commit 368abe1106

View File

@@ -57,7 +57,7 @@ def test_azure_speech_load_key_region_auto_detect_languages() -> None:
region=SPEECH_SERVICE_REGION,
auto_detect_languages=["zh-CN", "en-US"],
)
documents = loader.lazy_load()
documents = loader.load()
assert "what" in documents[0].page_content.lower()
@@ -68,7 +68,7 @@ def test_azure_speech_load_key_region_language() -> None:
region=SPEECH_SERVICE_REGION,
speech_recognition_language="en-US",
)
documents = loader.lazy_load()
documents = loader.load()
assert "what" in documents[0].page_content.lower()
@@ -76,7 +76,7 @@ def test_azure_speech_load_key_region() -> None:
loader = _AzureAISpeechLoader(
_get_audio_file_path(), api_key=SPEECH_SERVICE_KEY, region=SPEECH_SERVICE_REGION
)
documents = loader.lazy_load()
documents = loader.load()
assert "what" in documents[0].page_content.lower()