Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
|
@@ -85,7 +85,7 @@ def extract_word_level_features(audio_path):
|
|
| 85 |
"word": segment['word'].strip(),
|
| 86 |
"start": round(segment['start'], 2),
|
| 87 |
"end": round(segment['end'], 2),
|
| 88 |
-
"energy": round(rms_energy, 4)
|
| 89 |
})
|
| 90 |
return features_list
|
| 91 |
except Exception as e:
|
|
|
|
| 85 |
"word": segment['word'].strip(),
|
| 86 |
"start": round(segment['start'], 2),
|
| 87 |
"end": round(segment['end'], 2),
|
| 88 |
+
"energy": round(float(rms_energy), 4)
|
| 89 |
})
|
| 90 |
return features_list
|
| 91 |
except Exception as e:
|