@@ -5,12 +5,12 @@ const SETTING_SECTION_STEP_EDITX = "Step Audio EditX (Inline Tags)";
55const SETTING_SECTION_RESTORE_VC = "Voice Restoration (<restore> Tags)" ;
66
77// Shared function to send settings to backend
8- async function sendSettingsToBackend ( ) {
9- try {
10- const precision = app . ui . settings . getSettingValue ( "TTSAudioSuite.InlineEditTags.Precision" , "auto" ) ;
11- const device = app . ui . settings . getSettingValue ( "TTSAudioSuite.InlineEditTags.Device" , "auto" ) ;
12- const vcEngine = app . ui . settings . getSettingValue ( "TTSAudioSuite.RestoreTags.VCEngine" , "chatterbox_23lang" ) ;
13- const cosyvoiceVariant = app . ui . settings . getSettingValue ( "TTSAudioSuite.RestoreTags.CosyVoiceVariant" , "RL" ) ;
8+ async function sendSettingsToBackend ( ) {
9+ try {
10+ const precision = app . ui . settings . getSettingValue ( "TTSAudioSuite.InlineEditTags.Precision" ) ;
11+ const device = app . ui . settings . getSettingValue ( "TTSAudioSuite.InlineEditTags.Device" ) ;
12+ const vcEngine = app . ui . settings . getSettingValue ( "TTSAudioSuite.RestoreTags.VCEngine" ) ;
13+ const cosyvoiceVariant = app . ui . settings . getSettingValue ( "TTSAudioSuite.RestoreTags.CosyVoiceVariant" ) ;
1414
1515 console . log ( `TTS Audio Suite: Sending settings to backend - precision=${ precision } , device=${ device } , vcEngine=${ vcEngine } , cosyvoiceVariant=${ cosyvoiceVariant } ` ) ;
1616
@@ -42,11 +42,11 @@ app.registerExtension({
4242 name : "TTS_Audio_Suite.Settings" ,
4343 settings : [
4444 {
45- id : "TTSAudioSuite.InlineEditTags.Precision" ,
46- name : "Model Precision for Inline Edit Tags" ,
47- type : "combo" ,
48- defaultValue : "auto" ,
49- options : [ "auto" , "fp32" , "fp16" , "bf16" , "int8" , "int4" ] ,
45+ id : "TTSAudioSuite.InlineEditTags.Precision" ,
46+ name : "Model Precision for Inline Edit Tags" ,
47+ type : "combo" ,
48+ default : "auto" ,
49+ options : [ "auto" , "fp32" , "fp16" , "bf16" , "int8" , "int4" ] ,
5050 category : [ SETTING_CATEGORY , SETTING_SECTION_STEP_EDITX , "Model Precision" ] ,
5151 tooltip :
5252 "Torch dtype for Step Audio EditX model when using inline edit tags (<Laughter>, <style:whisper>, etc.).\n" +
@@ -55,11 +55,11 @@ app.registerExtension({
5555 "⚠️ IMPORTANT: Refresh browser (F5) after changing settings for them to take effect."
5656 } ,
5757 {
58- id : "TTSAudioSuite.InlineEditTags.Device" ,
59- name : "Device for Inline Edit Tags" ,
60- type : "combo" ,
61- defaultValue : "auto" ,
62- options : [ "auto" , "cuda" , "cpu" , "xpu" ] ,
58+ id : "TTSAudioSuite.InlineEditTags.Device" ,
59+ name : "Device for Inline Edit Tags" ,
60+ type : "combo" ,
61+ default : "auto" ,
62+ options : [ "auto" , "cuda" , "cpu" , "xpu" ] ,
6363 category : [ SETTING_CATEGORY , SETTING_SECTION_STEP_EDITX , "Device" ] ,
6464 tooltip :
6565 "Device for Step Audio EditX model when using inline edit tags (<Laughter>, <style:whisper>, etc.).\n" +
@@ -68,11 +68,11 @@ app.registerExtension({
6868 "⚠️ IMPORTANT: Refresh browser (F5) after changing settings for them to take effect."
6969 } ,
7070 {
71- id : "TTSAudioSuite.RestoreTags.VCEngine" ,
72- name : "Voice Conversion Engine for <restore> Tags" ,
73- type : "combo" ,
74- defaultValue : "chatterbox_23lang" ,
75- options : [ "chatterbox_23lang" , "chatterbox" , "cosyvoice" ] ,
71+ id : "TTSAudioSuite.RestoreTags.VCEngine" ,
72+ name : "Voice Conversion Engine for <restore> Tags" ,
73+ type : "combo" ,
74+ default : "chatterbox_23lang" ,
75+ options : [ "chatterbox_23lang" , "chatterbox" , "cosyvoice" ] ,
7676 category : [ SETTING_CATEGORY , SETTING_SECTION_RESTORE_VC , "VC Engine" ] ,
7777 tooltip :
7878 "Voice conversion engine used for <restore> tags in post-processing.\n" +
@@ -82,11 +82,11 @@ app.registerExtension({
8282 "⚠️ IMPORTANT: Refresh browser (F5) after changing settings for them to take effect."
8383 } ,
8484 {
85- id : "TTSAudioSuite.RestoreTags.CosyVoiceVariant" ,
86- name : "CosyVoice Model Variant for <restore> Tags" ,
87- type : "combo" ,
88- defaultValue : "RL" ,
89- options : [ "RL" , "standard" ] ,
85+ id : "TTSAudioSuite.RestoreTags.CosyVoiceVariant" ,
86+ name : "CosyVoice Model Variant for <restore> Tags" ,
87+ type : "combo" ,
88+ default : "RL" ,
89+ options : [ "RL" , "standard" ] ,
9090 category : [ SETTING_CATEGORY , SETTING_SECTION_RESTORE_VC , "CosyVoice Variant" ] ,
9191 tooltip :
9292 "CosyVoice model variant to use for voice restoration (only applies when VC Engine is CosyVoice).\n" +
0 commit comments