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
4
votes
2answers
3k views

Audio time stretching, without pitch shifting

This might be a Sound Design question, or a StackOverflow question since I am attempting to do this with Java. I would like to play back a sound at the same pitch, but stretched out in time. My ...
3
votes
2answers
1k views

Signal Processing/FFT gives very high magnitudes for low frequencies

The script essentially pulls PCM data from the sound card and stores them in a buffer. Then I apply fft and graph it. I am looking through this blog post for some examples and ideas on how to ...
16
votes
1answer
4k views

Find similar Music using FFT Spectrums

I have been experimenting some weeks to find a way to match/find similar Songs in a Library containing different Genres of Music. My first try was to Detect Features like Tempo or how much Bass there ...
32
votes
4answers
10k views

What are good ways to detect signal clipping in a recording?

Given a recording I need to detect whether any clipping has occurred. Can I safely conclude there was clipping if any (one) sample reaches the maximum sample value, or should I look for a series of ...
19
votes
6answers
780 views

What does one need to know in order to build a software synthesizer?

For someone who has some experience in software development, loves his synths and knows the [very] basics of digital audio representation, what are the first steps he should follow in order to program ...
18
votes
4answers
26k views

Libraries for Voice Activity Detection (Not Speech Recognition)

As follow up to my previous question I was wondering if there are any speech detection libraries in existence. By speech detection I mean passing in an audio buffer and getting back an index of where ...
14
votes
2answers
6k views

What methods can be used to identify and remove echo from an audio system?

Background I am designing a system that will have a single small microphone and speakers for use in a phone type setting. Easiest example I can give is a Skype conversation where you are using your ...
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 ...
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 ...
6
votes
4answers
883 views

Monotonic, symmetrical soft-clipping polynomial

Okay, I intend to answer this question myself, but I would like other folks to pipe in on it. The issues or requirements are this: Input to soft-clipper is $x(t)$, output is $y(t)$. Output $y(t)$ ...
5
votes
1answer
4k views

Voice Audio Detection algorithm

I have to detect speech intervals in large pre-recorded files in my project. I think, there won't be so much noise in the background (audio will be recordered in the room or even in the studio), but ...
3
votes
2answers
6k views

Eliminate Signal A from Signal B

i have 2 audio signals, both available in time and frequency domain: A: Noise B: Noise(A with minor variations) + Additive sounds (C) i want to eliminate Signal A from B to leave only C. C is for ...
5
votes
1answer
4k views

Signal filtering using Python

I'm trying to create an application using python that is capable of recording an audio signal and detecting short glitches in the signal. For example, I could be recording a 1000Hz sine wave and ...
3
votes
2answers
214 views

Are there equations for placing sounds in the stereo field using delays?

I'm thinking of the typical stereo widener (haas, binaural) effects here, those that extend from the typical pan knob to create "out of the headphones" -experience. These processors can be automated ...
3
votes
2answers
3k views

Hilbert transform filter for audio applications: Using IIR half-band parallel all pass structure

Does anyone have any experience designing wideband IIR Hilbert transform filters with audio applications in mind? I am using the filter for single side band modulation audio effects discussed in this ...
3
votes
5answers
2k views

Pitch Detection: avoiding frequency doubling / halving

I am working on a tuning app. I have so far tried 3 different libraries with a number of different algorithms. However, when I compare to other tuner apps, I seem to be getting frequency doubling on ...
1
vote
2answers
990 views

How do I explain a complex exponential intuitively?

What is a complex exponential, explained intuitively? How do I explain to an adolescent a complex exponential function?
14
votes
1answer
1k views

Estimating onset time of a tone burst in noise?

What techniques might one use to estimate the onset time of a sinusoidal tone burst in a noisy signal? Assume the tone burst has a known fixed frequency (but unknown phase) and a very sharp rise ...
9
votes
2answers
578 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 ...
7
votes
1answer
391 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
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 ...
4
votes
2answers
263 views

How to detect continuous noise in audio call?

We want to detect bad audio quality in audio call. Should we extract this information from amplitude or frequency spectrum ? Is there any technique/transform/filter available for this ? Example: I ...
3
votes
2answers
41k views

Removing noise from audio using Fourier transform in Matlab

I'm trying to remove noise from an audio file. This audio file contains speech as well as constant pink noise. I know that I have to use the Fourier transform to convert to the frequency domain then ...
2
votes
2answers
1k views

Problem with Generalized Cross Correlation (PHAT filter)

I have to calculate time delay between two signals.I am using the GCC-PHAT method. First, I cut the signals into smaller parts (~0.5s) and then try to calculate the delay. When I display those two ...
14
votes
2answers
1k views

What bandpass filter design will yield the shortest impulse response?

