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.
本站翻译于2026年5月3日,请放心食用🎉🎉🎉
TypeScript
使用 LangChain JavaScript 与 Open AI Whisper 音频文档加载器集成。
import { OpenAIWhisperAudio } from "@langchain/community/document_loaders/fs/openai_whisper_audio"; const filePath = "./src/document_loaders/example_data/test.mp3"; const loader = new OpenAIWhisperAudio(filePath, { transcriptionCreateParams: { language: "en", }, }); const docs = await loader.load(); console.log(docs);