pydub
NumPy
Our great sponsors
pydub | NumPy | |
---|---|---|
25 | 272 | |
8,262 | 26,083 | |
- | 2.1% | |
0.0 | 10.0 | |
3 days ago | 7 days ago | |
Python | Python | |
MIT License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
pydub
- Looking for help with a winamp project please.
-
ChatGPT and Whisper APIs
I doubt it will matter if you're breaking up mid sentence if you pass in the previous as a prompt and split words. This is how Whisper does it internally.
It's not absolutely perfect, but splitting on the word boundary is one line of code with the same package in their docs: https://github.com/jiaaro/pydub/blob/master/API.markdown#sil...
25MB is also a lot. That's 30 minutes to an hour on MP3 at reasonable compression. A 2 hour movie would have three splits.
-
FFmpeg 6.0
Even given an option it can be difficult to find the corresponding documentation, if only because of the many different submodules and encoders and decoders and filters that have o-so-slightly different options. That said, I've just switched from pydub to ffmpeg-python (due to memory issues of the former[1]) and judging from the Jupiter notebook[2] it seems a much more intuitive method of constructing ffmpeg pipelines.
[1] https://github.com/jiaaro/pydub/issues/135
[2] https://github.com/kkroening/ffmpeg-python/tree/master/examp...
-
Download & Trim MP3 from Youtube with Python
With the file downloaded, we're now going to arbitrarily slice it locally (you might have considered wheter it is possible to simply download a clip from youtube; all reliable methods I've found will essentially boil down to downloading the whole and then editing locally). For that we'll use the pydub library:
-
I made a cross-platform command-line app called maestro to play music!
Uses https://github.com/cheofusi/just_playback to play sound. It's actually surprising how hard it was to find a cross-platform Python module to play sound that doesn't require an external dependency like ffmpeg. Even then, modules like https://github.com/jiaaro/pydub don't support features like seeking/scrubbing, which was a must-have for my project.
- What library can be used to cut a mp3 by a certain time segment
-
Removing sections of video that matches a certain frame.
If there isn't sound during the black screen you can use the pydub module's pysilence.detect_silence() method to detect the start and end of video silence. And use a video editing module such as MoviePy to remove those sections.
-
Looking for an audio/music lib
At the moment Pydub looks like the closest match, but if it requires an ffmpeg install it's going to be a problem for pyinstaller building .exes/.apps. Same for some PortAudio wrappers I've found.
-
My first impressions of Pedalboard
Oh, there are plenty of people like me with elaborate systems to do manipulation of audio as numpy arrays, but in terms of modules that people use, the top module for audio processing is probably https://github.com/jiaaro/pydub, which has its own interface and then there are a couple of wrappers for ffmpeg and libav, also not numpy.
-
2021 Apr 5 Stickied ππππππππ thread - Boot problems? Display problems? Networking problems? Need ideas? Get help with these and other questions! π³πΆπΆπ² π―π¬πΉπ¬ ππ°πΉπΊπ»
I'm working on a project that will have the pi download some snippets of audio from dropbox then stitch them together by crossfading them in and out to create a longer track and maybe also add some synth lines then reupload to dropbox. I've looked at some frameworks that could help like the pydub and ffmpeg for audio and dropbox-uploader. Wondering if there are other frameworks out there that might be better suited. Would prefer Java but not opposed to Python. Also if there are any relevant precedents/projects and tutorials please lmk. Thanks!
NumPy
-
Dot vs Matrix vs Element-wise multiplication in PyTorch
In NumPy with @, dot() or matmul():
-
Element-wise vs Matrix vs Dot multiplication
In NumPy with * or multiply(). ` or multiply()` can multiply 0D or more D arrays by element-wise multiplication.
- JSON dans les projets data science : Trucs & Astuces
-
JSON in data science projects: tips & tricks
Data science projects often use numpy. However, numpy objects are not JSON-serializable and therefore require conversion to standard python objects in order to be saved:
-
Introducing Flama for Robust Machine Learning APIs
numpy: A library for scientific computing in Python
-
Why do all the popular projects use relative imports in __init__ files if PEP 8 recommends absolute?
I was looking at all the big projects like numpy, pytorch, flask, etc.
-
NumPy 2.0 development status & announcements: major C-API and Python API cleanup
I wish the NumPy devs would more thoroughly consider adding full fluent API support, e.g. x.sqrt().ceil(). [Issue #24081]
-
Beginning Python: Project Management With PDM
A majority of software in the modern world is built upon various third party packages. These packages help offload work that would otherwise be rather tedious. This includes interacting with cloud APIs, developing scientific applications, or even creating web applications. As you gain experience in python you'll be using more and more of these packages developed by others to power your own code. In this example I've decided to expand our math functionality with NumPy. pdm add is what's used to add dependencies like this to our project:
-
Building an efficient sparse keyword index in Python
Large computations in pure Python can also be painfully slow. Luckily, there is a robust landscape of options for numeric processing. The most popular framework is NumPy. There is also PyTorch and other GPU-based tensor processing frameworks.
What are some alternatives?
SymPy - A computer algebra system written in pure Python
librosa - Python library for audio and music analysis
Pandas - Flexible and powerful data analysis / manipulation library for Python, providing labeled data structures similar to R data.frame objects, statistical functions, and much more
SpeechRecognition - Speech recognition module for Python, supporting several engines and APIs, online and offline.
pyAudioAnalysis - Python Audio Analysis Library: Feature Extraction, Classification, Segmentation and Applications
ffmpeg-python - Python bindings for FFmpeg - with complex filtering support
SciPy - SciPy library main repository
blaze - NumPy and Pandas interface to Big Data
mutagen - Python module for handling audio metadata
audioread - cross-library (GStreamer + Core Audio + MAD + FFmpeg) audio decoding for Python
Numba - NumPy aware dynamic Python compiler using LLVM
Nim - Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula. Its design focuses on efficiency, expressiveness, and elegance (in that order of priority).