Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Commit

Permalink
Change default noise scale to 0.667
Browse files Browse the repository at this point in the history
  • Loading branch information
synesthesiam committed Oct 21, 2021
1 parent 7b69797 commit fbcd8a0
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ Use `CTRL+D` or `CTRL+C` to exit.

The GlowTTS voices support two additional parameters:

* `--noise-scale` - determines the speaker volatility during synthesis (0-1, default is 0.333)
* `--noise-scale` - determines the speaker volatility during synthesis (0-1, default is 0.667)
* `--length-scale` - makes the voice speaker slower (> 1) or faster (< 1)

### Vocoder Settings
Expand Down
2 changes: 1 addition & 1 deletion larynx/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.1
1.0.2
2 changes: 1 addition & 1 deletion larynx/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
import gruut
import numpy as np
import onnxruntime
import phonemes2ids

import phonemes2ids
from larynx.audio import AudioSettings
from larynx.constants import (
InferenceBackend,
Expand Down
4 changes: 2 additions & 2 deletions larynx/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,8 +467,8 @@ def get_args():
parser.add_argument(
"--noise-scale",
type=float,
default=0.333,
help="Noise scale (default: 0.333, GlowTTS only)",
default=0.667,
help="Noise scale (default: 0.667, GlowTTS only)",
)
parser.add_argument(
"--length-scale",
Expand Down
2 changes: 1 addition & 1 deletion larynx/glow_tts.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def __init__(self, config: TextToSpeechModelConfig):
else:
raise ValueError(f"Unknown backend: {backend}")

self.noise_scale = 0.333
self.noise_scale = 0.667
self.length_scale = 1.0

# -------------------------------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions larynx/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@
parser.add_argument(
"--noise-scale",
type=float,
default=0.333,
help="Noise scale (voice volatility) used if not set in API call (default: 0.333)",
default=0.667,
help="Noise scale (voice volatility) used if not set in API call (default: 0.667)",
)
parser.add_argument(
"--length-scale",
Expand Down
8 changes: 4 additions & 4 deletions larynx/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ paths:
example: 0.002
- in: query
name: noiseScale
description: 'Volatility of speaker (0-1, default: 0.333, GlowTTS only)'
description: 'Volatility of speaker (0-1, default: 0.667, GlowTTS only)'
schema:
type: number
example: 0.333
example: 0.667
- in: query
name: lengthScale
description: 'Speed of speaker (default: 1.0, faster &lt; 1 &lt; slower, GlowTTS only)'
Expand Down Expand Up @@ -96,10 +96,10 @@ paths:
example: 0.002
- in: query
name: noiseScale
description: 'Volatility of speaker (0-1, default: 0.333, GlowTTS only)'
description: 'Volatility of speaker (0-1, default: 0.667, GlowTTS only)'
schema:
type: number
example: 0.333
example: 0.667
- in: query
name: lengthScale
description: 'Speed of speaker (default: 1.0, faster &lt; 1 &lt; slower, GlowTTS only)'
Expand Down
4 changes: 2 additions & 2 deletions larynx/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ <h1>Larynx</h1>
<label for="denoiser-strength" title="Denoiser strength (0 to disable)">Denoiser:</label>
<input type="number" id="denoiser-strength" name="denoiser" size="5" min="0" max="1" step="0.001" value="0.005">
<label for="noise-scale" class="ml-2" title="Voice volatility">Noise:</label>
<input type="number" id="noise-scale" name="noiseScale" size="5" min="0" max="1" step="0.001" value="0.333">
<input type="number" id="noise-scale" name="noiseScale" size="5" min="0" max="1" step="0.001" value="0.667">
<label for="length-scale" class="ml-2" title="Voice speed (< 1 is faster)">Length:</label>
<input type="number" id="length-scale" name="lengthScale" size="5" min="0" step="0.001" value="1">
</div>
Expand Down Expand Up @@ -157,7 +157,7 @@ <h1>Larynx</h1>
var vocoderList = q('#vocoder-list')
var vocoder = vocoderList.options[vocoderList.selectedIndex].value
var denoiserStrength = q('#denoiser-strength').value || '0'
var noiseScale = q('#noise-scale').value || '0.333'
var noiseScale = q('#noise-scale').value || '0.667'
var lengthScale = q('#length-scale').value || '1.0'
var ssml = q('#ssml').value || 'false'

Expand Down

0 comments on commit fbcd8a0

Please sign in to comment.