Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,13 +1,16 @@
|
|
1 |
-
import numpy as np
|
2 |
-
import webrtcvad
|
3 |
-
import threading
|
4 |
-
import sounddevice as sd
|
5 |
import io
|
6 |
import base64
|
7 |
-
import
|
8 |
-
|
|
|
9 |
from gtts import gTTS
|
|
|
|
|
10 |
import speech_recognition as sr
|
|
|
|
|
|
|
|
|
11 |
|
12 |
if "history" not in st.session_state:
|
13 |
st.session_state.history = []
|
|
|
|
|
|
|
|
|
|
|
1 |
import io
|
2 |
import base64
|
3 |
+
import webrtcvad
|
4 |
+
import threading
|
5 |
+
import numpy as np
|
6 |
from gtts import gTTS
|
7 |
+
import streamlit as st
|
8 |
+
import sounddevice as sd
|
9 |
import speech_recognition as sr
|
10 |
+
from huggingface_hub import InferenceClient
|
11 |
+
|
12 |
+
devices = sd.query_devices()
|
13 |
+
print(devices)
|
14 |
|
15 |
if "history" not in st.session_state:
|
16 |
st.session_state.history = []
|