Please note that I do not provide the TimeStampProvider as part of the library because it may not be suitable for everyone who wants to use the libary. Instead, as mentioned, it is included in Example Code, and I recommend you adapt it or make something like it suitable to your needs....
Run whisper on example segment (using default params, whisper small) add --highlight_words True to visualise word timings in the .srt file. whisperx examples/sample01.wav Result using WhisperX with forced alignment to wav2vec2.0 large: sample01.mp4 Compare this to original whisper out the...