Rules | Recent posts | topic RSS | Search | Register  | Log in

voice record by matlab

 
Post new topic  Reply to topic    EDAboard.com Forum Index -> Digital Signal Processing
Author Message
FERMED



Joined: 30 Apr 2008
Posts: 6


Post28 May 2008 16:13   voice record by matlab

Hi,

Please help me to record voice by matlab in real time.

regards
Back to top
echo47



Joined: 07 Apr 2002
Posts: 4212
Helped: 564


Post28 May 2008 16:27   voice record by matlab

I'm not sure what you mean by real time, or where you want to record it, but maybe you can get some ideas from this little audio spectrum analyzer:

Code:
% Audio spectrum display. To exit, close the figure.
%
fs = 22050;                                 % sample rate, hertz
N = 1024;                                   % duration, samples
window = blackman(N);                       % weighting
window = window / mean(window);             % normalize it
gca;                                        % open the figure
while get(0,'CurrentFigure')                % while figure still open
  y = wavrecord(N, fs);                     % acquire some signal
  h = fft(y .* window);                     % transform
  plot(fs*(0:N/2)/N, 20*log10(max(2/N*abs(h(1:N/2+1)), 1e-10)));
  ylim([-160 20]); xlabel('Hertz'); ylabel('dB');
  drawnow;                                  % allow figure to update
end
Back to top
xulfee



Joined: 27 May 2008
Posts: 181
Helped: 20
Location: Pakistan


Post19 Jun 2008 13:52   voice record by matlab

check help about waveread n waverecord in matlab
Back to top
Post new topic  Reply to topic    EDAboard.com Forum Index -> Digital Signal Processing
Page 1 of 1 All times are GMT + 2 Hours


Abuse
Administrator
Moderators
topic RSS 
sitemap