Spaces:
Sleeping
Sleeping
Commit
·
e09db0a
1
Parent(s):
544503f
up
Browse files
app.py
CHANGED
|
@@ -4,6 +4,7 @@ os.system("sudo apt-get update")
|
|
| 4 |
os.system("apt install libasound2-dev portaudio19-dev libportaudio2 libportaudiocpp0 ffmpeg")
|
| 5 |
# import sounddevice as sd
|
| 6 |
import speech_recognition as sr
|
|
|
|
| 7 |
def translate(audio_path:str,lang:str):
|
| 8 |
|
| 9 |
|
|
|
|
| 4 |
os.system("apt install libasound2-dev portaudio19-dev libportaudio2 libportaudiocpp0 ffmpeg")
|
| 5 |
# import sounddevice as sd
|
| 6 |
import speech_recognition as sr
|
| 7 |
+
recognizer = sr.Recognizer()
|
| 8 |
def translate(audio_path:str,lang:str):
|
| 9 |
|
| 10 |
|