LG Smart TV - Disable TTS in UI?

Hey,
currently playing arround with HA and im in the process of cleaning up the ui and arranging everything in groups.
Anyway, i noticed that the TTS function from the UI is not working my my LG Smart TV.

2018-03-14 21:52:19 ERROR (MainThread) [homeassistant.core] Error executing service <ServiceCall media_player.play_media: media_content_id=http://192.168.1.8:8123/api/tts_proxy/aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d_en_-_google.mp3, media_content_type=music, entity_id=['media_player.lg_smart_tv']>
Traceback (most recent call last):
  File "/usr/src/app/homeassistant/core.py", line 1010, in _event_to_service_call
    yield from service_handler.func(service_call)
  File "/usr/src/app/homeassistant/components/media_player/__init__.py", line 402, in async_service_handler
    yield from getattr(player, method['method'])(**params)
  File "/usr/local/lib/python3.6/asyncio/futures.py", line 327, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/local/lib/python3.6/asyncio/tasks.py", line 250, in _wakeup
    future.result()
  File "/usr/local/lib/python3.6/asyncio/futures.py", line 243, in result
    raise self._exception
  File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/app/homeassistant/components/media_player/__init__.py", line 693, in play_media
    raise NotImplementedError()
NotImplementedError

Tried to find out a bit more about this and it seems that this isnt supported on some mediaplayers, now i was wondering can i get rid of the TTS Field in the UI for this player? I want to keep it for for my kodi box tho.

looks to me that it’s just not yet implemented.

maybe you should change this to feature request so people can vote for it and hopefully will be implemented (I’d vote for it :slight_smile:

I dont really know if this is possible at all. Atleast i have not seen any of the python remote programs (for the webos tvs) to support a function to play a mediafile. And the HA component is probably based on one of those.

Maybe you could point the webbrowser app to a url with the mediafile but i doubt that this is a good solution as it was very slow when i used it in the past. i can try this later and report back.

But to stay on the main topic, there is no easy way to get this out of the ui?

Well, my LG TV can reproduce a MP3 file, I have never tried to repro an online mp3 though :slight_smile:

Mp3 playback works fine through the integrated mediaplayer app, but its not possible as far as i know to open the app and direct it to play any file (not even talking about url) using remote commands.

yup, you’re right … tried couple of things and can’t make it work …

was a nice try :slight_smile:

I tried to send the command to open the tts mp3 to tv using the builtin webbrowser and it opens up correctly but wont playback the file.
I copied the url out of the HA logs and it works on all other browsers so this is no workarround either.

I gues this funcutionalty can be removed this.

Hi,

I think that is API changed and tts fuctionality can be implemented whith this LG endpoint API.

Regards,
Jeff