424 questions
0
votes
0
answers
53
views
Storing WAV recording to disk plays as static
I'm recording voice via jquery then sending it to django view:
views.py
...
elif voice_value:
#get voice
voice_value = request.FILES.get('sound_file.wav')
#read as ...
0
votes
1
answer
90
views
Unexpected error: No such file or directory: 'ffprobe', while using pydub in Digital Ocean
I have an app that processes audio files and converts them to 'wav' format. This works locally on my Mac, however in DigitalOcean, when recording audio, i get the below error, followed by a 500:
warn(&...
0
votes
1
answer
30
views
PyDub not reading from CDRom
I am trying to write a python script that plays audio files off a CD.
I have tested the code with audio files off the CD and it worked.
But when I put the CD directory in, it stays silent and doesn't ...
0
votes
1
answer
68
views
Python library pydub, exit code -1073741819
I am making a program where I need to play files many times. When I play a file, it plays, but after 2 seconds the program closes with exit code -1073741819.
Code: "
from pydub import ...
0
votes
1
answer
225
views
ModuleNotFoundError: No module named 'pydub'
I am trying to run some python code for a tutorial I am following and it requires the "pydub" library to manipulate some audio files.
In my main.py file, at the top of the file I have the ...
0
votes
1
answer
6k
views
How to download YouTube videos using pydub?
Changes in Youtube in 2024 caused you-get and pydub to not operate smoothly.
How to download YouTube videos using pydub?
(I just want to share a solution.)
1
vote
0
answers
242
views
How to stream microphone audio through websocket from JS frontend to python backend?
I am working on a project that requires me to preform real-time VAD and TTS on clients incoming audio on the server. Also preferably the data should be turned into a pydub's AudioSegment for ease of ...
0
votes
1
answer
201
views
convert audio file .wma to .wav file
I have the following code to convert a set of .wma files to a correspnding .wav file.
import os
from pydub import AudioSegment
# Define the directory containing the audio files
directory = r"C:\...
0
votes
1
answer
250
views
add noise in pydub on different noise level
I am trying to add noise to an audio, but I want the added noise to be scaled based on the probability of each segment in the audio. For each segment, if probability = 1, the noise will be the highest,...
1
vote
1
answer
236
views
How do I passa PyDub AudioSegment object into a pyannote.audio Pipeline?
Here is my so far code
# SETUP
from pydub import AudioSegment
import torch
pipeline.to(torch.device("cuda"))
from pyannote.audio import Pipeline
pipeline = Pipeline.from_pretrained(
&...
0
votes
0
answers
63
views
How do I keep a TKinter window open after playing audio using pydub?
I'm building a basic text to audio app using python.When I play an audio file after taking an input from a user and clicking a button, the window closes after the audio file is played.
app = CTk()
app....
0
votes
1
answer
205
views
Pydub library has an error with version check
I am just curious why only this library has an error of version check.
Below is the code.
import pydub
print('Pydub version: ', pydub.__version__)
I got the error as below.
AttributeError: module '...
2
votes
0
answers
88
views
Why does PyGame Mixer play MP3s loaded with PyDub too fast on Windows, but correctly on Linux?
I have a situation where I need to load MP3 sounds into PyDub to edit them (specifically, trimming off 0.15 seconds of near-silence from their beginnings), then pass the trimmed result to PyGame to ...
0
votes
2
answers
535
views
Python- How to convert m4a to wav
I am trying to convert m4a file to wav or mp3 but everytime i get the file not found error i have also tried to save the file in same directory but it didn't worked , i am using pydub and also install ...
0
votes
0
answers
329
views
How do you get pydub to find ffmpeg?
I'm trying to import pydub into my python program but any time I run the code it says it can't locate where ffmpeg is. I have tried everything including putting "pip install ffmpeg-python" ...