41727469634d6f6e6b65793a31392e30332e32343a31373433
Browse files
app.py
CHANGED
@@ -1,13 +1,19 @@
|
|
|
|
|
|
|
|
1 |
import numpy as np
|
2 |
|
3 |
import streamlit as st
|
4 |
-
from
|
|
|
5 |
|
6 |
-
|
7 |
|
8 |
def main():
|
9 |
-
if
|
10 |
-
|
|
|
|
|
11 |
|
12 |
if __name__ == "__main__":
|
13 |
main()
|
|
|
1 |
+
# version - ArticMonkey:19.03.24:1743
|
2 |
+
|
3 |
+
|
4 |
import numpy as np
|
5 |
|
6 |
import streamlit as st
|
7 |
+
from audio2text.a2t import A2T
|
8 |
+
from audiorecorder import audiorecorder
|
9 |
|
10 |
+
audio = audiorecorder("Click to record", "Click to stop recording")
|
11 |
|
12 |
def main():
|
13 |
+
if len(audio) > 0:
|
14 |
+
a2t = A2T(audio)
|
15 |
+
text = a2t.predict()
|
16 |
+
st.write(text)
|
17 |
|
18 |
if __name__ == "__main__":
|
19 |
main()
|