Questions tagged [pydub]

Pydub is a Python library for audio manipulation.

Pydub is a Python library for manipulating audio.

Quick links:

427 questions
0
votes
1 answer

compatible Android AudioEncoder and pydub decoder

I am recording an audio in android in mp3 format and to do that I am using MPEG_4 as an Output Format while AAC as an AudioEncoder and It does record an audio. The problem is when I am using that file for further processing in python pydub it could…
Nik391
  • 517
  • 2
  • 7
  • 24
0
votes
1 answer

Pydub audio export has silence at the start?

I wrote a python script to take audio in 30 minute mp3's and slice it into unix timestamped, second long files. The source audio files are 192kbps, 441000Hz, stero mp3 files. I want it that way for a service that archives audio from a radio station…
Scott
  • 1
  • 3
0
votes
1 answer

How do I split an audio file at the end of a silence, without deleting silence, using pydub?

Python beginner looking for some assistance. I am using pydub's silence module to split and export chunks of an audio file. I am using the method found in the top response to this question: Using pyDub to chop up a long audio file chunks =…
0
votes
1 answer

ffplay displays runtime error, yet still plays file

Im Working with pydub, and I'm using ffplay. For some reason, when the program runs i get this 'error': /usr/local/lib/python2.7/site-packages/pydub/utils.py:178: RuntimeWarning: Couldn't find ffplay or avplay - defaulting to ffplay, but may not…
John Doe
  • 126
  • 1
  • 3
  • 15
0
votes
1 answer

Syntax error python 2.7

Im have syntax error in def reverse app.route i know there is something wrong with getAudio but i dont know what. Here is example from pydub documentation sound1 = AudioSegment.from_file("/path/to/sound.wav", format="wav") And heres part of…
Ivan
  • 37
  • 7
0
votes
1 answer

How do I extract album art using pydub

I want to extract album art from a song and embed it back to the song after conversion, using Pydub. Is it possible can somebody help me with this?
Soundar Raj
  • 133
  • 1
  • 1
  • 6
0
votes
1 answer

Python module for audio mix splitting

I've been searching for a long time but came up with nothing that actually worked. The idea is that I have a music mix (mostly .mp3) of which I'm trying to make the tracklist using pyechonest to identify the tracks. However this will only identify…
CounterFlame
  • 1,612
  • 21
  • 31
0
votes
2 answers

how to adjust the volume of the audio file by serially getting the voltage signals from the potentiometer using arduino board and python scripts

I want to adjust the volume of the mp3 file while it is being playing by adjusting the potentiometer. I am reading the potentiometer signal serially via Arduino board with python scripts. With the help of pydub library i can able to read the file…
rajupurush
  • 11
  • 4
0
votes
2 answers

Does python script execution time depend on internet speed?

I am using pydub to mix two wav files in one file. Each wav file has about 25Mb and for me page is loaded in about 4 seconds ( so execution time would be 4 seconds ) Does this execution time depend on user's internet connection speed? If it has…
John
  • 7,500
  • 16
  • 62
  • 95
-1
votes
1 answer

Audio Splitting Program in Jupyter Notebook

I have some code that is meant to split an longer mp3 file into a series of 10 second mp3 files and I am using Jupyter Notebook for this code if that matters. The code is as follows: from pydub import AudioSegment import os def…
-1
votes
0 answers

How to convert ogg or mp3 file in wav without using ffmpeg

I have problems with installing ffmpeg and ffprobe that's why I am looking for ways to avoid them I have tried to ask neurolinks and even looked in Internet, but it is might to be impossible to install ffmpeg on that os that i have (nix os). So, i…
-1
votes
1 answer

PermissionError: [Errno 13] Permission denied: Playing sound files

import tempfile import os import random import tkinter as tk from pydub import AudioSegment from pydub.playback import play FFMPEG_PATH = "C:/ffmpeg/bin/ffmpeg.exe" os.environ["PATH"] += os.pathsep + os.path.dirname(FFMPEG_PATH) # Load the sound…
-1
votes
1 answer

Is there a known issue with Python's Threading and waiting a long time?

Sorry if this is a strange or not completely detailed question, but I have a music app, and when you pause music, then resume a long time later the app will occasionally crash. It is not consistent, around 15% of the time it'll crash, and I have not…
-1
votes
3 answers

FileNotFoundError: [WinError 2] The system cannot find the file specified using pydub

I am working on a code to extract data of every seconds data a wav file using pydub. But whenever i am running the code :- from pydub import AudioSegment t1 = 1 t2 = 2 t1 = t1 * 1000 #Works in milliseconds t2 = t2 * 1000 newAudio =…
Naman
  • 64
  • 9
-1
votes
1 answer

pydub AudioSegment.export is locking a file on smb share. Can't delete that file

I am running into an issue when trying to extract mono audio from a stereo file using pydub. Here is the code: import wave import audioop from pydub import AudioSegment def cantDeleteLockedFile(): audiofile = "/Volumes/test/stereotest.wav" …
DeltaFi
  • 55
  • 4
1 2 3
28
29