Spaces:
Runtime error
Runtime error
Update audio_processing.py
Browse files- audio_processing.py +1 -4
audio_processing.py
CHANGED
|
@@ -31,10 +31,7 @@ def get_audio_duration(audio_path: str, max_duration: float = 30.0) -> float:
|
|
| 31 |
result = subprocess.run(cmd, capture_output=True, text=True, check=True)
|
| 32 |
duration = float(result.stdout.strip())
|
| 33 |
|
| 34 |
-
|
| 35 |
-
raise ValueError(
|
| 36 |
-
f"Audio duration {duration:.2f}s exceeds maximum {max_duration}s"
|
| 37 |
-
)
|
| 38 |
|
| 39 |
return duration
|
| 40 |
|
|
|
|
| 31 |
result = subprocess.run(cmd, capture_output=True, text=True, check=True)
|
| 32 |
duration = float(result.stdout.strip())
|
| 33 |
|
| 34 |
+
|
|
|
|
|
|
|
|
|
|
| 35 |
|
| 36 |
return duration
|
| 37 |
|