on1onmangoes commited on
Commit
c70960c
·
1 Parent(s): d614432

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -19,7 +19,7 @@ if audio:
19
  pipe = pipeline('automatic-speech-recognition',model="facebook/wav2vec2-base-960h")
20
  audio_segment= AudioSegment.from_file(audio)
21
  audio_segment.export("audio.wav", format="wav")
22
- output = pipe("audio.wav", chunk_length_s=100, stride_length_s=(40, 20))
23
  st.json(output)
24
  # stride_length_s is a tuple of the left and right stride length.
25
  # With only 1 number, both sides get the same stride, by default
 
19
  pipe = pipeline('automatic-speech-recognition',model="facebook/wav2vec2-base-960h")
20
  audio_segment= AudioSegment.from_file(audio)
21
  audio_segment.export("audio.wav", format="wav")
22
+ output = pipe("audio.wav", chunk_length_s=10, stride_length_s=(4, 2))
23
  st.json(output)
24
  # stride_length_s is a tuple of the left and right stride length.
25
  # With only 1 number, both sides get the same stride, by default