audio

librosa can't open .wav created by librosa?

心已入冬 提交于 2020-08-03 02:19:50
问题 i'm trying to use librosa to generate some data by cutting 1s pieces from some .wav file with a duration of 60s. This part works, i create all my files and i can also listen to them via any player, but if i try to open them with librosa.load i receive this error: >>> librosa.load('.\\train\\audio\\silence\\0doing_the_dishes.wav', sr=None) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\gionata\AppData\Local\Programs\Python\Python36\lib\site\packages

librosa can't open .wav created by librosa?

流过昼夜 提交于 2020-08-03 02:19:10
问题 i'm trying to use librosa to generate some data by cutting 1s pieces from some .wav file with a duration of 60s. This part works, i create all my files and i can also listen to them via any player, but if i try to open them with librosa.load i receive this error: >>> librosa.load('.\\train\\audio\\silence\\0doing_the_dishes.wav', sr=None) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\gionata\AppData\Local\Programs\Python\Python36\lib\site\packages

python specific frequency remove(notch filter)?

送分小仙女□ 提交于 2020-07-31 03:55:08
问题 #complie by python3 only_test.py import pyaudio import numpy as np import wave import time import math #from pydub import AudioSegment #from pydub.playback import play #from scipy.signal import iirfilter from scipy import signal RATE = 48000 CHUNK = 4096 WIDTH = 2 volume = 0.0 duration = 1.0 #SHORT_NORMALIZE = (1.0/32768.0) #INPUT_BLOCK_TIME = 1 #INPUT_BLOCK_PER_BLOCK = int(RATE*INPUT_BLOCK_TIME) while True: #use a blackman window window = np.blackman(CHUNK) #load audio stream p = pyaudio

python specific frequency remove(notch filter)?

人走茶凉 提交于 2020-07-31 03:55:02
问题 #complie by python3 only_test.py import pyaudio import numpy as np import wave import time import math #from pydub import AudioSegment #from pydub.playback import play #from scipy.signal import iirfilter from scipy import signal RATE = 48000 CHUNK = 4096 WIDTH = 2 volume = 0.0 duration = 1.0 #SHORT_NORMALIZE = (1.0/32768.0) #INPUT_BLOCK_TIME = 1 #INPUT_BLOCK_PER_BLOCK = int(RATE*INPUT_BLOCK_TIME) while True: #use a blackman window window = np.blackman(CHUNK) #load audio stream p = pyaudio

How to create a surround effect using python by controlling the volume of speakers channels?

自作多情 提交于 2020-07-23 06:48:21
问题 I have bought a soundcard: Focusrite Scarlett 4i4 3rd Gen , with 4 outputs channels. I also have 4 speakers and I will link each speaker with the soundcard. I would like to be able to set separately the volume of each speaker, with maybe a tkinter interface (ultimately, but that is not the point). I have seen that we could have plenty of different librairies (I'm using windows 10 for this project): the ones that seems to be interesting are sounddevice and soundcard. I would though like to

How to create a surround effect using python by controlling the volume of speakers channels?

☆樱花仙子☆ 提交于 2020-07-23 06:46:16
问题 I have bought a soundcard: Focusrite Scarlett 4i4 3rd Gen , with 4 outputs channels. I also have 4 speakers and I will link each speaker with the soundcard. I would like to be able to set separately the volume of each speaker, with maybe a tkinter interface (ultimately, but that is not the point). I have seen that we could have plenty of different librairies (I'm using windows 10 for this project): the ones that seems to be interesting are sounddevice and soundcard. I would though like to

Produce sounds of different frequencies in Swift

蓝咒 提交于 2020-07-21 03:47:46
问题 I want to make an app like this. This app is mosquito repellent app which produces sound of some frequency. I don't want it to limit to one sound. I want to generate and play sounds of different frequencies for different purposes. How can I do that in swift IOS. How I can create sound of a specific frequency in swift ios? 回答1: Swift 4.2: create this class in your project. import Foundation import AudioUnit import AVFoundation final class ToneOutputUnit: NSObject { var auAudioUnit: AUAudioUnit

How to get from .wav sound into double[] C#

生来就可爱ヽ(ⅴ<●) 提交于 2020-07-18 07:29:05
问题 I need to perform FFT and I have a sound sample .wav format. The function needs double[] xRe, double[] xIm, REAL PART and imaginary part How to convert the sound file into double[]? I have never seen something like that. Could not find in the internet that kind of operation. This is this sound sample: http://www.speedyshare.com/fFD8t/e.wav Please help, cause I used Pascal and now don't know what to do here. 回答1: It's a simple stream operation. You have to read wav file header. You have to

Find sound effect inside an audio file

爷,独闯天下 提交于 2020-07-16 08:15:13
问题 I have a load of 3 hour MP3 files, and every ~15 minutes a distinct 1 second sound effect is played, which signals the beginning of a new chapter. Is it possible to identify each time this sound effect is played, so I can note the time offsets? The sound effect is similar every time, but because it's been encoded in a lossy file format, there will be a small amount of variation. The time offsets will be stored in the ID3 Chapter Frame MetaData. Example Source, where the sound effect plays

How to import and utilize P5.Sound in Vue?

与世无争的帅哥 提交于 2020-07-10 10:28:21
问题 I have been trying to make a music visualizer app using Vue and P5, and after tinkering with P5 using this article as my guide (https://medium.com/js-dojo/experiment-with-p5-js-on-vue-7ebc05030d33), I managed to get a Canvas rendered with some cool looking graphics. Now, I am trying to create a link between the waveform/amplitude of a given song and the visuals rendered in the canvas. I have been trying to get the constructors/functions from the P5.sound library to load a song from a file