File size: 375 Bytes
cab263c
 
 
4affef3
 
 
cab263c
 
4affef3
cab263c
4affef3
42b403c
cab263c
 
 
 
4affef3
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# version - ArticMonkey:19.03.24:1743


import numpy as np

import streamlit as st 
from audio2text.a2t import A2T
from audiorecorder import audiorecorder

audio = audiorecorder("Click to record", "Click to stop recording")

def main():
    if len(audio) > 0:
        a2t = A2T(audio)
        text = a2t.predict()
        st.write(text)

if __name__ == "__main__":
    main()