Toggle Menu
Prev Up Next

# `langchain_community.document_loaders.assemblyai`.TranscriptFormat

class langchain_community.document_loaders.assemblyai.TranscriptFormat(value)

  Transcript format to use for the document loader.

  TEXT = 'text'

    One document with the transcription text

  SENTENCES = 'sentences'

    Multiple documents, splits the transcription by each sentence

  PARAGRAPHS = 'paragraphs'

    Multiple documents, splits the transcription by each paragraph

  SUBTITLES_SRT = 'subtitles_srt'

    One document with the transcript exported in SRT subtitles format

  SUBTITLES_VTT = 'subtitles_vtt'

    One document with the transcript exported in VTT subtitles format

# Examples using TranscriptFormat

- or a local file path: audio_file = “./nbc.mp3”