Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ pre_prompt_sent = False
|
|
13 |
|
14 |
def take_user_input():
|
15 |
r = sr.Recognizer()
|
16 |
-
with sd.InputStream(callback=lambda indata, frames, time, status: None):
|
17 |
with sr.Microphone() as source:
|
18 |
st.info('Escuchando...')
|
19 |
r.pause_threshold = 1
|
|
|
13 |
|
14 |
def take_user_input():
|
15 |
r = sr.Recognizer()
|
16 |
+
with sd.InputStream(device="1", callback=lambda indata, frames, time, status: None):
|
17 |
with sr.Microphone() as source:
|
18 |
st.info('Escuchando...')
|
19 |
r.pause_threshold = 1
|