Need help - problem with Google Translate TTS + MPD

Hi,

I experience an issue with Google Translate TTS + MPD - It loses the last couple seconds of the word.
I downloaded the mp3 from tts folder & tried in window 10 laptop, sound fine
I guess there is no issue with Google Translate TTS but I cannot figure it out how to fix it.
Please help.

PS: I cannot attach the sound files here but it can be access through the below link
https://drive.google.com/drive/folders/1cXFEAZDP4oEMVulD067OB-atWm9FHhQ0?usp=sharing

I’m using Home Assistant v.0.98.5 with RPI3B+
See my configuration & automation set up below.

configuration.yaml:
tts:
  - platform: google_translate
media_player:
  - platform: mpd
    name: MPD_speaker
    host: localhost
switch:
  - platform: command_line
    switches:
      test_switch:
        command_on: ""
        command_off: ""
        friendly_name: Test Switch

automations.yaml
- id: Test_Switch_Duration
  alias: If Test Switch Stay, send Line message
  initial_state: true
  hide_entity: true
  trigger:
    platform: state
    entity_id: switch.test_switch
    to: 'on'
  action:
  - delay: 00:00:03
  - service: tts.google_translate_say
    entity_id: media_player.mpd_speaker
    data:
      message: Light was turned on
  - delay: 00:00:03
  - service: tts.google_translate_say
    entity_id: media_player.mpd_speaker
    data:
      message: Light was turned off
  - delay: 00:00:03

In case anyone stumbles upon this thread: I had the same issue. Tried a bunch of things, but no luck. It seems a broader issue as can be seen in this ticket, but it didn’t get resolved.

However, eventually I circumvented it thanks to this post. Basically, you have to add 2 seconds of silence at the end.

This is what my automation looks like:

  action:
  - service: tts.amazon_polly_say
    data_template:
      entity_id: media_player.radiopi
      message: '<speak>This is an automated test.<break time="2s"/></speak>'