Alexa.Voice Interface
The Voice interface provides methods to respond when the microphone on the device opens and closes.
Note: The device sends microphone events whether the skill or the user opened the microphone.
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
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
Was this page helpful?
Last updated: Nov 20, 2026