sfortis / openai_tts

OpenAI TTS custom component for HA
GNU General Public License v3.0
44 stars 15 forks source link

Missing agent #2

Closed BoKKeR closed 7 months ago

BoKKeR commented 8 months ago

image

Could you advice how to setup the AGENT ? Also in your video you call TTS, is this needed? If so how to set it up?

sfortis commented 8 months ago

Don't confuse them! Conversation is used to get a reply from assistants (like the build in home assistant or you can use OpenAI conversation to get replies via chatGPT (https://my.home-assistant.io/redirect/config_flow_start?domain=openai_conversation). TTS will render the reply to voice.

Remember, when you get the replies from OpenAI conversation, you need to extract only the actual message from json response using {{ gpt_response.response.speech.plain.speech }} template.

example:
alias: Execute TTS Service
service: tts.openai_tts_say
data:
  cache: false
  entity_id: media_player.home_group
  message: "{{ gpt_response.response.speech.plain.speech }}"
enabled: true
continue_on_error: true