nimroddolev / chime_tts

A custom Home Assistant integration to play combined audio files before and/or after text-to-speech (TTS) messages
https://nimroddolev.github.io/chime_tts/
MIT License
149 stars 12 forks source link

2024.4: Gender is no longer an option for Nabu Casa Voice #104

Closed Coder84619 closed 2 months ago

Coder84619 commented 3 months ago

System Health details

--

Checklist

Describe the issue

HA 2024.4 threw a warning that for the Nabu Casa voice, the "gender" option is deprecated. You now need to use the "voice" option. Please update chime to use the new "voice" option.

Reproduction steps

  1. Install HA 2024.4
  2. Call ChimeTTS with the Nabu casa voice
  3. See a warning pop up ...

Debug logs

--

Diagnostics dump

No response

nimroddolev commented 2 months ago

Thanks @Coder84619.

I just released a new beta which replaces the deprecated gender parameter with voice. I'd appreciate it if you could please install the new version and let me know if it's working for you, as well as any other feedback you might have.

To install the new beta version:

  1. Open the Chime TTS repository in HACS
  2. Click on the button in the top right
  3. Select the ↻ Redownload option
  4. Enable the Show beta versions option (it may take a moment to update the list)
  5. Select version v1.0.1-beta2 from the updated version drop-down list
  6. Restart Home Assistant
Coder84619 commented 2 months ago

@nimroddolev I can confirm the beta resolves the issue. My only tip would be to add male/female drop down to the voice options. I had to google nabua casa TTS to find out the voice options.

nimroddolev commented 2 months ago

Good to hear, thank you for checking.

I'm not sure I understood what you meant by adding a male/female drop down. I can't find any documentation for using gender now that it's been deprecated. Could you please explain what you meant?

Coder84619 commented 2 months ago

well I manually typed "male" or "female" in the "voice" box and the voice changed to male or female.

nimroddolev commented 2 months ago

Strange, when I run the following I hear the standard female voice:

service: chime_tts.say
target:
  entity_id: media_player.kitchen
data:
  volume_level: 1
  tts_platform: cloud
  voice: male
  message: hi there
Coder84619 commented 2 months ago

Odd, as I always get the male voice. Never knew there was a female before I typed it in the field.

nimroddolev commented 2 months ago

Odd indeed. Could you please share your YAML? I can only change the voice's gender by selecting a male/female voice and not by defining the gender.

Coder84619 commented 2 months ago

I've never heard the female voice until I played with the "Voice"/Gender option. I didn't even know she existed.

Male voice:

service: chime_tts.say
target:
  entity_id: media_player.google_speaker_office
data:
  chime_path: chord
  end_chime_path: chord
  offset: 450
  final_delay: 0
  tts_speed: 100
  tts_pitch: 0
  volume_level: 0.55
  message: Meeting in two minutes.
  tts_platform: cloud
nimroddolev commented 2 months ago

I am closing this issue. Please reopen it if you feel it has not been resolved.