> For the complete documentation index, see [llms.txt](https://docs.digitalsamba.com/reference/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.digitalsamba.com/reference/sdk/events/captionsspokenlanguagechanged.md).

# captionsSpokenLanguageChanged

When the user changes his captions spoken language from the settings inside the room, then the **captionsSpokenLanguageChanged** event will be emitted.

{% hint style="info" %}
You can also change the captions spoken language programmatically through the SDK. Use the [configureCaptions](/reference/sdk/methods/configurecaptions.md) method to achieve that.
{% endhint %}

#### Sample payload

```json
{
  "type": "captionsSpokenLanguageChanged",
  "data": {
    "language": "de"
  }
}
```

#### Sample subscription code

```javascript
sambaFrame.on('captionsSpokenLanguageChanged', (event) => {
  const data = event.data;
  //Possible values for "language" field are language codes described in the docs of configureCaptions event
  console.log('Captions spoken language has been changed to', data.language);
});
```
