Commit ed529e08 authored by IT18126884's avatar IT18126884

Add the audio file path

parent b7ddc469
......@@ -3,10 +3,10 @@ import os
from pydub import AudioSegment
from pydub.silence import split_on_silence
sound = AudioSegment.from_wav("chunk7.wav")
sound = AudioSegment.from_wav("C:/Users/Janitha Akalanka/PycharmProjects/English.wav")
chunks = split_on_silence(sound, min_silence_len=50, silence_thresh=sound.dBFS - 16, keep_silence=150)
chunk_folder_name = "splits_by_pauses"
chunk_folder_name = "C:/Users/Janitha Akalanka/PycharmProjects/splits_by_pauses"
# create folder to store chunks
if not os.path.isdir(chunk_folder_name):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment