Skip to Main Content Skip to Search
Login
File Exchange
MATLAB Newsgroup
Link Exchange
  Blogs  
 Contest 
MathWorks.com

Thread Subject: How to decrease sampling rate of voice signal??

Subject: How to decrease sampling rate of voice signal??

From: MOONKWON

Date: 6 Jun, 2008 17:57:02

Message: 1 of 3

Hi guys!!

I want to decrease sampling rate of voice signal.
(8khz,8bits,7sec to 4khz,8bit,7sec)


I need 4khz, 8bits, 7.0sec signal.

here is my source

[xx, fs, bits] = wavread('OriginVoice');

yy = decimate(xx,2);

t1 = (1:length(xx))*1/fs;
t2 = (1:length(yy))*1/(fs/2);

sound(yy);
wavwrite(yy, fs, 8, 'resample_4k');

plot(t1,xx,t2,yy), grid on;
legend('original','decimated');


please help me......


Using function of decimate, I got 4khz, 8bits signal.
However, running time of signal also was made half....
(4khz,8bits,3.5sec)

I don't understand why playing time of original signal
also was decreased by the function.

How can I get 4khz, 8bits signal with original running time
(7sec)?



Subject: How to decrease sampling rate of voice signal??

From: Lars

Date: 6 Jun, 2008 19:49:02

Message: 2 of 3

try, if you shouod have acces to signalprocessing-toolbox

>> help downsample

http://www.mathworks.com/access/helpdesk/help/toolbox/signal/

Subject: How to decrease sampling rate of voice signal??

From: Srikanth

Date: 7 Jun, 2008 00:04:04

Message: 3 of 3

Remember, you've decimated it, which is basically halving the sampling
frequency. If you play it at the original sampling frequency, it will
only run for half the time. You can either play it after interpolation
(which might make sense if you are doing all this for data storage
reduction) at the same 8kHz frequency, or when you play it (or save
it), make sure you change the sampling frequency specification (in
wavwrite change fs to fs/2).

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

envelope graphic E-mail this page to a colleague

Public Submission Policy
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.
Related Topics