PranavdbhatArtpark commited on
Commit
9b48190
·
verified ·
1 Parent(s): b9102cf

Set speaking speed (length_scale): male 1.43, female 1.11

Browse files

At length_scale 1.0 the models speak too fast. This sets model_args.length_scale in each config.json:

- Male (Tamil and Sourashtra script): 1.43 (target 0.7x of the current speed)
- Female (Tamil and Sourashtra script): 1.11 (target 0.9x of the current speed)

inference.py reads the value from config.json, so no code change is needed. Only this one value changes in each config. The README gets a short Speaking Speed section explaining it.

README.md CHANGED
@@ -78,6 +78,19 @@ The Tamil-script and Sourashtra-script models produce speech from the same speak
78
 
79
  ---
80
 
 
 
 
 
 
 
 
 
 
 
 
 
 
81
  ## Training
82
 
83
  | Parameter | Value |
 
78
 
79
  ---
80
 
81
+ ## Speaking Speed
82
+
83
+ Each `config.json` sets `model_args.length_scale`, which controls speaking speed (higher = slower):
84
+
85
+ | Speaker | `length_scale` |
86
+ |---------|----------------|
87
+ | Male | 1.43 |
88
+ | Female | 1.11 |
89
+
90
+ At the default of 1.0 the male models speak too fast (about 1/0.7 of natural speed) and the female models slightly fast (about 1/0.9). To change the speed, edit `length_scale` in the model's `config.json`.
91
+
92
+ ---
93
+
94
  ## Training
95
 
96
  | Parameter | Value |
Sourashtra-Female_Script-sourashtra/config.json CHANGED
@@ -127,7 +127,7 @@
127
  "use_sdp": true,
128
  "noise_scale": 1.0,
129
  "inference_noise_scale": 0.667,
130
- "length_scale": 1,
131
  "noise_scale_dp": 1.0,
132
  "inference_noise_scale_dp": 1.0,
133
  "max_inference_len": null,
 
127
  "use_sdp": true,
128
  "noise_scale": 1.0,
129
  "inference_noise_scale": 0.667,
130
+ "length_scale": 1.11,
131
  "noise_scale_dp": 1.0,
132
  "inference_noise_scale_dp": 1.0,
133
  "max_inference_len": null,
Sourashtra-Female_Script-tamil/config.json CHANGED
@@ -127,7 +127,7 @@
127
  "use_sdp": true,
128
  "noise_scale": 1.0,
129
  "inference_noise_scale": 0.667,
130
- "length_scale": 1,
131
  "noise_scale_dp": 1.0,
132
  "inference_noise_scale_dp": 1.0,
133
  "max_inference_len": null,
 
127
  "use_sdp": true,
128
  "noise_scale": 1.0,
129
  "inference_noise_scale": 0.667,
130
+ "length_scale": 1.11,
131
  "noise_scale_dp": 1.0,
132
  "inference_noise_scale_dp": 1.0,
133
  "max_inference_len": null,
Sourashtra-Male_Script-sourashtra/config.json CHANGED
@@ -127,7 +127,7 @@
127
  "use_sdp": true,
128
  "noise_scale": 1.0,
129
  "inference_noise_scale": 0.667,
130
- "length_scale": 1,
131
  "noise_scale_dp": 1.0,
132
  "inference_noise_scale_dp": 1.0,
133
  "max_inference_len": null,
 
127
  "use_sdp": true,
128
  "noise_scale": 1.0,
129
  "inference_noise_scale": 0.667,
130
+ "length_scale": 1.43,
131
  "noise_scale_dp": 1.0,
132
  "inference_noise_scale_dp": 1.0,
133
  "max_inference_len": null,
Sourashtra-Male_Script-tamil/config.json CHANGED
@@ -127,7 +127,7 @@
127
  "use_sdp": true,
128
  "noise_scale": 1.0,
129
  "inference_noise_scale": 0.667,
130
- "length_scale": 1,
131
  "noise_scale_dp": 1.0,
132
  "inference_noise_scale_dp": 1.0,
133
  "max_inference_len": null,
 
127
  "use_sdp": true,
128
  "noise_scale": 1.0,
129
  "inference_noise_scale": 0.667,
130
+ "length_scale": 1.43,
131
  "noise_scale_dp": 1.0,
132
  "inference_noise_scale_dp": 1.0,
133
  "max_inference_len": null,