kotoba-whisper-v2.2 / pipeline /test_pipeline.py
asahi417's picture
init
429df62
raw
history blame
298 Bytes
from pprint import pprint
from transformers.pipelines import pipeline
test_audio = "/Users/asahiu/Desktop/speaker_diariazation_sample_1.wav"
pipe = pipeline(model="kotoba-tech/kotoba-whisper-v2.2", chunk_length_s=15, batch_size=16, trust_remote_code=True)
output = pipe(test_audio)
pprint(output)