ClemensGruber / climart-gptree

MIT License
2 stars 1 forks source link

Increase maximum volume for TTS output #26

Open ClemensGruber opened 7 months ago

ClemensGruber commented 7 months ago

We did some tests in loud environment and noticed a too low volume with the Anker PowerConf S330 USB conference system, even with volume control of the speaker on max position. While playing a seconde sound file we noticed that the parallel played second file was much louder than the voice of GPTree and so global system / speaker volume seems not to be the limitation. The speaker can output loud sound!

1. Check if the used software player could be the problem:

2. Check if the encoded file has to less volume

ClemensGruber commented 7 months ago
  1. Check if the used software player could be the problem:

    For the second file we used ffplay as software player. For the first (GPTree) file we used os.system(f"afplay {filename_output}") Check if there is a volume parameter in ffplay vs. afplay what could cause the difference

Inspect both files and analyze it on PC

So different volume levels are caused by the recording, not by the (software) player we used. The pixabay file sound overdriven (much more on the PC than on the Anker speaker), this is "too much", but we have room for improvement on the Google TTS service file and will try to improve volume range to get a louder sound!