We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [audio]

Audio, or in terms of signal processing, an audio signal is an analog or digital representation of sound, typically as an electrical voltage.

Filter by
Sorted by
Tagged with
10
votes
1answer
5k views

Creating a spectrogram

I've been trying to work out the logic for this task, and plan to use the KissFFT source package to perform the fast fourier transform. Please let me know if this looks about right: Allocate an FFT ...
10
votes
1answer
4k views

Applying A-weighting

I want to calculate the loudness of a given signal and I've come across this thread. I'm slightly confused about the A-Weighting aspect of it. I can't post images, but I think this site has the ...
10
votes
1answer
832 views

Ultrasonic speaker calibration and emitting calibrated signals

I'm trying to calibrate an ultrasonic speaker with the aim of emitting predictable signals, but alas I keep running into trouble, probably due to my lack of DSP-fu. A little background I want to be ...
9
votes
5answers
793 views

Mathematical question that comes out of using bilinear transform

So this is related to the Cookbook and I tried solving it maybe two decades ago, gave up, and was reminded of the unsolved problem. But it's pretty damn straight forward, but I still got slogged down ...
9
votes
3answers
3k views

How to check the FFT results of a sine wave?

I have been given an audio file (sine wave) 1000Hz as an input to my FFT algorithm. I have got 8192 power spectrum samples in a array. What is the best and easiest way to check whether my output is ...
9
votes
3answers
18k views

Alias frequency Formula

I'm taking a multimedia systems class in my MSc Computer Science, and I'm having some trouble understanding the formula for the alias frequency - this could stem from my misunderstanding of the alias ...
9
votes
1answer
6k views

Measuring time delay of audio signals

Before anyone yells at me I fully realize that this question has been asked numerous times. I assure you that I've read through the existing questions and answers but I am still confused about part of ...
9
votes
2answers
7k views

Logarithmic fourier transform(LFT) on audio signal

I am trying to analyze the musics as possible as precisely. Of course I tried FFT, but got some problems. I found low frequencies have very low resolution than human's hearing. I tried very long time ...
9
votes
1answer
1k views

Discrete Fourier transform - finding the fundamental quickly?

First, I appologize because I'm a software developper and it's been a very long time I didn't dive into pure mathematics, so my question might seem dumb. I hope not. The context is pitch recognition ...
9
votes
2answers
571 views

Pattern recognition for temporal data

I'm trying to detect and classify non-speech sounds. Currently, I'm using a series of moving overlapped power spectrums from training sounds as the features I am looking for. When I do analysis, I'm ...
9
votes
1answer
254 views

How to segment phone call audio into silence/non silence?

My problem is that I don't know the energy of the background noise, so I can't just threshold the energy. The processing is done in real time, and I have about 500msec to decide. Ideally, I'd want ...
9
votes
3answers
7k views

How do I go about detecting whistles, pops and other sounds in live audio input?

I've read many questions on SO, and frankly, each one of them is not describing any particular way to go about it. Some say "do FFT" and some say "zero crossing" etc. But I've only gone as far as ...
9
votes
1answer
340 views

Recognizing data clustered into shapes

I am working on a project in Python to detect and classify some bird song, and I have found myself in a position where I need to convert a wave file into frequency vs. time data. This hasn't been too ...
9
votes
1answer
2k views

Frequency Modulation Synthesis Algorithm

Based on what I read, I've made an algorithm for FM sound synthesis. I'm not sure if I did it right. When creating a software synth instrument a function is used to generate an oscillator and a ...
8
votes
2answers
444 views

Can you represent an audio signal in any other domains besides time and frequency?

Maybe a stupid question, but if there is a time-domain representation of audio signal, and also frequency-domain, so is there any other domain that signal can be represented in?
8
votes
2answers
668 views

Filtering of streaming audio

Given something like 103 data points ($N=103$), a DFT will give back 103 frequency values. Then to do something like filtering the high frequencies involves setting the high frequency values from the ...
8
votes
2answers
46k views

