> ## Documentation Index
> Fetch the complete documentation index at: https://docs.invoca.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Speech Recognition

For full details on creating and updating campaigns via the API, see [Advertiser Campaigns](/en/2022-08-01/api_documentation/network_integration/advertiser_campaigns/index).

## Manage speech recognition for campaigns

Speech recognition can be set for a campaign to determine whether or not the caller may respond verbally to prompts in the IVR. When set to true, the caller can respond both verbally and with keypresses.

### Set Speech Recognition

To enable speech recognition for a campaign, set `"asr_enabled"` to true.

POST

`https://invoca.net/api/2022-08-01/<network_id>/advertisers/<advertiser_id_from_network>/advertiser_campaigns/<advertiser_campaign_id_from_network>.json`

Example Request Body

```json theme={null}
{
  "ivr_tree": {
    "asr_enabled": true,
    "root": {
      "node_type": "YesOrNo",
      "prompt": "Are you having a good day?",
      "children": [
          {
              "node_type": "Connect",
              "destination_phone_number": "8007381560",
              "destination_country_code": "1"
          },
          {
              "node_type": "Connect",
              "destination_phone_number": "8007381560",
              "destination_country_code": "1"
          }
      ]
    }
  }
}
```
