Views
No views yet
| STT | Model | Test-Clean | Test-Other | Avg. |
|---|---|---|---|---|
| 1 | ChunkFormer | 2.69 | 6.91 | 4.80 |
| 2 | Efficient Conformer | 2.71 | 6.95 | 4.83 |
| 3 | Conformer | 2.77 | 6.93 | 4.85 |
| 4 | Squeezeformer | 2.87 | 7.16 | 5.02 |
pip install chunkformer1git clone https://github.com/khanld/chunkformer.git
2cd chunkformer
3pip install -e .1from chunkformer import ChunkFormerModel
2
3# Load the English model from Hugging Face
4model = ChunkFormerModel.from_pretrained("khanhld/chunkformer-large-en-libri-960h")
5
6# For single long-form audio transcription
7transcription = model.endless_decode(
8 audio_path="path/to/long_audio.wav",
9 chunk_size=64,
10 left_context_size=128,
11 right_context_size=128,
12 total_batch_duration=14400, # in seconds
13 return_timestamps=True
14)
15print(transcription)
16
17# For batch processing of multiple audio files
18audio_files = ["audio1.wav", "audio2.wav", "audio3.wav"]
19transcriptions = model.batch_decode(
20 audio_paths=audio_files,
21 chunk_size=64,
22 left_context_size=128,
23 right_context_size=128,
24 total_batch_duration=1800 # Total batch duration in seconds
25)
26
27for i, transcription in enumerate(transcriptions):
28 print(f"Audio {i+1}: {transcription}")1chunkformer-decode \
2 --model_checkpoint khanhld/chunkformer-large-en-libri-960h \
3 --long_form_audio path/to/audio.wav \
4 --total_batch_duration 14400 \
5 --chunk_size 64 \
6 --left_context_size 128 \
7 --right_context_size 128[00:00:01.200] - [00:00:02.400]: this is a transcription example
[00:00:02.500] - [00:00:03.700]: testing the long-form audio1@INPROCEEDINGS{10888640,
2 author={Le, Khanh and Ho, Tuan Vu and Tran, Dung and Chau, Duc Thanh},
3 booktitle={ICASSP 2025 - 2025 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP)},
4 title={ChunkFormer: Masked Chunking Conformer For Long-Form Speech Transcription},
5 year={2025},
6 volume={},
7 number={},
8 pages={1-5},
9 keywords={Scalability;Memory management;Graphics processing units;Signal processing;Performance gain;Hardware;Resource management;Speech processing;Standards;Context modeling;chunkformer;masked batch;long-form transcription},
10 doi={10.1109/ICASSP49660.2025.10888640}}
11}