TTS not working

I am missing something an am lost to what it is to get media working. I can play the chime with aplay so I know the sound is working.
configuration.yaml
media_player:

  • platform: vlc
    name: speaker
    arguments: ‘–alsa-audio-device=hw:0,0’

Text to speech

tts:

  • platform: picotts

script.yaml
test_wave:

  • service: media_player.play_media
    data:
    entity_id: media_player.speaker
    media_content_id: /home/homeassistant/chime.wav
    media_content_type: ‘music’
    media_content_type: ‘audio/wav’

Errors. I have not stated to automation yet.
hass --script check_config -c /home/homeassistant/.homeassistant/
Testing configuration at /home/homeassistant/.homeassistant/
ERROR:homeassistant.config:Invalid config for [script]: expected a dictionary for dictionary value @ data[‘script’][‘test_wave’]. Got [OrderedDict([(‘service’, ‘media_player.play_media’),
(‘data’, OrderedDict([(‘entity_id’, ‘media_player.speaker’),
(‘media_content_id’, ‘/home/homeassistant/chime.wav’),
(‘media_content_type’, ‘music’)]))])]. (See /home/homeassistant/.homeassistant/configuration.yaml, line 92).
Please check the docs at https://home-assistant.io/components/script/
ERROR:homeassistant.setup:Setup failed for script: Invalid config.
Failed config
script:
test_wave: [source /home/homeassistant/.homeassistant/scripts.yaml:1]
- data: [source /home/homeassistant/.homeassistant/scripts.yaml:3]
entity_id: media_player.speaker
media_content_id: /home/homeassistant/chime.wav
media_content_type: music
service: media_player.play_media
General Errors:
- Setup failed for script: Invalid config.

Does your TTS work directly?

You need sequence: in your script.

Adding sequence fixed the config error. My script looks like this:
test_say:
sequence:

  • service: tts.picotts_say
    data:
    entity_id: media_player.speaker
    message: ‘Beam me up, Scotty’
    test_wave:
    sequence:
  • service: media_player.play_media
    data:
    entity_id: media_player.speaker
    media_content_id: /home/homeassistant/chime.wav
    media_content_type: ‘music’

I can play the chime from the command line with aplay /home/homeassistant/chime.wav
Playing WAVE ‘/home/homeassistant/chime.wav’ : Unsigned 8 bit, Rate 22000 Hz, Mono
However the say message or the chime work from HA overview page. Any ideas?

I did verify that the device hw is correct at 0,0
aplay -v /home/homeassistant/chime.wav
Playing WAVE ‘/home/homeassistant/chime.wav’ : Unsigned 8 bit, Rate 22000 Hz, Mono
Plug PCM: Hardware PCM card 0 ‘bcm2835 ALSA’ device 0 subdevice 0