freddyaboulton HF staff commited on
Commit
fcb6d65
1 Parent(s): d321d6e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -139,7 +139,9 @@ with gr.Blocks() as demo:
139
  mode="send-receive",
140
  modality="audio",
141
  )
142
- audio.stream(fn=ReplyOnPause(response), inputs=[audio], outputs=[audio], time_limit=60)
 
 
143
 
144
 
145
  demo.launch(ssr_mode=False)
 
139
  mode="send-receive",
140
  modality="audio",
141
  )
142
+ audio.stream(fn=ReplyOnPause(response,
143
+ output_sample_rate=OUT_RATE,
144
+ output_frame_size=480), inputs=[audio], outputs=[audio], time_limit=60)
145
 
146
 
147
  demo.launch(ssr_mode=False)