Power spectral density of voice recording

조회 수: 7 (최근 30일)
Sri Srujan Gollapudi
Sri Srujan Gollapudi 2019년 10월 11일
답변: Image Analyst 2019년 10월 11일
Hello
I have recorded a voice with sampling frequency and other parameters. Now, I want to find out the power spectral density for that. In order to find that, should I use the pwelch function, or is there any other technique?
I'm writing the code below:
clc;
clear all;
voice= audiorecorder(22050,8,1);
disp('Start recording'); %To start speaking
recordblocking(voice,5); %Stops the recording after 20 seconds
disp('End recording'); %Message displays end of recording
a= getaudiodata(voice); %Gets the data of voice signal and stores in a variable 'a'
%figure;
%plot(a); %Plots a graph of the voice signal
title('Audio signal'); %Title of the voice signal
xlabel('time in sec'); %X-axis
ylabel('Amplitude'); %Y-axis
b=pwelch(a);
plot(b);

채택된 답변

Image Analyst
Image Analyst 2019년 10월 11일
Yes, pwelch() is fine. That's what I'd use.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Spectral Measurements에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by