Real time audio input, audio output
Show older comments
Hello everyone,
I am involved in a project that listens to audio in using a microphone, which is then immediately outputted via a speaker. The emphasis is on using continuous audio in, from a microphone, to continuous audio out to a speaker.
The end goal, would be to add a delay function in-between the audio received, and to the audio outputted. To almost act as an audio delayer.
From my very basic understanding; sound amplitude is recorded at certain time intervals at a certain frequency, called the sampling rate. This is how the analog signal is converted to a digital signal which a computer can process. This amplitude is then stored in a 1 x n array. Where n is the sample frequency x length of recording. Is there a method of outputting the amplitudes that the microphone has received, which are stored in the array? And if I am to apply a time delay, I would calculate the desired delay time, and then multiply it by the sampling frequency, and offset the output by this number of values?
I am using the data acquisition toolbox, that has instructed me to creating a continuous audio input. linked here: https://uk.mathworks.com/help/daq/examples/getting-started-acquiring-data-using-audio-in-session.html I now need to work out how and where the amplitudes are stored, and output these to an audio driver.
Any help would be greatly appreciated.
Many thanks,
Don
Accepted Answer
More Answers (0)
Categories
Find more on Audio I/O and Waveform Generation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!