Designing a simple 2nd order IIR bandpass Buterworth filter with a centre frequency of 500 Hz and a 1 octave bandwidth gives me the following frequency response ... Now, if I take the impulse ...
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
5answers
797 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 ...
8
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 ...
4
votes
1answer
7k views

Taking audio frequency and picking out peaks (Peak Detection)

So I have a unique challenge. I want to take an audio file, and pick out the peaks in the samples and plot that onto a graph. Each point based on the amplitude/pitch(?) will be represented as either a ...
4
votes
6answers
1k views

Find Short Clip of Audio Within Longer Clip Of Audio

I need help figuring out a way to automatically synchronize two audio files that are both different recordings of the same source. More info below. This example is from a concert, where there is only ...
4
votes
3answers
3k views

Detection of wobbling sound with rising notes

In an audio file I would like to find calls of a specific bird specie, one that makes wobbling sound with rising notes. Can you recommend what would be the best audio feature to calculate in time or ...
3
votes
1answer
4k views

How to model Tape Saturation (Audio DSP)?

I'm looking for info that would help me to build a Tape Saturation process. I'm working with the WebAudio API. The API provides a number of DSP nodes that perform basic processes, such as a Convolver ...
3
votes
2answers
2k views

what does musical noise sound like and is there a sample clip for it?

Musical residual noise is created when a noisy signal passes through a noise reduction algorithm. For instance, please see the paper: Esch, T; Vary, P: "Efficient Musical Noise Suppression for Speech ...
3
votes
1answer
277 views

Stereo sound separation into three sources

Whenever we listen stereo songs, one part of the audio like voice hear at the center of the head, and other parts are nearby left ear and right ear. If I represent center part by C, and other parts by ...
2
votes
2answers
94 views

How does mic combined with loudspeaker work?

There is variety of loudspeakers on the market that have built-in microphone so that they can produce sound and perceive it at the same time (and do it surprisingly well). How they managed to ...
1
vote
3answers
1k views

How to add pitch-shifted version of signal to itself?

I want to write an algorithm to add pitch-shifted version of audio signal to itself (like Electro-Harmonix POG does). And I need to do it in realtime. How to implement it? My guess is: break signal ...
1
vote
2answers
590 views

Distorted output of delay VST effect in C

I'm getting some odd results with some code I'm working on. Help me with the implementation of this delay effect? The code takes an input, adds delayed input to it and then passes it to the output ...
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 ...
7
votes
1answer
314 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
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 ...
6
votes
5answers
8k views

Equal power crossfade

I am working on an audio system where I need to implement an equal power crossfade between two signals over a specified number of samples. Initially I implemented a linear fade but this creates a dip ...
4
votes
1answer
659 views

$1/n$ octave complex smoothing

An excellent answer to this post explains how to do $1/n$ octave energy smoothing and mentions complex smoothing can be done as well, but it's tricky business because of phase wrapping. How is phase ...
4
votes
0answers
592 views

What is EAQUAL ? How does it relate to PEAQ?

This wiki post on wiki.hydrogenaudio.org says that it is very similar to PEAQ and also a part of ITU-R BS.1387 recommendation ? How reliable it is for determining audio quality. Are there any other ...
4
votes
1answer
494 views

RMS values above 0 dbFS?

I wonder why several RMS meters I'm using for music production show RMS values above 0. For example, when using an input signal with a constant DC of 1 (0 dbFS), I get these results, although ...
4
votes
2answers
319 views

How can I measure the harmonicity of an audio spectrum?

I would like to estimate the "harmonicity" (harmonics-to-noise ratio ?) of an audio signal from its spectrum. What kind of algorithm can I use?
3
votes
2answers
1k views

How to identify useful elements of audio recording and ignore lulls?

I assume this is a relatively simple DSP task, but I'm having trouble finding any information on how to approach my problem. Hopefully someone with more experience and brain power can help me out: I ...
2
votes
1answer
3k views

Remove a frequency and all its multiple (harmonics)

In a soundfile, I'd like to remove a frequency and all its harmonics. What is the best solution in your opinion ? Do a loop with 20 notch filters, one after another. // f is the fundamental ...
2
votes
1answer
479 views

What are best practices to compute an audio spectrogram?

The spectrogram if generally defined with the squared magnitude of the fft. However, in lots of implementation, it seems that people just use the magnitude without square. Moreover an audio signal is ...
2
votes
1answer
730 views

What features describe audio signals? (Besides frequency and amplitude)

I recorded sounds with a microphone and I try to distinguish them in my Java program. The frequency works quite good, but if I look at the fourier transforms it seems like there should be more ...
1
vote
3answers
2k views

Explanation of binning in frequency analysis post-FFT

I am creating an Android app which records sound for t seconds at a sampling rate of 44.1kHz with a buffer size of 8192 (16 bit mono samples). I need to plot a ...