Remote inject commands into google assistant

Hi everyone,
since spotify ceased the raspberry pi support, my currently only way to play music is to tell my google home to do so. But thats not automated, i want to play music triggered by events in hass.io, not by voice. Can we remotely inject a written command to google assistant? Like sending the text “hey google play music” to the google backend? Is that possible? Or do i need to synthezise the words and put a speaker next to an old android phone?