How do I do "Hey Siri" on Mac?
You can use Dictation for this.


Open Settings and enable dictation in keyboard settings. Make sure to check "Used Enhanced Dictation"(you may need to download something)
Go to Settings > Accessibility > Dictation(under interacting)
Check "Enable the dictation keyword phrase" Enter whatever you want in the text box underneath it. To use "Hey Siri", type "Hey" in the box.

Click on "Dictation Commands"
Check "Enable Advanced Commands"
Click on the plus that appears.
Now fill it in like this:

If you want (and I recommend you do), uncheck all the other boxes as you might accidentally activate one of those commands without meaning to.


Source