Local audio to play when automation is triggered

Hello all
I am needing some assistance in getting audio to play when an automation is triggered.
I have a button that I have added to my home assistant.

I have added an alarm sound to the media file.
/media/alarmsound.wav

I have created the automation for when the button is activated it needs to play the sound.

alias: panic button sound 1
description: ""
triggers:
  - trigger: state
    entity_id:
      - sensor.smart_button_button
    from: "0"
conditions: []
actions:
  - action: media_player.play_media
    data:
      media_content_id: /media/alarmsound.wav
      media_content_type: music
    target:
      device_id: 692408eefc106dbf12696ef150ed4aa0
mode: single

but the automation gets triggered but no sound comes through the pc that is logged in. I have VLC loaded to be able to use the local host as a media player. but unsure where I am going wrong.

Is the PC setup as a media player?

@Arh so i have home assistant running on a VM on the pc how would i know if the pc is set up as a media player?

Absolutly no idea how to set up a PC as a media player but I do know HA will only play media to a media player.