quiet sound after save

2 views (last 30 days)
Jakub Kopka
Jakub Kopka on 3 Feb 2018
Commented: Jakub Kopka on 4 Feb 2018
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
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
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 .
Jakub Kopka
Jakub Kopka on 4 Feb 2018
Thank you! it's work.

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!