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);

 Accepted Answer

Jan
Jan on 4 Feb 2018

0 votes

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 Comments

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 on 4 Feb 2018
Edited: Jan on 4 Feb 2018
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 .
Thank you! it's work.

Sign in to comment.

More Answers (0)

Tags

Asked:

on 3 Feb 2018

Commented:

on 4 Feb 2018

Community Treasure Hunt

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

Start Hunting!