%T#13984 Task opened by lenzone10: Rockbox Utility: add a SAPI5 voice volume control (Attachment added)
Rockbox via rockbox-sf <[email protected]>
| Newsgroups | gmane.comp.systems.archos.rockbox.sourceforge |
|---|---|
| Message-ID | <[email protected]> |
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY. A new Flyspray task has been opened. Details are below. User who did this - Alessio Lenzi (lenzone10) Attached to Project - Rockbox Summary - Rockbox Utility: add a SAPI5 voice volume control Task Type - Patches Category - Rockbox Utility (rbutil) Status - Unconfirmed Assigned To - Operating System - All players Severity - Media Priority - Molto Bassa Reported Version - Rbutil git Due in Version - Undecided Due Date - Undecided Details - Rockbox Utility currently exposes SAPI5 voice speed but not the SAPI voice volume. The encoder volume setting is applied after synthesis, so it cannot prevent clipping or distortion already present in the generated wave file. The attached patch adds a Volume control to the SAPI5 TTS configuration. The value is passed to the standard SpVoice.Volume property before synthesis. User interface ============== A numeric Volume field is added directly after Speed in the existing dynamically generated SAPI5 configuration dialog. * Range: 0 to 100 * Default: 100 * The value is saved in the Rockbox Utility configuration * No other dialog layout is changed The new label uses Qt translation support. A screenshot of the English interface is attached as: RockboxUtility-SAPI5-volume-English.png Implementation ============== The change: * adds a persistent per-TTS volume setting; * passes /volume to sapi_voice.vbs; * applies the value to oSpVoice.Volume before writing wave files; * uses the same setting for Test TTS, voice-file generation and Talk clips; * keeps the default at 100 to preserve the previous behaviour. Verification ============ Environment: * Windows 11 64 bit * Qt 6.8.3 * MinGW 13.1.0 * SAPI5 * Licensed Vocalizer Expressive Paola Harpo 22 kHz * HIFI WALKER H2 running Rockbox With SAPI volume 100, this Vocalizer voice produced audibly distorted output. With SAPI volume 70 and encoder volume 1.0, the distortion was removed. The following tests completed successfully: * repeated Test TTS playback; * complete Italian voice-file generation; * use of the generated Italian voice file on the player; * Talk clip generation; * persistence of the volume setting after restarting Rockbox Utility; * keyboard and NVDA navigation of the added numeric control. The project compiled successfully with Qt 6.8.3 and MinGW 13.1.0. Since installed SAPI5 engines can behave differently, additional testing with other voices and Windows configurations is recommended before accepting the change. Base revision ============= b616047311 Attached files ============== * rbutil-sapi5-volume.dif * RockboxUtility-SAPI5-volume-English.png One or more files have been attached. More information can be found at the following URL: https://www.rockbox.org/tracker/task/13984 You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above. -- rockbox-sf mailing list [email protected] https://lists.haxx.se/mailman/listinfo/rockbox-sf