update paraformer online README

This commit is contained in:
haoneng.lhn 2023-09-25 16:56:41 +08:00
parent c45b899706
commit 111d50159d

View File

@ -34,7 +34,7 @@ inference_pipeline = pipeline(
import soundfile
speech, sample_rate = soundfile.read("example/asr_example.wav")
chunk_size = [0, 10, 5] #[5, 10, 5] 600ms, [8, 8, 4] 480ms
chunk_size = [0, 10, 5] #[0, 10, 5] 600ms, [0, 8, 4] 480ms
encoder_chunk_look_back = 4 #number of chunks to lookback for encoder self-attention
decoder_chunk_look_back = 1 #number of encoder chunks to lookback for decoder cross-attention
param_dict = {"cache": dict(), "is_final": False, "chunk_size": chunk_size,