pydub
Pinout.xyz
Our great sponsors
pydub | Pinout.xyz | |
---|---|---|
25 | 48 | |
8,339 | 670 | |
- | 0.9% | |
0.0 | 6.1 | |
20 days ago | 2 months ago | |
Python | HTML | |
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.
-
Best language(s) for creating/manipulating sounds
Honestly while, C++ is used for professional audio software, you can get a lot done with python and a library like pydub, or you can even learn to manipulate audio files without any libraries in any language. So if you are not particulary interested in C++ at the moment you can start with Python, which is easier to learn. You can check out other python audio manipulation libraries here
-
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:
-
Playing multiple .wav and/or mp3 files in Python
I guess it's possible in theory, a quick search suggest pydub library.But you may find something better if you do a little research.
-
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.
-
Batch conversion FLAC to WAV
Once python is installed, you will also need to install the "pydub" package for this script to work. If you're on a Windows computer, you can do this from the command line (run the "cmd") program. If you're on mac, you can do this from the terminal. Basically, the way that you do this is using "pip" -- a "helper" program that comes with python. Once you launch the command line, just run the command python -m pip install pydub --upgrade and you should see a message showing that it successfully installed. If you're struggling with this step, just google how to "pip install python packages" and you can find a lot of beginner guides.
-
How can I modify the pitch of an audio file and save it to disk?
That is kinda what serverless functions are built for. Looks like python has some good libraries for this: https://github.com/jiaaro/pydub.
-
Playing large audio files?
The files are big, so it's not feasible to load one in all at once. They have to be streamed/chunked somehow. (sadly, pydub doesn't support this...)
Pinout.xyz
-
The Pinouts Book: Pinout functions for 130 commonly used components
Obligatory shameless plug of https://pinout.xyz where I’ve been maintaining an interactive Raspberry Pi SBC pinout for some years, and the newer https://pico.pinout.xyz where I’ve tried to do the same for the Raspberry Pi Pico board. The latter also became a command-line pinout via the Python package “picopins”
I feel- and of course I’m biased- that if anything is worth bringing to the table for device pinouts it’s interactivity and accessibility. The latter, in particular, is lost in static images. I really leaned into this with the Pico Pinout, including everything from visual accessibility accommodations (avoiding low contrast text background colours), to markup for screen readers to the ability to turn off labels and reduce noise. I’m still unsure if I actually achieved my goal, but it’s been fun.
-
Q: KS0212 4 port relay interface to the Raspberry Pi
There is a great resource to be found at pinout.xyz that details a lot of boards and the pins they actually use.
-
Network and dual WAN monitor
All the LEDs have their negative pins together and go through two 1k resistors in series on their way to ground (any gpio ground pin). Then a short piece of jumper wire goes from the positive lead of each LED to it's GPIO pin number. Don't use the pin order number, use the GPIO number.
-
Show HN: An accessible, beautiful Raspberry Pi Pico pinout
I wanted to create an accessible alternative to the official Pico pinout image, offering more complete pin details, light/dark modes, screen-readable text, and at least some capacity to focus on the peripherals you’re interested in. It’s a sister site to the now ancient Raspberry Pi pinout (https://pinout.xyz/) which started out life hosted on a Raspberry Pi.
-
Setting up "Adafruit SHT-30 Mesh-protected Weather-proof Temperature/Humidity Sensor" with Raspberry Pi
GPIO PIN numbers - its a real pain with both board and BCM numbers (see pinout.xyz for details) without having to translate what the libraries use by default!
-
My Star64 displays nothing on the HDMI-connected screen
The pins are at top right corner here: https://pinout.xyz/ and you just connect TX to RX, RX to TX and GND to GND. On the software side you can use picocom on the builtin serial device. Not sure which though, seems to depend on the software and exact revision of your RPi.
- Ask HN: Most interesting tech you built for just yourself?
-
Wiring buttons to GPIO pins
You can see all the pins on the pin documented at https://pinout.xyz
-
Connecting a pico-enabled screen on a PI4?
Use pinout.xyz to see what pins are used for the SPI interface on your Pi.
-
need help with first time useing
You have mixed up the PIN numbers - the Pi has two sets on numbers (board and BCM) - see here for details
What are some alternatives?
librosa - Python library for audio and music analysis
PiSugar - PiSugar is a battery module for Raspberry Pi zero / zero W / zero WH
SpeechRecognition - Speech recognition module for Python, supporting several engines and APIs, online and offline.
Dropbox-Uploader - Dropbox Uploader is a BASH script which can be used to upload, download, list or delete files from Dropbox, an online file sharing, synchronization and backup service.
pyAudioAnalysis - Python Audio Analysis Library: Feature Extraction, Classification, Segmentation and Applications
distributions - NodeSource Node.js Binary Distributions
ffmpeg-python - Python bindings for FFmpeg - with complex filtering support
pisugar-case-pihat-cap - PiHat caps designed for PiSugar case. 配合PiSugar外壳以及各类PiHat使用的盖子。
mutagen - Python module for handling audio metadata
alpine-raspberry-pi - Alpine Linux System Install for RPI 2, 3 and 4
audioread - cross-library (GStreamer + Core Audio + MAD + FFmpeg) audio decoding for Python
ghidra - Ghidra is a software reverse engineering (SRE) framework