CineAI commited on
Commit
cab263c
1 Parent(s): 5c96973

41727469634d6f6e6b65793a31392e30332e32343a31373433

Browse files
Files changed (1) hide show
  1. app.py +10 -4
app.py CHANGED
@@ -1,13 +1,19 @@
 
 
 
1
  import numpy as np
2
 
3
  import streamlit as st
4
- from st_audiorec import st_audiorec
 
5
 
6
- wav_audio_data = st_audiorec()
7
 
8
  def main():
9
- if wav_audio_data is not None:
10
- pass
 
 
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()