Error in audio uploading time.

Hi,
I am uploading an audio signal of 3 seconds in matlab, but after uploading it is showing 0.5 seconds audio and the signal is totally change. How can I change the time, so that I can listen full audio of 3 seconds and implement other operation on my 3 seconds audio. Please guide me.
Thanks in advance.
Capture.PNG

댓글 수: 9

Walter Roberson
Walter Roberson 2019년 8월 19일
How are you "uploading" the audio signal?
Sumair Hassan
Sumair Hassan 2019년 8월 19일
yes, I am uploading my own voice of 3 seconds.
Walter Roberson
Walter Roberson 2019년 8월 19일
Please post your code for "uploading" your voice.
Sumair Hassan
Sumair Hassan 2019년 8월 19일
load('norway.mat')
[y,fs] = audioread('norway.wav');
audioinfo('norway.wav')
plot(y);
play(norway);
title('Norway is a very beautiful country');
xlabel('Time(s)')
ylabel('Frequency(Hz)');
grid on;
play() is not a function by itself: it is primarily an audioplayer method, but you do not have any audioplayer objects -- not unless there is one in what you load()
If audiofino on the .wav file is showing 48000 then somehow you managed to create the file as if it were 48000 Hz.
Try
sound(y, 8000)
Sumair Hassan
Sumair Hassan 2019년 8월 20일
same issue. nothing changing.
Walter Roberson
Walter Roberson 2019년 8월 20일
Please attach norway.wav
You might need to zip it and attach the .zip
Sumair Hassan
Sumair Hassan 2019년 8월 22일
Hi Wave file is not uploading here.
Can you please tell me which one is the correct command for taking sum of 10 imfs and residual? I am comfused in this.
s= plus(sum(imf(5:10)),residual);
or
s= plus(sum(imf(5,10)),residual);
or
s= plus(sum(imf(5,10,:)),residual);
Walter Roberson
Walter Roberson 2019년 8월 22일
Zip the audio file. Upload the zip file.
I do not know what an imfs is in this context?
Some of what you wrote suggests that you might have 6 elements, not 10. Elements 5, 6, 7, 8, 9, 10 is a total of 6 elements.

답변 (1개)

Walter Roberson
Walter Roberson 2019년 8월 19일

0 개 추천

You need to tell audiowriter that the sample rate, FS, is 8000.

댓글 수: 1

Sumair Hassan
Sumair Hassan 2019년 8월 19일
How to change it? can you share the command fot it?
Thanks.

이 질문은 마감되었습니다.

질문:

2019년 8월 19일

마감:

2021년 8월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by