Toggle Menu
Prev Up Next

# `langchain_community.document_loaders.blob_loaders.youtube_audio`.YoutubeAudioLoader

class langchain_community.document_loaders.blob_loaders.youtube_audio.YoutubeAudioLoader(urls: List[str], save_dir: str)

  Load YouTube urls as audio file(s).

  Methods

  `__init__`(urls, save_dir) |
  `yield_blobs`() | Yield audio blobs for each url.

  Parameters

    - urls (List[str]) –

    - save_dir (str) –

  __init__(urls: List[str], save_dir: str)
    Parameters

      - urls (List[str]) –

      - save_dir (str) –

  yield_blobs() → Iterable[Blob]

    Yield audio blobs for each url.

    Return type

      Iterable[Blob]

# Examples using YoutubeAudioLoader

- Google

- set a flag to switch between local and remote parsing