Send Home and beep command via Gcode

Haven’t had time to test on a 3D printer yet but would this work…?:

G4 P[time in milliseconds]
M300 P[time in milliseconds]

Do any of the 3D printers have a speaker…?

Just tried it on my K1 Max and didn’t make a sound…

M300 P500
G4 P1000
M300 P100
G4 P500
M300 P100