How to analyze audio input/spectrum correctly

I am quite new to Java and Signal Processing, but I was assigned a project dealing in audio processing. My topic given to me is a game that has a component of analyzing a song (any given song) and ...
8
votes
1answer
8k views

Speech comparison algorithm for rating on similarities

I am trying to compare 2 speech samples and rate them on similarities. Think of someone trying to repeat a phrase, and then comparing those 2 audio files. I started by implementing the MFCC (http://...
8
votes
5answers
4k views

Piano pitch detection

I'm working on a piano tuning program and part of it requires real-time pitch detection. Here is the scheme I have so far which works to some degree but could probably use some refinement. I'm ...
8
votes
2answers
2k views

Fast pitch recognition

I need to detect pitch (measure signal frequency) while the musicians play music, giving a warning if they are out of tune, but music happens to be a bit too fast for FFT (Fast Fourier Transform). ...
8
votes
6answers
24k views

Why is telephone audio sampled at 8 kHz?

When did we decide to sample telephone at $8$ kHz? Has this always been the case? Why did we do that? Is it because higher bit rates can't be transferred as quick? And do these reasons still count? ...
8
votes
1answer
4k views

Audio normalization

I have a recording in pcm format and I want to do some simple analysis. I have some questions about what is normalization. As far I understand it is to get all the amplitudes between a range i.e. [-1,...
8
votes
2answers
5k views

Low pass filtering on short int (16 bit PCM) samples

I am writing software for processing audio given as 16-bit PCM samples. The first stage of the processing involves calculating the energy (or total variation) in a certain frequency range (above a ...
8
votes
1answer
6k views

1/n octave smoothing

Given a frequency response obtained with FFT, I would like to apply a 1/n octave smoothing. What filter should I be using and how? Maybe someone could point to a good reference (a paper or book on the ...
8
votes
4answers
599 views

How to determine the “variability” in a frequency range?

This is a continuation of a previous question. I'm trying to analyze breathing and snoring sounds, and while I can fairly well detect snoring now, breathing is a bigger challenge. I've learned that ...
8
votes
4answers
4k views

Complex conjugate and IFFT

I asked a question over on stack overflow. I'm having a slight problem however. As suggested by Paul R I am mirroring my lower $n/2$ bins into the upper $n/2$ bins. I have a few questions however. ...
8
votes
2answers
6k views

PC-to-PC data communication over Sound FSK / PSK / DSSS

For fun and work I've to implement a java based application that can Encode text or data to sound and transmit using PC's speaker and on the receiving side is a microphone with decoder software. I ...
8
votes
1answer
1k views

Help with algorithm for modulating oscillator pitch using LFO

I am developing a software emulation of an analog synthesizer. I am trying to modulate the pitch of an oscillator using an LFO. For each sample fed to the computer's sound system, I am calculating ...
8
votes
2answers
1k views

Non-negative matrix factorization for audio separation - why does it work?

Non-Negative Matrix Factorization aims to factorize a matrix $\mathbf V$ into the product of two matrices, $\mathbf V = \mathbf W\mathbf H$, where $\mathbf W$ represents a set of basis vectors and $\...
8
votes
2answers
8k views

Help implementing audio dynamic range compression

I am trying to implement audio dynamic range compression in JavaScript (not using web audio API). There is a lot of articles for sound technicians, and some high level documentation, but I couldn't ...
8
votes
2answers
7k views

Noise reduction from very noisy audio

I am trying to write an algorithm that would automatically segment a piece of audio with bird calls recordings. My input data are 1 minute-long wave files and on the output I would like to get ...
8
votes
1answer
2k views

Coloring a waveform with spectral centroid or by other means

Update 8 Unhappy of having to upload tracks to the service and looking at the new release of RekordBox 3 I've decided to take another look for an offline approach and a finer resolution :D Sounds ...
8
votes
1answer
695 views

Detect human speech in realtime audio on mobile phones

I am looking to develop an Android app. As part of the functionality the app would require to randomly sample 3-5 seconds of audio and classify it as containing human speech or not. I understand that ...
7
votes
4answers
16k views

What are Chunks when recording a voice signal

I am having trouble understanding the example program for audio recording , it comes with PyAudio module. I am using an external Audio Card to record the sound , obviously, the voice should be ...
7
votes
1answer
1k views

Detecting changes between voice and music

I have a bunch of audio files that have both speech and music parts (think radio). For instance, a given file might consist of the following sections: ...
7
votes
1answer
1k views

Prerequisites for audio signal processing

I started a DSP course online and quickly discovered that as much as some people say that it is possible to avoid the more advanced mathematics of signal processing, this didn't seem the case. It ...
7
votes
1answer
3k views

Speech Compression - In LPC how does the linear predictive filter work on a general level?

Hi I'm taking a multimedia systems course and I'm preparing for my exam on tuesday. I'm trying to get my head around LPC compression on a general level, but I'm having trouble with what is going on ...
7
votes
2answers
2k views

High audio frequencies in television broadcast

I would like to know if in television broadcast high end audio frequencies are transmitted e.g. frequencies higher than 14 kHz. What is the cut off audio frequency of transmission in television ...
7
votes
1answer
5k views

Library to differentiate people by their voice timbre

Say there are 3 people in the room. Each of them have a unique voice timbre. I want to recognize people by their timbre and know who's speaking.
7
votes
1answer
8k views

How to change volume of a PCM 16 bit signed audio?

I know I can multiply samples, then clip but perceived volume is non-linear for humans. Can you please help with a formula.
7
votes
2answers
885 views

Guitar effects explanation books

Can you please suggest some books to get how guitar effects: distortion, overdrive, phaser and so on are achieved ?
7
votes
2answers
6k views

Loudness of PCM stream

I'm receiving PCM samples through stream which is one channel, 8000 samples per second. I figured out way of finding out loudness by calculating 'force' of signal by adding abs value of every next ...
7
votes
1answer
380 views

MP3 Decoding Discrepancy

Is it possible for two different decoders to output two different sample results for the same MP3? I'm decoding an mp3 on Matlab and it produces two columns (presumably one for each channel). When I ...
7
votes
1answer
379 views

How to mix two signals without changing the overall loudness?

I have two audio signals that I want to mix at various mixing ratios. Initially, I simply went for something like $y(t) = \alpha \cdot x_1(t) + (1-\alpha) \cdot x_2(t)$ where $\alpha$ is the ratio ...
7
votes
2answers
1k views

Understanding values saved in WAVE file

The values that one can find in a wave file, e.g. 0.0036 0.0026 0.0174 0.0050 0.0026 0.0108 0.0154 -0.0114 -0.0006 0.0115 ...
7
votes
2answers
842 views

Designing a lowpass filter to minimize aliasing in pre-decimated streaming audio

I need to apply low-pass filter to PCM files. There are several methods such as FIR filters, IIR (butterworth-chebyshev..) filters but it seems to me applying Fast Fourier transform and eliminating ...
7
votes
1answer
312 views

How do Phons relate to loudness?

Let's say I have the very same signal stored in 2 .wav files. And lets say I process each file using a function, and it is established that one file is 20 phons ...
7
votes
3answers
4k views

“Subtracting” one audio stream from another audio stream

I am a long time software engineer but have practically zero experience with signal/audio processing. I am interested in learning about signal processing via a use-case we have for one of our audio ...
7
votes
1answer
5k views

Plotting the magnitude response of a biquad filter

I've put together a multi-band audio EQ using biquad filters. I'm getting the coefficients using the methods from the RBJ cookbook. Now I want to plot the curve showing the magnitude response. I'm ...
7
votes
1answer
2k views

Synchronizing Two Audio Tracks

I would like to implement an algorithm that synchronizes two audio tracks. The two tracks are very similar; you can imagine they are two recordings of sound (not necessarily music) from two ...