# Choose where speech is processed

Source: https://docs.vlayers.ai/reference/hosting/set-speech-region

`PUT /v1/speech/region` · scope `workspace:write`

Sets the workspace's speech region (workspace Admins). A call whose providers cannot all process speech there is refused by name before it starts. It is not data residency.

Requires an API key with the `workspace:write` scope.

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `region` | body | "anywhere" \| "in" \| "eu" \| "us" | yes | One of `anywhere`, `in`, `eu`, `us`. |

## Request

cURL:

```bash
curl -X PUT https://api.vlayers.ai/v1/speech/region \
  -H "Authorization: Bearer $VOICELAYER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "region": "in"
  }'
```

TypeScript:

```ts
import { VoiceLayer } from '@voicelayer/api';

const voicelayer = new VoiceLayer();

const { region } = await voicelayer.hosting.setSpeechRegion({ region: 'in' });
console.log(region);
```

Python:

```python
from voicelayer import VoiceLayer

vl = VoiceLayer()

result = vl.hosting.set_speech_region(region="in")
print(result.region)
```

## Response `200`

```json
{
  "region": "in"
}
```
