I have a problem when I play the sound in matlab is ok, I create a wav file and when I play this file I can barely hear the sound. I use audiowrite(filename,y,Fs);

 채택된 답변

Jan
Jan 2018년 2월 4일

0 개 추천

This leaves some space for interpretations.
  • Are your earphones connected but you expect the sound to come from the speakers?
  • Is the sound stores in y very silent? See max(abs(y)) and class(y)
  • If the frequency Fs is chosen such, that the sound cannot be played by your speaker or heard by you? The frequency of the signal in y matters also.
  • Do you try to play the sound in an external player program, but its sound output is disabled?
So please post the code you use to create the signal and attach the sound file. Mention if you can hear the signal using sound and which software you use to play the sound. Can you use this tool to hear any other sound files with the expected level?

댓글 수: 3

Jakub Kopka
Jakub Kopka 2018년 2월 4일
I use LPC to create this filie before use my lpc code: max(abs(y)) = 0.2519 class(y) = double after use LPC: max(abs(y)) = 0.0101 class(y) = double The quiet voice is only for records from microphone
Jan
Jan 2018년 2월 4일
편집: Jan 2018년 2월 4일
max(abs(y)) = 0.0101? What do you expect for such a tiny amplitude? It is a very silent signal. It is louder, if you amplify it:
y = y / max(abs(y));
Now it is scaled such, that the maximum is at 1.0 .
Jakub Kopka
Jakub Kopka 2018년 2월 4일
Thank you! it's work.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Audio I/O and Waveform Generation에 대해 자세히 알아보기

태그

질문:

2018년 2월 3일

댓글:

2018년 2월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by