Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,8 @@ def configure_microphone_input():
|
|
27 |
for i, device in enumerate(input_devices):
|
28 |
st.write(f"{i+1}. {device['name']}")
|
29 |
# Select the desired input device
|
30 |
-
device_index = st.number_input("Enter the index of the input device you want to use:", min_value=1, max_value=len(input_devices), value=1, step=1) - 1
|
|
|
31 |
|
32 |
# Configure the microphone input
|
33 |
stream = audio.open(format=pyaudio.paInt16,
|
|
|
27 |
for i, device in enumerate(input_devices):
|
28 |
st.write(f"{i+1}. {device['name']}")
|
29 |
# Select the desired input device
|
30 |
+
# device_index = st.number_input("Enter the index of the input device you want to use:", min_value=1, max_value=len(input_devices), value=1, step=1) - 1
|
31 |
+
device_index = st.number_input("Enter the index of the input device you want to use:", min_value=0, max_value=len(input_devices), value=0, step=1) - 1
|
32 |
|
33 |
# Configure the microphone input
|
34 |
stream = audio.open(format=pyaudio.paInt16,
|