I am trying to convert a .py file to .exe using pyinstaller. When I try to run the executable the following error is shown :
My current pyinstaller command is the following:
pyinstaller --noconfirm --onefile --console --hidden-import "pydub"…
I have one big wav file:
from pydub import AudioSegment
big_aduio_file= "movie.wav"
audio = AudioSegment.from_wav(big_aduio_file)
And from it, I make a slice:
start = 6800
end = 10000
audio_chunk=audio[start:end]
Then, After I done a lot of…
I'm trying to learn how to transcribe an audio recording, but I'm not getting very far, pydub won't even accept my recorded data:
from pydub import AudioSegment
m4a_file = '{path_to_m4a}/test.m4a'
sound = AudioSegment.from_wav(m4a_file)
This…
I just copy-pasted this code block which I want to use on my script but this throwing red mark by pylance saying "(" "[" "{" was not closed, but I cannot find where I missed those, everything looks perfect for me
for idx, sentence in…
I am trying to create a new file recording every time this program runs and also convert those .wav files to .mp3. When I run this, it only creates a output.wav and output0.mp3 file and then when I run it again, no further files are created. Also…
Usually with audio you would access volume with:
sound.volume = 10
However with Pydub, the volume is accessed using:
sound + 10
The problem with this as I cannot exactly 'set' the volume, just adjust the volume that the song is currently at. I would…
I am more or less following the code below to merge two audio files. It mostly works, where audio segment can export both the original files and the combined file to a folder. These play fine in finder (Mac). However, when brought into a music app…
I'm consuming a live audio stream from a websdr via a websocket by running a generator function which grabs chunks of the audio stream and saves those chunks into a wav file. The problem is that the generated audio file contains a ton of noise…
I use Python to manipulate WAV files. This code used to work:
from pydub import AudioSegment
fp = "/Volumes/.../generic.wav"
sound = AudioSegment.from_wav(fp)
And now I get this error:
Traceback (most recent call last):
File…
I'm trying to use pydub to combine multiple audio files.
When I create a string and then try to exec that while assigning it to a variable
it doesn't work and the variable returns a 'none' type error when I try to export the audio.
from pydub…
I need an automatic speech transcription tool for my video editing project. I am using python speech recognition library. To split big audio file into small fractions I installed pydub and added its functionality in my script. Although I checked and…
I have been trying to create a desktop application that converts mp3 files to wav. However, when ever I choose a file I always receive the a filename error. Can someone help me?
file_path = askopenfilenames()
p =…
I wrote this code with pydub. I want to make to different variables with the same song.
One song would just play in the left ear and one song would just play in the right ear.
from pydub import AudioSegment
src = "or_test.mp3"
dst1 =…
I want to merge two audio files but want some interval between them and end result should be a .wav file, How do I do that?
I don't want to overlay the sounds...
I'm quite new to audio processing. Lately, I'm trying to use audio data to control the virtual lightbulb (implemented by a simple python Turtle) with the assumption that each element in the Numpy array represents the amplitude of the audio at the…