HidekiKawahara / legacy_STRAIGHT

A vocoder framework which had been widely used in research community since 1999.
Apache License 2.0
176 stars 43 forks source link

Sound quality is bad by running the "quick start" example code #2

Closed fxw915 closed 5 years ago

fxw915 commented 5 years ago

Hi all, I ran the command line code in the quick start example on MATLAB R2018b. And the synthesized sound quality is really poor, filled with loud noise. Since I didn't modify the source code and the wav file, I am wondering if it is the issue with the MATLAB version or some bugs need to be fixed in source code.

HidekiKawahara commented 5 years ago

Thank you for your feedback. That is because the magnitude of the synthesized signal has a huge amplitude. max(abs(syntheszed_signal)) ans =

2.1297e+04

Please try to save the signal as follows. audiowrite('testSyn.wav', syntheszed_signal / max(abs(syntheszed_signal)) * 0.8, fs); I tested on Mac and Windows and found the synthesized signal sounds reasonable. Please find the generated file. Thank you again.

testSyn.wav.zip

fxw915 commented 5 years ago

@HidekiKawahara Thanks a lot! That solves the problem!