Speech settings updated, no large decimals for settings. Also changing with quick settings keys now applies across window changes.

This commit is contained in:
Storm Dragon committed 2026-10-25 19:35:55 -04:00
1 parent 7ae2801e53
commit 6ee0454fbe
17 files changed
+406 -15

No files matched your search

+2 -1
View File
@@ -11,6 +11,7 @@ package preferences
import "C"
import (
"math"
"sort"
"strings"
"unsafe"
@@ -142,7 +143,7 @@ func (session *uiSession) getEchoVoice() (config.Voice, string) {
{"echoRateScale", &voice.Rate}, {"echoPitchScale", &voice.AveragePitch}, {"echoVolumeScale", &voice.Gain},
} {
id := C.CString(item.id)
value := float64(C.prefs_number_value(id))
value := math.Round(float64(C.prefs_number_value(id))*10) / 10
C.free(unsafe.Pointer(id))
*item.target = &value
}