rm comments
This commit is contained in:
parent
fb0714fdae
commit
7c8cbe06f9
@ -74,7 +74,7 @@ def save_audio_to_wav(audio, filename):
|
||||
def get_audio_duration(filename):
|
||||
"""Returns the duration of the audio file in seconds."""
|
||||
audio = AudioSegment.from_wav(filename)
|
||||
return len(audio) / 1000 # Convert milliseconds to seconds
|
||||
return len(audio) / 1000
|
||||
|
||||
def split_audio(filename, chunk_length_ms=30000):
|
||||
"""Splits an audio file into chunks."""
|
||||
|
Loading…
Reference in New Issue
Block a user