Mpavan45 commited on
Commit
4bd759c
·
verified ·
1 Parent(s): 0a7f37d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -87,12 +87,10 @@ class AudioProcessor:
87
  ctx = webrtc_streamer(
88
  key="audio-recorder",
89
  mode=WebRtcMode.SENDONLY,
90
- audio=True,
91
- video=False,
92
  rtc_configuration=RTC_CONFIGURATION,
93
  media_stream_constraints={"audio": True, "video": False},
 
94
  )
95
-
96
  if ctx.audio_processor:
97
  if st.button("Stop and Transcribe Recording"):
98
  if ctx.audio_processor.audio_buffer:
 
87
  ctx = webrtc_streamer(
88
  key="audio-recorder",
89
  mode=WebRtcMode.SENDONLY,
 
 
90
  rtc_configuration=RTC_CONFIGURATION,
91
  media_stream_constraints={"audio": True, "video": False},
92
+ audio_processor_factory=AudioProcessor,
93
  )
 
94
  if ctx.audio_processor:
95
  if st.button("Stop and Transcribe Recording"):
96
  if ctx.audio_processor.audio_buffer: