if ('speechSynthesis' in window) {
    console.log('Speech recognition supported 😊');
    // code to handle recognition here
} else {
    console.log('Speech recognition not supported 😢');
    // code to handle error
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.