Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

init and concatenate str error #1

Closed
vzoltan opened this issue Nov 4, 2021 · 2 comments
Closed

init and concatenate str error #1

vzoltan opened this issue Nov 4, 2021 · 2 comments

Comments

@vzoltan
Copy link

vzoltan commented Nov 4, 2021

Hi, i got two errors with your integration:
my configuration.yaml is:

    #https://github.com/yassineselmi/homeassistant-azure-tts
  - platform: azure_tts
    service_name: tts_microsoft_noemi_notok
    cache: false
    api_key: ####################
    language: hu-HU
    gender: Female
    #type: hu-HU-NoemiNeural
    type: NoemiNeural
    rate: 100
    volume: 100
    pitch: default
    contour: (0, 0) (100, 100)
    region: westeurope

my automation is:

alias: Announcement, Time (Microsoft)
description: ''
trigger:
  - platform: time_pattern
    minutes: /15
condition: []
action:
  - service: tts.tts_microsoft_noemi_notok
    data:
      entity_id: media_player.living_room_speaker, media_player.bedroom_speaker
      message: {{ now().hour}} óra {{ "%0.02d" | format(now().strftime("%-M") | int) }} perc
mode: single

Error1

Error on init TTS: No TTS from azure_tts for 'message: 20 óra 30 perc'
8:30:51 PM – (ERROR) Text-to-Speech (TTS)

Logger: homeassistant.components.tts
Source: components/tts/__init__.py:188
Integration: Text-to-Speech (TTS) (documentation, issues)
First occurred: 8:30:51 PM (1 occurrences)
Last logged: 8:30:51 PM

Error on init TTS: No TTS from azure_tts for 'message: 20 óra 30 perc'

Error2

Error occurred for Azure TTS: can only concatenate str (not "bytes") to str
8:30:51 PM – (ERROR) azure_tts (custom integration)

Logger: custom_components.azure_tts.tts
Source: custom_components/azure_tts/tts.py:415
Integration: azure_tts (documentation, issues)
First occurred: 8:30:51 PM (1 occurrences)
Last logged: 8:30:51 PM

Error occurred for Azure TTS: can only concatenate str (not "bytes") to str

do you have a solution for this issue?

also id like to change the ptch of the voice a bit deeper, and at sample site (microsoft) and in azur, its posible to change this attribute. id like to use 0.9 for pitch and 1.2 for speed

Thanks,
Zoltan

ps:
with his integration it works:
https://github.com/georgezhao2010/azure_cognitive_speech

  - platform: azure_cognitive_speech
    service_name: tts_microsoft_noemi
    cache: false
    api_key: #############
    region: westeurope
    default_voice: Noemi
@vzoltan
Copy link
Author

vzoltan commented Nov 8, 2021

hi, any idea about this?

@yassineselmi
Copy link
Owner

Fixed in PR #2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants