-
Download the whisper-tiny-en tflite model from here
-
Install requirements
pip install -r requirements.txt
- Transcribe with tflite model
from whisper_tflite import WhisperModel
model = WhisperModel("./whisper-tiny-en.tflite")
segments, _ = model.transcribe("audio.mp3")
for segment in segments:
print("[%.2fs -> %.2fs] %s" % (segment.start, segment.end, segment.text))
Most of the code is taken from faster-whisper