File size: 587 Bytes
4f38470 429df62 4f38470 429df62 |
1 2 3 4 5 6 7 8 9 10 11 12 |
"""wget https://huggingface.co/kotoba-tech/kotoba-whisper-v2.2/resolve/main/sample_audio/sample_diarization_japanese.mp3"""
from pprint import pprint
from transformers.pipelines import pipeline
pipe = pipeline(model="kotoba-tech/kotoba-whisper-v2.2", chunk_length_s=None, batch_size=16, trust_remote_code=True)
output = pipe("sample_diarization_japanese.mp3")
pprint(output)
pipe = pipeline(model="kotoba-tech/kotoba-whisper-v2.2", chunk_length_s=None, batch_size=16, trust_remote_code=True, return_unique_speaker=False)
output = pipe("sample_diarization_japanese.mp3")
pprint(output)
|