pydub
openai-python
pydub | openai-python | |
---|---|---|
25 | 61 | |
8,355 | 19,930 | |
- | 3.2% | |
0.0 | 9.6 | |
about 1 month ago | 7 days ago | |
Python | Python | |
MIT License | Apache License 2.0 |
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...)
openai-python
- The Stainless SDK Generator
-
GPT-4 Turbo with Vision is a step backwards for coding
The ongoing model anchoring/grounding issue likely affects all GPT-4 checkpoints/variants, but is most prominent with the latest "gpt-4-turbo-2024-04-09" variant due to its most recent cutoff date, might imply deeper issues with the current model architecture, or at least how it's been updated:
https://github.com/openai/openai-python/issues/1310
See also the original thread on OpenAI's developer forums (linked on the GitHub issue) with confirmations from others.
A test code snippet is included in the GitHub issue to A/B test the problem yourself with your own questions if need be.
-
Show HN: GritQL, a Rust CLI for rewriting source code
- Iterate on large codebases quickly: we use Rust for maximum performance
GritQL has already been used on thousands of repositories for complex migrations[1] but we're excited to collaborate more with the open source community.
[1] Ex. https://github.com/openai/openai-python/discussions/742
-
Integrating AI chatbotπ© into your application in 2024 π§π»ββοΈπ is how easy? π€
Explore OpenAI and learn how to easily integrate it into your existing application with the OpenAI Python module.
-
Need Help with OpenAI Upgrade: Seeking Guidance on 'openai.Completion' Deprecation Error
You tried to access openai.Completion, but this is no longer supported in openai>=1.0.0 - see the README at https://github.com/openai/openai-python for the API. You can run `openai migrate` to automatically upgrade your codebase to use the 1.0.0 interface. Alternatively, you can pin your installation to the old version, e.g. `pip install openai==0.28` A detailed migration guide is available here: https://github.com/openai/openai-python/discussions/742
-
Anthropic announces Claude 2.1 β 200k context, less refusals
Relatedly, I checked and OpenAI deleted all references to their ChatML spec from their GitHub repo.
This is what it said in an earlier commit: https://github.com/openai/openai-python/blob/2942bf4bb635b1e...
-
Web scraping experiment with AI (Parsing HTML with GPT-4)
Make sure to install the OpenAI library first. Since I'm using Python, I need
-
OpenAI: "We are dealing with periodic outages due to an abnormal traffic pattern reflective of a DDoS attack"
Source: https://github.com/openai/openai-python/discussions/742
- GitHub - openai/openai-python: The official Python library for the OpenAI API
- OpenAI Python v1 Released
What are some alternatives?
librosa - Python library for audio and music analysis
whisper.cpp - Port of OpenAI's Whisper model in C/C++
SpeechRecognition - Speech recognition module for Python, supporting several engines and APIs, online and offline.
langchain - β‘ Building applications with LLMs through composability β‘ [Moved to: https://github.com/langchain-ai/langchain]
pyAudioAnalysis - Python Audio Analysis Library: Feature Extraction, Classification, Segmentation and Applications
langchain - π¦π Build context-aware reasoning applications
ffmpeg-python - Python bindings for FFmpeg - with complex filtering support
openai-node - The official Node.js / Typescript library for the OpenAI API
mutagen - Python module for handling audio metadata
ChatGPT-AutoExpert - ππ§ π¬ Supercharged Custom Instructions for ChatGPT (non-coding) and ChatGPT Advanced Data Analysis (coding).
audioread - cross-library (GStreamer + Core Audio + MAD + FFmpeg) audio decoding for Python
sharegpt - Easily share permanent links to ChatGPT conversations with your friends