openvpi / audio-slicer Goto Github PK
View Code? Open in Web Editor NEWPython script that slices audio with silence detection
License: MIT License
Python script that slices audio with silence detection
License: MIT License
if not os.path.exists(out):
os.makedirs(out)
您看是否应该修改为这个,不然若args.out为None值时os.path.exists会报错。
Hi, I implemented audio segmentation with your code and it works great. In the mean time, I also want to generate a list of chunks of silence part which is rejected here. Is there any way I can achieve this?
I've been trying to use audio-slicer on a bunch of 30 to 60 second files, and in the output, a lot of the files are not at the min_length at all, many are under a second each. My min_length is set to 5000 (default). I also tried 10000 and 15000, doesn't seem to change anything.
in Slicer.slice:
if samples.shape[0] <= self.min_length:
return [waveform]
The left part is the length of sample and the right part is the length of frame.
Traceback (most recent call last):
File "/Users/dzp/Downloads/audio-slicer/slicer-gui.py", line 5, in
from PySide6 import QtCore
ModuleNotFoundError: No module named 'PySide6'
is this possible to return the offset and lengths of the silence parts?
Thanks for this tool! It really benefits me a lot.
However, there is a little bit problem here when use a batch program to traverse the result set for STT I found that the file names of the results are not following lexicographical order.
I hope to revise slicer2.py
Change Line 182 to
soundfile.write(os.path.join(out, f'%s_%05d.wav' % (os.path.basename(args.audio).rsplit('.', maxsplit=1)[0], i)), chunk, sr)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.