Update app.py
Browse files
app.py
CHANGED
|
@@ -30,8 +30,10 @@ from pydub import AudioSegment
|
|
| 30 |
|
| 31 |
def read_as_single_channel_16k(audio_file, def_sr=16000, verbose=True, aim_second=None):
|
| 32 |
assert os.path.exists(audio_file)
|
| 33 |
-
|
|
|
|
| 34 |
file_extension = os.path.splitext(audio_file)[1].lower()
|
|
|
|
| 35 |
|
| 36 |
if file_extension == ".mp3":
|
| 37 |
data, origin_sr = librosa.load(audio_file, sr=None)
|
|
|
|
| 30 |
|
| 31 |
def read_as_single_channel_16k(audio_file, def_sr=16000, verbose=True, aim_second=None):
|
| 32 |
assert os.path.exists(audio_file)
|
| 33 |
+
st.markdown(os.path.exists(audio_file))
|
| 34 |
+
|
| 35 |
file_extension = os.path.splitext(audio_file)[1].lower()
|
| 36 |
+
st.markdown(file_extension)
|
| 37 |
|
| 38 |
if file_extension == ".mp3":
|
| 39 |
data, origin_sr = librosa.load(audio_file, sr=None)
|