[Python] How to segment and transcribe an audio from a video into timestamped segments?

Discussão em 'Python' iniciado por Stack, Janeiro 27, 2025.

  1. Stack

    Stack Membro Participativo

    I want to segment a video transcript into chapters based on the content of each line of speech. The transcript would be used to generate a series of start and end timestamps for each chapter. This is similar to how YouTube now "auto-chapters" videos.

    Example .srt transcript:

    ...

    70
    00:02:53,640 --> 00:02:54,760
    All right, coming in at number five,

    71
    00:02:54,760 --> 00:02:57,640
    we have another habit that saves me around 15 minutes a day
    ...


    I have had minimal luck doing this with ChatGPT as it finds it difficult to both segment by topic and recollect start and end timestamps accurately. I am now exploring whether there are other options for doing this.

    I know topic modeling based on time series is possible with some python libraries. I have also read about text tiling as another option. What options are there for achieving an outcome like this?

    Note: The format above (.srt) is not necessary. It's just the idea that the input is a list of text-content with start and end timestamps.

    Continue reading...

Compartilhe esta Página