YoutubeAudioLoader and OpenAIWhisperParser - can they also return timestamps #10356
Replies: 1 comment 4 replies
-
🤖 Hello, Yes, it is possible to modify the However, in the current implementation, the start time and duration are not included in the final transcript. The line To include the timestamps, you can modify this line to include the start time and duration. Here's an example of how you can do this: transcript = [(t["start"], t["duration"], t["text"]) for t in transcript_pieces] This will return a list of tuples, where each tuple contains the start time, duration, and text of a segment. If you want to format this in a different way, you can adjust the code accordingly. Please note that this change will affect the output format of the I hope this helps! If you have any other questions, feel free to ask. Best, SourcesThis response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. If you want to continue the conversation, start your reply with @dosu-bot. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
The YoutubeAudioLoader and OpenAIWhisperParser together return the transcipt text for a Youtube video link.
Is there any way to also get the timestamps for the transcript? In order to best work with the video the timestamps are also needed
Beta Was this translation helpful? Give feedback.
All reactions