on1onmangoes commited on
Commit
fc9e91e
1 Parent(s): 30b0c62

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -4
app.py CHANGED
@@ -20,11 +20,14 @@ if audio:
20
  # stride_length_s is a tuple of the left and right stride length.
21
  # With only 1 number, both sides get the same stride, by default
22
  # the stride_length on one side is 1/6th of the chunk_length_s
23
- output = pipe(audio, chunk_length_s=10, stride_length_s=(4, 2))
 
 
 
24
  # st.json(output)
25
- # audio_segment= AudioSegment.from_file(audio)
26
- # asr = pipeline('automatic-speech-recognition')
27
- # asr_out = asr (audio_segment)
28
  # st.json(asr_out)
29
 
30
 
 
20
  # stride_length_s is a tuple of the left and right stride length.
21
  # With only 1 number, both sides get the same stride, by default
22
  # the stride_length on one side is 1/6th of the chunk_length_s
23
+ audio_segment= AudioSegment.from_file(audio)
24
+ output = pipe(audio_segment, chunk_length_s=10, stride_length_s=(4, 2))
25
+
26
+
27
  # st.json(output)
28
+
29
+ # asr = pipeline('automatic-speech-recognition')
30
+ # asr_out = asr (audio_segment)
31
  # st.json(asr_out)
32
 
33