rm comments

This commit is contained in:
Christian Rute 2025-01-06 18:22:54 +01:00
parent fb0714fdae
commit 7c8cbe06f9

View File

@ -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."""