TTS icon indicating copy to clipboard operation
TTS copied to clipboard

trim_silence in processor should get sr. [Bug]

Open amitaie opened this issue 2 years ago • 1 comments

Describe the bug

Hello, I think there is a bug in the processor. when we load_wav we can get different sr than self.sample_rate in order to resample the audio to it. the function trim_silence is using sample rate in order to determinate the margin but it will always use self.sample_rate.

To Reproduce

.

Expected behavior

No response

Logs

No response

Environment

wget https://raw.githubusercontent.com/coqui-ai/TTS/main/TTS/bin/collect_env_info.py
python collect_env_info.py

Additional context

No response

amitaie avatar Sep 13 '22 07:09 amitaie

It sounds like a feature request to me as it does not fail any code.

Feel free to shoot a ✨PR✨

erogol avatar Sep 19 '22 09:09 erogol

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You might also look our discussion channels.

stale[bot] avatar Oct 19 '22 19:10 stale[bot]