Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,11 @@
|
|
|
|
1 |
import streamlit as st
|
2 |
import speech_recognition as sr
|
3 |
import os
|
4 |
import tempfile
|
5 |
import librosa
|
6 |
import soundfile as sf
|
|
|
7 |
def convert_to_wav(audio_file):
|
8 |
# Load the audio file
|
9 |
y, sr = librosa.load(audio_file, sr=None)
|
|
|
1 |
+
import numpy as np
|
2 |
import streamlit as st
|
3 |
import speech_recognition as sr
|
4 |
import os
|
5 |
import tempfile
|
6 |
import librosa
|
7 |
import soundfile as sf
|
8 |
+
|
9 |
def convert_to_wav(audio_file):
|
10 |
# Load the audio file
|
11 |
y, sr = librosa.load(audio_file, sr=None)
|