CaptionModel#
- class langchain_experimental.video_captioning.models.CaptionModel(
- start_time: int,
- end_time: int,
- closed_caption: str,
Attributes
closed_captionend_timestart_timeMethods
__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)- Parameters:
start_time (int)
end_time (int)
closed_caption (str)
- __init__(
- start_time: int,
- end_time: int,
- closed_caption: str,
- Parameters:
start_time (int)
end_time (int)
closed_caption (str)
- Return type:
None
- add_subtitle_text(
- subtitle_text: str,
- Parameters:
subtitle_text (str)
- Return type:
- classmethod from_audio_model(
- audio_model: AudioModel,
- Parameters:
audio_model (AudioModel)
- Return type:
- classmethod from_srt(
- start_time: str,
- end_time: str,
- *args: Any,
- Parameters:
start_time (str)
end_time (str)
args (Any)
- Return type:
- classmethod from_video_model(
- video_model: VideoModel,
- Parameters:
video_model (VideoModel)
- Return type: