naicoi commited on
Commit
214ba1c
Β·
verified Β·
1 Parent(s): 6637fc3

Update audio_processing.py

Browse files
Files changed (1) hide show
  1. 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
- if duration > max_duration:
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