priv/docs/workers_ai_text_to_speech.md

# Workers AI Text To Speech

## Open Websocket connection with @cf/deepgram/aura model.

**GET** `/accounts/{account_id}/ai/run/@cf/deepgram/aura`



### Responses

#### 101 Returns a websocket connection

```json

```

#### 400 Bad Request

```json
{
  "errors": [
    {
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}
```



## Execute @cf/deepgram/aura-1 model.

**POST** `/accounts/{account_id}/ai/run/@cf/deepgram/aura-1`



### Responses

#### 200 Object with user data.

> Data is at `body["result"]`

```json
{}
```

#### 400 Bad request

```json
{
  "errors": [
    {
      "code": "*string*",
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}
```



## Open Websocket connection with @cf/deepgram/aura-1 model.

**GET** `/accounts/{account_id}/ai/run/@cf/deepgram/aura-1`



### Responses

#### 101 Returns a websocket connection

```json

```

#### 400 Bad Request

```json
{
  "errors": [
    {
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}
```



## Open Websocket connection with @cf/deepgram/aura-1-internal model.

**GET** `/accounts/{account_id}/ai/run/@cf/deepgram/aura-1-internal`



### Responses

#### 101 Returns a websocket connection

```json

```

#### 400 Bad Request

```json
{
  "errors": [
    {
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}
```



## Open Websocket connection with @cf/deepgram/aura-2 model.

**GET** `/accounts/{account_id}/ai/run/@cf/deepgram/aura-2`



### Responses

#### 101 Returns a websocket connection

```json

```

#### 400 Bad Request

```json
{
  "errors": [
    {
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}
```



## Execute @cf/deepgram/aura-2-en model.

**POST** `/accounts/{account_id}/ai/run/@cf/deepgram/aura-2-en`



### Responses

#### 200 Object with user data.

> Data is at `body["result"]`

```json
{}
```

#### 400 Bad request

```json
{
  "errors": [
    {
      "code": "*string*",
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}
```



## Open Websocket connection with @cf/deepgram/aura-2-en model.

**GET** `/accounts/{account_id}/ai/run/@cf/deepgram/aura-2-en`



### Responses

#### 101 Returns a websocket connection

```json

```

#### 400 Bad Request

```json
{
  "errors": [
    {
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}
```



## Execute @cf/deepgram/aura-2-es model.

**POST** `/accounts/{account_id}/ai/run/@cf/deepgram/aura-2-es`



### Responses

#### 200 Object with user data.

> Data is at `body["result"]`

```json
{}
```

#### 400 Bad request

```json
{
  "errors": [
    {
      "code": "*string*",
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}
```



## Open Websocket connection with @cf/deepgram/aura-2-es model.

**GET** `/accounts/{account_id}/ai/run/@cf/deepgram/aura-2-es`



### Responses

#### 101 Returns a websocket connection

```json

```

#### 400 Bad Request

```json
{
  "errors": [
    {
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}
```



## Execute @cf/myshell-ai/melotts model.

**POST** `/accounts/{account_id}/ai/run/@cf/myshell-ai/melotts`



### Responses

#### 200 Object with user data.

> Data is at `body["result"]`

```json
{}
```

#### 400 Bad request

```json
{
  "errors": [
    {
      "code": "*string*",
      "message": "*string*"
    }
  ],
  "result": {},
  "success": "*boolean*"
}
```