You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# I am currently building an interface using streamlit for audio anotation to manually chunk a bunch of audio filesaudio_path=os.path.join(selected_directory, selected_audio_file)
audio=AudioSegment.from_file(audio_path, format="mp3")
audio_file=open(audio_path, 'rb')
audio_bytes=audio_file.read()
# here i am using streamlit to play the audio to see what it sounds likest.audio(audio_bytes, format='audio/mp3') # this works just fine.# the issue starts from heresegment=audio[start_time:end_time]
chunks=split_on_silence(segment, min_silence_len=min_silence_len, silence_thresh=silence_thresh, keep_silence=keep_silence)
Expected behavior
I should be able to play the chunked audios
Actual behavior
None of the chunked audios are playable
System configuration
Python version: 3.11
Pydub version: 0.25.1
ffmpeg or avlib?:
ffmpeg/avlib version:
Is there an audio file you can include to help us reproduce?
Sorry but I am not allowed to share the audio.
The text was updated successfully, but these errors were encountered:
Expected behavior
I should be able to play the chunked audios
Actual behavior
None of the chunked audios are playable
System configuration
Is there an audio file you can include to help us reproduce?
Sorry but I am not allowed to share the audio.
The text was updated successfully, but these errors were encountered: