Cannot get speak-text rule to work

Hi, I cannot get the speak-text rule to work. When I trigger the button nothing is said from my tablet. I’ve also tried testing it on my phone which also doesn’t work. I’ve checked that both devices have their sound on. Both apps on version 39.3. Am I doing something wrong? Here is my code, basically the same as the example from the rules announcement thread from a few years ago:

"rules": {

"driveway-laser": {

  "name": "Driveway Laser",

  "condition": {

    "item": "1e6ockwvl1oa51gyyg0xklm331.input_button.driveway_laser#generic.button-generic",

    "operator": "eq",

    "value": "on"

  },

  "action": {

    "type": "speak-text",

    "binding": null,

    "value": "Driveway"

  },

  "enabled": true

}

}

Many thanks,

Tom

I’ve got it working and will leave this up just in case anyone else in the future makes the same mistake as me. I changed my input (or “item”) to an input.boolean instead of input.button and it now works. I’ve got an automation in Home Assistant that then turns the input.boolean off