mimic3 icon indicating copy to clipboard operation
mimic3 copied to clipboard

Home Assistant compatibility

Open q20 opened this issue 2 years ago • 7 comments

Hey there

Attempting to add Mimic 3 (docker container) as a drop-in replacement for MaryTTS is not working:

I have added the following to the configuration.yaml:

tts:
  - platform: marytts
    host: "localhost"
    port: 59125
    language: "en_UK"
    voice: apope_low

When checking the configuration's validity, the following error is thrown:

image

If I swap en_UK to en_GB, this check passes:

image

So, is this a Home Assistant or Mimic 3 issue? Can I manually rename the en_UK voice to en_GB?

q20 avatar Jun 30 '22 10:06 q20

Hey thanks for the heads up on this.

Will have to take a look and see what the best approach is here.

krisgesling avatar Jun 30 '22 23:06 krisgesling

Hey @q20 - can you try removing the language parameter and including the full voice key for voice?

That would make your config:

tts:
  - platform: marytts
    host: "localhost"
    port: 59125
    voice: en_UK/apope_low

krisgesling avatar Jun 30 '22 23:06 krisgesling

Ah, that does indeed work! Lovely stuff. Quick followup... how about:

    effect:
      Rate: "durScale:1.75"

This has no effect. I cannot seem to find a way to slow the voice down.

q20 avatar Jul 01 '22 10:07 q20

Ah, that does indeed work! Lovely stuff. Quick followup... how about:

    effect:
      Rate: "durScale:1.75"

This has no effect. I cannot seem to find a way to slow the voice down.

Try

    effect:
      Rate: "lengthScale:1.75"

tuxfoo avatar Jul 01 '22 12:07 tuxfoo

I'm afraid no permutation of that worked. In the end, I simply edited the config.json file for that specific voice:

    "inference": {
        "length_scale": 1.8,
        "noise_scale": 0.333,
        "noise_w": 0.333,
        "auto_append_text": "."

q20 avatar Jul 01 '22 13:07 q20

This is a TODO for me. I need to add more parameters to the MaryTTS interface :+1:

synesthesiam avatar Jul 02 '22 14:07 synesthesiam

Thanks. I guess we keep this open as a feature request?

q20 avatar Jul 04 '22 08:07 q20