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

 Réponse acceptée

Jan
Jan le 4 Fév 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 commentaires

Jakub Kopka
Jakub Kopka le 4 Fév 2018
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 le 4 Fév 2018
Modifié(e) : Jan le 4 Fév 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 le 4 Fév 2018
Thank you! it's work.

Connectez-vous pour commenter.

Plus de réponses (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by