Alexa.Voice Interface

The Voice interface provides methods to respond when the microphone on the device opens and closes.

Methods

onMicrophoneClosed

onMicrophoneClosed(callback): Voice

Use this function to register a listener for microphone closed events coming from the device.

Parameters

Name Type Description
callback () => void Function to call when the microphone closes. The callback takes no arguments.

Returns

Voice


onMicrophoneOpened

onMicrophoneOpened(callback): Voice

Use this function to register a listener for microphone open events from the device.

Parameters

Name Type Description
callback () => void Function to call when the microphone opens. The callback takes no arguments.

Returns

Voice


Was this page helpful?

Last updated: Nov 20, 2026