Voice Override in Campaign api
# support
a
can we change the voice configuration per campaign. does campaign api supports voice override
v
Yes, you can change the voice configuration per campaign by updating the
assistantId
for that campaign, as the assistant determines the voice used.
This can be done using the Campaign API's update endpoint, but only if the campaign is not in progress or has ended. Here’s a sample cURL request to update the assistant (and thus the voice) for a campaign:
Copy code
bash
curl -X PATCH https://api.vapi.ai/campaign/<campaign_id> \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{"assistantId": "<your_new_assistant_id>"}'
Note: There is no direct "voice override" parameter; you must change the assistant to change the voice. For more details, see the [Campaign Controller Update API documentation](https://docs.vapi.ai/api-reference/campaigns/campaign-controller-update). Source: - [Campaign Controller Update API documentation](https://docs.vapi.ai/api-reference/campaigns/campaign-controller-update)
c
Hi Azhar, Hope your issue is resolved