Chatterbox-TTS-Server icon indicating copy to clipboard operation
Chatterbox-TTS-Server copied to clipboard

Adding parameters to output audio

Open credo99 opened this issue 11 months ago • 1 comments

Hi, related to issue #100 I tried a tweak of server.py at line 1181: suggested_filename_base = f"tts_output_{timestamp_str}" trying to embed also the parameters used in audio generation in a short form like suggested_filename_base = f"tts_output_T{temperature}E{exaggeration}W{cfg_weights}S{chunk_size}_{timestamp_str}" that would produce a filename of this type (stripping the dots in the parameters for windows filename compatibility) : tts_output_T_08_E_05_W_11_S_240......wav so I could have a visual information when comparing audios generated with different presets but I could not get it done (I am not a professional Python coder ) so I would be grateful if there would be a chance to have this tweak (probably with a checkbox in the ui that would trigger it or even as boolean variable in server.py that one could change in order that the output audio should be generated in this format. It really helps for selecting the best preset especially when dealing with large text-blocks where different values in exaggeration, cfg_weights and chunk_size in my experience make the difference between a clean file and one garbled with hallucinations. Thanks

credo99 avatar Jan 01 '26 11:01 credo99

Fixed in b9862f0. Output filenames now include the generation parameters. For example: tts_output_T08_E05_W05_20260330_120000.wav where T=temperature, E=exaggeration, W=cfg_weight. This makes it easy to compare outputs across different presets.

devnen avatar Mar 30 '26 13:03 devnen