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

python export() got multiple values for argument 'format'

i have a wav file and i want to split according to the data i have in a list called speech and to export the the splitted wav files in folders according to the label variable label=speech[0] start= speech[1] end = speech[2] newAudio =…
Mohamed Amine
  • 340
  • 1
  • 4
  • 16
0
votes
1 answer

Trying to compare two sound files with different extensions

I have a python project where I have to make sure that there is no repeated songs in different folders even if they have different extensions (prefer to convert all m4a or wav files into mp3 but not a must) so I don't need to rebuild shazam or any…
Ahmed Yasser
  • 109
  • 12
0
votes
0 answers

How to prevent audio generation loss in python?

I have a script that needs to run audio through ffmpeg and pydub multiple times each. I realized that by the end of all this the audio sounds a bit muffled compared to the original. What steps can I take to make sure the quality is as high as…
John G.
  • 47
  • 1
  • 8
0
votes
0 answers

Speech Recognition did not proving me full text of different slang English language

I have one audio file in .wav format. but when I process it in speech to text model it will not giving me full text. Audio is in English with different slang. please help me how can i will get the full text. my audio file is only for 0.15…
0
votes
1 answer

Increment number in filename for avoid overwriting wav file in a loop

i'm a novice in python and i'm trying to loop in a directory with the goal of divide each wav files contained in the folder in many chunks. I've successfully looped and divided the files but when i try to export the chunks in a new folder i can't…
Dvd
  • 117
  • 3
  • 7
0
votes
0 answers

How to increase accuracy in python speechrecognition?

I want to convert some audio files to text in offline mode using SpeechRecognition module. I am able to convert it but it's 0% accurate. Can anyone suggest how to make it more accurate? Here's the code I am using: def convert_wav_to_text(path): …
Zubayer
  • 571
  • 1
  • 8
  • 16
0
votes
0 answers

Is there a way to detect pauses while taking input from the microphone in python?

Is there a way to detect pauses while taking input from the microphone in python? I have a sample code that uses speech-recognition google API to convert speech to text using a microphone of the laptop, but I'm looking for a way to detect pauses in…
0
votes
1 answer

Is there a way to use the ffmpeg binary/unix executable in a py2app application to run ffmpeg on computers without it installed?

I wrote a small python script that is essentially just a text to speech script. It uses the pydub - audiosegment python library to convert the mp3 from gTTS to an ogg that can be played in pygame. A link to my github repository can be found here:…
Human
  • 1
0
votes
1 answer

Pydub The system can not find the file specified

So here is my code : from pydub import AudioSegment sound1 = AudioSegment.from_mp3("sound_0.mp3") sound2 = AudioSegment.from_mp3("sound_1.mp3") sound = sound1 + sound2 sound.export("test.mp3",format="mp3") Problem : I got the error message :…
Madar
  • 196
  • 2
  • 15
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

How to load mp3 audio file more than 4GB using pydub Python

I try to load audio using pydub python. However, when the audio file more than 4GB, python cannot load the audio if less than 4GB pydub can load and process the audio. The audio format in MP3 file format. for i in glob('audio_folder/*mp3*'): …
que23
  • 25
  • 7
0
votes
0 answers

FileNotFoundError when trying to use Pydub to split audio segments

I am trying to use pydub to split audio into evenly spaced segments. Right now I can't seem to even get it to read the audio file. I'm using Jupyter notebook through Anaconda. The solutions from the other topic on this did not help (How to fix…
0
votes
1 answer

Python can not find an installed module in the conda env

I'm using python with anaconda. AttributeError: module 'pydub' has no attribute 'playback' I get the error above when I try to run the following statement: speech = pydub.AudioSegment.from_mp3("temp_speak.mp3") pydub.playback.play(speech) the…
Ruinas
  • 1
  • 1
0
votes
0 answers

FileNotFoundError: [WinError 2] The system cannot find the file specified, but I don't know what file can't be found

I have this segment of code clip.write_videofile("tempClip.mp4") mySegment = AudioSegment.from_file("tempClip", "mp4") and I get this error File "c:/Users/User/Desktop/myProgram.py", line 60, in timeStamps = get_time_stamps(path) …
0
votes
1 answer

Python - subprocess FileNotFoundError: [WinError 2]

I'm trying to get this reCaptcha code to run and I've gotten very close but I get this error: File "search_bot.py", line 53, in solveReCaptcha sound = pydub.AudioSegment.from_mp3(os.getcwd()+"\\sample.mp3") File…
Salah Assana
  • 186
  • 4