> ## 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](https://docs.invoca.com/en/latest/api_documentation/network_integration/advertiser_campaigns/index.md).

## 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"
          }
      ]
    }
  }
}
```


## Related topics

- [IVR Speech Recognition](https://docs.invoca.com/s/article/ivr-speech-recognition.md)
- [Call Treatments & IVR](https://docs.invoca.com/s/article/call-treatments-ivr.md)
- [Network Integration](https://docs.invoca.com/en/latest/api_documentation/network_integration/index.md)
- [Call Forwarding: Group Ringing & Answer Rates](https://docs.invoca.com/s/article/call-forwarding-group-ringing.md)
- [Advertiser Campaigns](https://docs.invoca.com/en/latest/api_documentation/network_integration/advertiser_campaigns/index.md)
