Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
import streamlit as st
|
2 |
-
import sounddevice as sd
|
3 |
import numpy as np
|
4 |
import wavio
|
5 |
import speech_recognition as sr
|
@@ -12,8 +12,8 @@ fs = 44100 # Abtastrate
|
|
12 |
|
13 |
if st.button("Aufnahme starten"):
|
14 |
st.write("Aufnahme läuft...")
|
15 |
-
recording = sd.rec(int(duration * fs), samplerate=fs, channels=2)
|
16 |
-
sd.wait() # Aufnahme beenden
|
17 |
|
18 |
# Speichern der Aufnahme
|
19 |
wavio.write("aufnahme.wav", recording, fs, sampwidth=2)
|
|
|
1 |
import streamlit as st
|
2 |
+
#import sounddevice as sd
|
3 |
import numpy as np
|
4 |
import wavio
|
5 |
import speech_recognition as sr
|
|
|
12 |
|
13 |
if st.button("Aufnahme starten"):
|
14 |
st.write("Aufnahme läuft...")
|
15 |
+
#recording = sd.rec(int(duration * fs), samplerate=fs, channels=2)
|
16 |
+
#sd.wait() # Aufnahme beenden
|
17 |
|
18 |
# Speichern der Aufnahme
|
19 |
wavio.write("aufnahme.wav", recording, fs, sampwidth=2)
|