Sign in

username:

password:



Not a member?

Search matlab



Search tips

Subscribe to matlab



matlab by Keywords

Atanh | Autocorrelation | Bandpass Filter | C++ | Conv | Database | Deconv | Excel | FFT | Filter | Filtering | FIR | Fourier Transfrom | FSK | Gaussian Noise | Haykin | IFFT | Image | Java | LFSR | LMS | LPC | MEX | OFDM | QPSK | Radix | Random | Sampling | Segmentation | Simulink | Visual Basic | Waveform | Wavelet

Sponsor

NEW! TMS320C6474: 3x the performance. 1/3 the cost. Three 1 GHz cores on 1 chip.

Discussion Groups

Discussion Groups | Matlab DSP | how to convert recorded speech sampling?

Technical discussion about Matlab and issues related to Digital Signal Processing.

  

Post a new Thread

how to convert recorded speech sampling? - khaifahaluk - Jan 13 7:25:00 2004



i'm new here, i am doing my university project on speech recognition,
if somebody could tell me how to convert recorded speech sampling?
i've already try using resample code from matlab, but the result was
that the sound of speech file dosen't sound very nice. the code that
i use was shown below: [y,Fs,bit] = wavread('test8k.wav');

Fs_new = 11025; %the new sampling rate
[p q] = rat(Fs_new/Fs,0.0001);
new_speech = resample(y,p,q);
[filename, pathname] = uiputfile('*.wav', 'Save Data to Wave File');
if filename ~= 0
wavwrite(new_speech,Fs_new,[pathname filename])
end
clear;





(You need to be a member of matlab -- send a blank email to matlab-subscribe@yahoogroups.com )

Re: how to convert recorded speech sampling? - Mandar Rahurkar - Jan 13 18:14:00 2004

I am not sure how good a matlab is at changing sampling rate. Mebbe u
shd try cooledit on windows...or sox or esps/entropy (commercial) on
linux.

Mandar
--- khaifahaluk <> wrote:
> i'm new here, i am doing my university project on speech
> recognition,
> if somebody could tell me how to convert recorded speech sampling?
> i've already try using resample code from matlab, but the result
> was
> that the sound of speech file dosen't sound very nice. the code
> that
> i use was shown below: > [y,Fs,bit] = wavread('test8k.wav');
>
> Fs_new = 11025; %the new sampling rate
> [p q] = rat(Fs_new/Fs,0.0001);
> new_speech = resample(y,p,q);
> [filename, pathname] = uiputfile('*.wav', 'Save Data to Wave
> File');
> if filename ~= 0
> wavwrite(new_speech,Fs_new,[pathname filename])
> end
> clear; =====
-------------------------------------
Its not life that weighs us down,
Its how we carry it.
------------------------------------

__________________________________




(You need to be a member of matlab -- send a blank email to matlab-subscribe@yahoogroups.com )

Re: how to convert recorded speech sampling? - n_abhi - Jan 14 16:19:00 2004

Hi,

U can try using interpolate function.

[y,Fs,bit] = wavread('test8k.wav');

Fs_new = 11025; %the new sampling rate
p = rat(Fs_new/Fs);
new_speech = interp(y,p);

regards,
Abhijit --- In , "khaifahaluk" <khaifahaluk@y...> wrote:
> i'm new here, i am doing my university project on speech
recognition,
> if somebody could tell me how to convert recorded speech sampling?
> i've already try using resample code from matlab, but the result
was
> that the sound of speech file dosen't sound very nice. the code
that
> i use was shown below: > [y,Fs,bit] = wavread('test8k.wav');
>
> Fs_new = 11025; %the new sampling rate
> [p q] = rat(Fs_new/Fs,0.0001);
> new_speech = resample(y,p,q);
> [filename, pathname] = uiputfile('*.wav', 'Save Data to Wave File');
> if filename ~= 0
> wavwrite(new_speech,Fs_new,[pathname filename])
> end
> clear;




(You need to be a member of matlab -- send a blank email to matlab-subscribe@yahoogroups.com )

Re: how to convert recorded speech sampling? - Fajar Suryawan - Jan 22 3:08:00 2004


Hi Khaifahaluk,

You can use SoX (Sound eXchange) instead of Matlab.
Quite handy software. It's text-base though.
Resampling, converting, fading,..., it's all there.

Visit this:

http://sox.sourceforge.net/

fajar
--- In , "khaifahaluk" <khaifahaluk@y...>
wrote:
> i'm new here, i am doing my university project on speech
recognition,
> if somebody could tell me how to convert recorded speech sampling?
> i've already try using resample code from matlab, but the result
was
> that the sound of speech file dosen't sound very nice. the code
that
> i use was shown below: > [y,Fs,bit] = wavread('test8k.wav');
>
> Fs_new = 11025; %the new sampling rate
> [p q] = rat(Fs_new/Fs,0.0001);
> new_speech = resample(y,p,q);
> [filename, pathname] = uiputfile('*.wav', 'Save Data to Wave
File');
> if filename ~= 0
> wavwrite(new_speech,Fs_new,[pathname filename])
> end
> clear;




(You need to be a member of matlab -- send a blank email to matlab-subscribe@yahoogroups.com )