sfortis / openai_tts

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

Added a configuration but no audio #15

Open junalmeida opened 3 months ago

junalmeida commented 3 months ago

I've added a configuration as per instructions, but I can't hear any audio. Is there any setting missing?

Here is what it looks like: The device: image

The service call:

service: tts.speak
data:
  cache: true
  media_player_entity_id: media_player.vlc_telnet
  message: Test
target:
  entity_id: tts.openai_tts_nova

When I run it, I hear nothing, but UI shows as it succeeded.

This is the only log I can say it may be related to this, but I'm not 100% sure, because it is related to tags and this shouldn't stop it from playing.

2024-06-19 09:09:58.141 ERROR (MainThread) [homeassistant.components.tts] ID3 tag error: can't sync to MPEG frame

The media_player seems to be working normally, as I can use other tts services (like google translator google_say service) and I can hear it.

Thanks for your help.

sfortis commented 3 months ago

That's strange. I've connected my VLC (Windows, 3.0.20) using the Telnet interface and the integration works fine.

Integration provides just a plain MP3 file with TTS content. Check your /config/tts folder, and normally you'll find the cached MP3 file there from the TTS engine. Can you play it?

image

Flight777 commented 2 months ago

Same issue for me, can't get it to work. I see the MP3, but only very small file size and when I try to play VLC says it's corrupted.