I figured out how to connect Snap! to the Web Speech API first by looking at the examples in the Example project called JSFunctions. And the infinite precision and rational number library.
Could I ask if there is some explicit documentation on how to to send a broadcast and update global variables from a javascript function running inside a Snap block?
I tried following info via the links on this thread but didn't manage to find anything