Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -28,7 +28,7 @@ def configure_microphone_input():
|
|
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,
|
|
|
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 = 0 # 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,
|