--- title: "AudioDescriptions" slug: "170-manage-audiodescriptions" updated: 2025-12-09T17:25:31Z published: 2025-12-09T18:02:06Z canonical: "docs.developer.comcast.com/170-manage-audiodescriptions" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.developer.comcast.com/llms.txt > Use this file to discover all available pages before exploring further. # AudioDescriptions **AudioDescriptons Module 1.7.0 | Manage SDK** ## Usage To use the AudioDescriptions module, you can import it into your project from the Firebolt SDK: ``` import { AudioDescriptions } from '@firebolt-js/manage-sdk' ``` ## Overview A module for managing audio-description Settings. ## Methods ### enabled Whether or not audio-descriptions are enabled. To get the value of `enabled` call the method like this: ``` function enabled(): Promise ``` Promise resolution: Capabilities: | Role | Capability | | --- | --- | | uses | xrn:firebolt:capability:accessibility:audiodescriptions | #### Examples Default example #1 JavaScript: ``` import { AudioDescriptions } from '@firebolt-js/manage-sdk' let enabled = await AudioDescriptions.enabled() console.log(enabled) ``` Value of `enabled`: ``` true ``` **JSON-RPC:** Request: ``` { "jsonrpc": "2.0", "id": 1, "method": "AudioDescriptions.enabled", "params": {} } ``` Response: ``` { "jsonrpc": "2.0", "id": 1, "result": true } ``` Default example #2 JavaScript: ``` import { AudioDescriptions } from '@firebolt-js/manage-sdk' let enabled = await AudioDescriptions.enabled() console.log(enabled) ``` Value of `enabled`: ``` true ``` **JSON-RPC:** Request: ``` { "jsonrpc": "2.0", "id": 1, "method": "AudioDescriptions.enabled", "params": {} } ``` Response: ``` { "jsonrpc": "2.0", "id": 1, "result": false } ``` --- To set the value of `enabled` call the method like this: ``` function enabled(value: boolean): Promise ``` Parameters: | Param | Type | Required | Description | | --- | --- | --- | --- | | `value` | `boolean` | true | | Promise resolution: #### Examples Default example #1 JavaScript: ``` import { AudioDescriptions } from '@firebolt-js/manage-sdk' let result = await AudioDescriptions.enabled(true) console.log(result) ``` Value of `result`: ``` null ``` **JSON-RPC:** Request: ``` { "jsonrpc": "2.0", "id": 1, "method": "AudioDescriptions.setEnabled", "params": { "value": true } } ``` Response: ``` { "jsonrpc": "2.0", "id": 1, "result": null } ``` Default example #2 JavaScript: ``` import { AudioDescriptions } from '@firebolt-js/manage-sdk' let result = await AudioDescriptions.enabled(false) console.log(result) ``` Value of `result`: ``` null ``` **JSON-RPC:** Request: ``` { "jsonrpc": "2.0", "id": 1, "method": "AudioDescriptions.setEnabled", "params": { "value": false } } ``` Response: ``` { "jsonrpc": "2.0", "id": 1, "result": null } ``` --- To subscribe to notifications when the value changes, call the method like this: ``` function enabled(callback: (value) => boolean): Promise ``` Promise resolution: ``` number ``` #### Examples Default example #1 JavaScript: ``` import { AudioDescriptions } from '@firebolt-js/manage-sdk' let listenerId = await enabled((value) => { console.log(value) }) console.log(listenerId) ``` Value of `enabled`: ``` true ``` **JSON-RPC:** Request: ``` { "jsonrpc": "2.0", "id": 1, "method": "AudioDescriptions.onEnabledChanged", "params": { "listen": true } } ``` Response: ``` { "jsonrpc": "2.0", "id": 1, "result": true } ``` Default example #2 JavaScript: ``` import { AudioDescriptions } from '@firebolt-js/manage-sdk' let listenerId = await enabled((value) => { console.log(value) }) console.log(listenerId) ``` Value of `enabled`: ``` true ``` **JSON-RPC:** Request: ``` { "jsonrpc": "2.0", "id": 1, "method": "AudioDescriptions.onEnabledChanged", "params": { "listen": true } } ``` Response: ``` { "jsonrpc": "2.0", "id": 1, "result": false } ``` --- ### listen To listen to a specific event pass the event name as the first parameter: ``` listen(event: string, callback: (data: any) => void): Promise ``` Parameters: | Param | Type | Required | Summary | | --- | --- | --- | --- | | `event` | `string` | Yes | The event to listen for, see [Events](/docs/170-manage-audiodescriptions#events). | | *callback* | `function` | Yes | A function that will be invoked when the event occurs. | Promise resolution: | Type | Description | | --- | --- | | `number` | Listener ID to clear the callback method and stop receiving the event, e.g. `AudioDescriptions.clear(id)` | Callback parameters: | Param | Type | Required | Summary | | --- | --- | --- | --- | | `data` | `any` | Yes | The event data, which depends on which event is firing, see [Events](/docs/170-manage-audiodescriptions#events). | To listen to all events from this module pass only a callback, without specifying an event name: ``` listen(callback: (event: string, data: any) => void): Promise ``` Parameters: | Param | Type | Required | Summary | | --- | --- | --- | --- | | *callback* | `function` | Yes | A function that will be invoked when the event occurs. The event data depends on which event is firing, see [Events](/docs/170-manage-audiodescriptions#events). | Callback parameters: | Param | Type | Required | Summary | | --- | --- | --- | --- | | `event` | `string` | Yes | The event that has occured listen for, see [Events](/docs/170-manage-audiodescriptions#events). | | `data` | `any` | Yes | The event data, which depends on which event is firing, see [Events](/docs/170-manage-audiodescriptions#events). | Promise resolution: | Type | Description | | --- | --- | | `number` | Listener ID to clear the callback method and stop receiving the event, e.g. `AudioDescriptions.clear(id)` | See [Listening for events](/docs/listening-for-events/) for more information and examples. ### once To listen to a single instance of a specific event pass the event name as the first parameter: ``` once(event: string, callback: (data: any) => void): Promise ``` The `once` method will only pass the next instance of this event, and then dicard the listener you provided. Parameters: | Param | Type | Required | Summary | | --- | --- | --- | --- | | `event` | `string` | Yes | The event to listen for, see [Events](/docs/170-manage-audiodescriptions#events). | | *callback* | `function` | Yes | A function that will be invoked when the event occurs. | Promise resolution: | Type | Description | | --- | --- | | `number` | Listener ID to clear the callback method and stop receiving the event, e.g. `AudioDescriptions.clear(id)` | Callback parameters: | Param | Type | Required | Summary | | --- | --- | --- | --- | | `data` | `any` | Yes | The event data, which depends on which event is firing, see [Events](/docs/170-manage-audiodescriptions#events). | To listen to the next instance only of any events from this module pass only a callback, without specifying an event name: ``` once(callback: (event: string, data: any) => void): Promise ``` Parameters: | Param | Type | Required | Summary | | --- | --- | --- | --- | | *callback* | `function` | Yes | A function that will be invoked when the event occurs. The event data depends on which event is firing, see [Events](/docs/170-manage-audiodescriptions#events). | Callback parameters: | Param | Type | Required | Summary | | --- | --- | --- | --- | | `event` | `string` | Yes | The event that has occured listen for, see [Events](/docs/170-manage-audiodescriptions#events). | | `data` | `any` | Yes | The event data, which depends on which event is firing, see [Events](/docs/170-manage-audiodescriptions#events). | Promise resolution: | Type | Description | | --- | --- | | `number` | Listener ID to clear the callback method and stop receiving the event, e.g. `AudioDescriptions.clear(id)` | See [Listening for events](/docs/listening-for-events/) for more information and examples. ## Events ### enabledChanged See: [enabled](/docs/170-manage-audiodescriptions#enabled) ## Private Events **View** ### enabledChanged See: [enabled](/docs/170-manage-audiodescriptions#enabled) ## Types