diff --git a/stt_test.py b/stt_test.py index 773880d..730ce67 100644 --- a/stt_test.py +++ b/stt_test.py @@ -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."""