Questions tagged [audiosegment]
42 questions
0
votes
1 answer
pydub.AudioSegment.from_file not finding file
Hi I am trying to use Google Web Speech API for Speech Recognition, I want to convert a audio file to text. I have been able to compile this code on my raspberry pi 4 but when I compile it on my Windows computer I get an error of file not…

braindead
- 13
- 3
0
votes
0 answers
How to export large audio files with pydub python?
I'm trying to export an audio file with pydub. I did it in a mp3 format, however it was really slow. Then I found out that using a wav format can make the process faster, but the size of the output file will be…

Karp
- 431
- 1
- 6
- 16
0
votes
3 answers
Can't figure out why PyDub is not working
I'm trying to use pydub for a music project, but when trying to play sounds with this chunk of code
from pydub import AudioSegment
from pydub.playback import play
sound = AudioSegment.from_wav("s1.wav")
play(sound)
i get the following…

Vicente Figueiredo
- 1
- 1
- 1
0
votes
1 answer
Splitting AudioSegments
Here I am practicing analyzing audio(wav format) in order to remove low volumes in given range and export to new audio. It was formatted to int16 array and max value gave +(some number), min gave -(some number). Now as a result the output audio is…

heyitsme
- 1
- 2
0
votes
1 answer
Why AudioSegment doesn't read 'mp3'?
I tried to read file that I give with absolute path.
When I run my code first that I see is this message:
D:\prog\datascience\anaconda\lib\site-packages\pydub\utils.py:170: RuntimeWarning: Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but…

freshITmeat
- 17
- 1
- 7
0
votes
0 answers
Convert multiple audio file formats in a folder and make a separate folder to store
I want to convert multiple audio file formats from a folder (named as "aud_test") to a unique WAV format using python 3. After this, Save all files in another folder (named as "re_test") as mentioned in the below code.
import os
…

Pikaschu
- 11
- 4
0
votes
0 answers
Compare a fragment of an audio file to a long audio file
I would like to develop a program (preferably in python, however, java or c++ would be ok too) that compares an audiofile (length around 1 to 2 seconds) to a database of audiofiles of longer duration (10 to 60 minutes). It should find the long…

Kai Ott
- 11
- 1
0
votes
1 answer
pydub Overlay Delay
I'm trying to create a mix out of two audio tracks (vocal and instrumental) that are of the same duration (3.:30). However, when I try to use the overlay function, my vocal starts too soon.
from pydub import AudioSegment
sound1 =…

b1nkh4x0r
- 5
- 4
0
votes
1 answer
Issue Importing AudioSegment from Pydub in Python
I'm trying to import pydub into a project and am getting the following errors:
Traceback (most recent call last):
File "wave.py", line 3, in
from pydub import AudioSegment
File…

Sergio
- 792
- 3
- 10
- 35
-1
votes
1 answer
How to feed a numpy array as audio for whisper model
So I want to open an mp3 using AudioSegment, then I want to convert the AudioSegment object to numpy array and use this numpy array as input for whisper model, I followed this question How to create a numpy array from a pydub AudioSegment? but non…

JayJona
- 469
- 1
- 16
- 41
-1
votes
1 answer
Error trying to use AudioSegment for .wav files
I'm trying to iterate through all the .wav files in a folder "audios", but I receive the following error. I found similar questions that were solved by installing ffmpeg, but that didn't help.
FileNotFoundError Traceback…

smag9467
- 13
- 3
-1
votes
1 answer
python QMediaPlayer release resource
I have some code which:
Records from microphone using pyqt5 AudioInput
Write to file record.mp3 with pydub AudioSegment.
Preview the record.mp3 with the following code:
def preview_record(self,ui): filename = self.record_path #filename =…

Chris P
- 2,059
- 4
- 34
- 68