# 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](https://docs.digitalsamba.com/reference/sdk/methods/configurecaptions) 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);
});
```
