I was wondering if it is possible to record audio from your speakers/headset and save it to a .wav file? I was able to write a program that records audio from your microphone and saves it but I am a little stuck on how to capture the audio from something like a youtube video and save it. Any ideas? This is the code I have at the moment and it works great but I want to record the audio output instead of recording my audio input (mic).
deviceReader = audioDeviceReader;setup(deviceReader);fileWriter = dsp.AudioFileWriter('test.wav', 'FileFormat', 'WAV');ticwhile toc < 10 aquiredAudio = deviceReader(); fileWriter(aquiredAudio);endrelease(deviceReader);release(fileWriter);
Best Answer