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

MaryTTS emulation and Home Assistant #12

Closed
hawkeye217 opened this issue Apr 18, 2021 · 4 comments
Closed

MaryTTS emulation and Home Assistant #12

hawkeye217 opened this issue Apr 18, 2021 · 4 comments
Labels
enhancement New feature or request

Comments

@hawkeye217
Copy link

I'm having trouble setting up the MaryTTS component in Home Assistant to work with Larynx. In particular, there are several parameters that can be defined in yaml. The docs give this example:

tts:
  - platform: marytts
    host: "localhost"
    port: 59125
    codec: "WAVE_FILE"
    voice: "cmu-slt-hsmm"
    language: "en_US"
    effect:
      Volume: "amount:2.0;"

Larynx is up and running and I can generate speech via localhost:59125. I'd like to use a specific voice and quality setting with Home Assistant's TTS. I tried setting the following:

...
    voice: "harvard-glow_tts"
    language: "en_us"
...

But Home Assistant's log shows an error saying that "en_us" is not a valid language ("en_US" is, though).

What are the correct parameters necessary to use a specific voice? And would it be possible to use an effect key to set the voice quality (high, medium, low)?

@synesthesiam synesthesiam added the enhancement New feature or request label Apr 19, 2021
@hawkeye217
Copy link
Author

I noticed you pushed some code to make this work with this. Any chance of pushing up a new Docker image? I'd be able to test it right away.

@synesthesiam
Copy link
Contributor

I'll be updating Larynx this week, so I'll post here when I push a new version.

@synesthesiam
Copy link
Contributor

With Larynx 1.0, the "voice" field should be pretty flexible. Something like "harvard;low" will do the English harvard voice with low quality.

@hawkeye217
Copy link
Author

Tested it out and it works great. Thanks again! Closing this issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants