langchain_experimental.video_captioning.models.CaptionModel

class langchain_experimental.video_captioning.models.CaptionModel(start_time: int, end_time: int, closed_caption: str)[source]

属性

closed_caption

end_time

start_time

方法

__init__(start_time, end_time, closed_caption)

add_subtitle_text(subtitle_text)

from_audio_model(audio_model)

from_srt(start_time, end_time, *args)

from_video_model(video_model)

to_srt_entry(index)

参数
  • start_time (int) –

  • end_time (int) –

  • closed_caption (str) –

__init__(start_time: int, end_time: int, closed_caption: str) None[source]
参数
  • start_time (int) –

  • end_time (int) –

  • closed_caption (str) –

返回类型

None

add_subtitle_text(subtitle_text: str) CaptionModel[source]
参数

subtitle_text (str) –

返回类型

CaptionModel

classmethod from_audio_model(audio_model: AudioModel) CaptionModel[source]
参数

audio_model (AudioModel) –

返回类型

CaptionModel

classmethod from_srt(start_time: str, end_time: str, *args: Any) BaseModel
参数
  • start_time (str) –

  • end_time (str) –

  • args (Any) –

返回类型

BaseModel

classmethod from_video_model(video_model: VideoModel) CaptionModel[source]
参数

video_model (VideoModel) –

返回类型

CaptionModel

to_srt_entry(index: int) str[source]
参数

index (int) –

返回类型

str