https://retellai.com/?utm_source=discord&utm_medium=seo logo
, I am passing into the Retell API the audio setti...
# ❓・ai-evy-support
s
@AI Evy, I am passing into the Retell API the audio settings that cancel noise plus background speech. But, in Retell, how do I see that this parameter was accepted and applied to the given call?
a
Thanks for tagging me @snowskidude. I'll look through relevant sources and get back to you shortly.
### Answer The noise cancellation setting you're referring to is the
denoising_mode
parameter [(1) ]() [(2) ]() . You can verify that this parameter was accepted and applied by retrieving the agent configuration using the Get Agent API endpoint [(1) ]() . When you call the Get Agent endpoint, the response will include the
denoising_mode
field showing the current setting . The available options are: -
"noise-cancellation"
-
"noise-and-background-speech-cancellation"
[(2) ]() Here's how to retrieve the agent configuration:
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const agentResponse = await client.agent.retrieve('16b980523634a6dc504898cda492e939') ;
console.log(agentResponse.agent_id) ;
[(1) ]() The response will include the
denoising_mode
field in the JSON, confirming what setting is currently applied . You can also use the List Agents endpoint to see this setting across all your agents [(3) ]() .
​ To learn more, see the sources I considered: [[1] Get Agent](https://docs.retellai.com/api-references/get-agent) [[2] Update Agent](https://docs.retellai.com/api-references/update-agent) [[3] List Agents](https://docs.retellai.com/api-references/list-agents) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
s
@AI Evy when I call Retell API for an outbound call and include the noise-and-background-speech-cancellation parameter, how long does that setting last? Is it only for the current conversation?
a
Thanks for the follow-up, @snowskidude. I'll get back to you soon.
### Answer Based on the available sources, the
denoising_mode
parameter (including
"noise-and-background-speech-cancellation"
) is configured at the agent level [(1) ]() [(2) ]() . This means when you set this parameter, it becomes part of the agent's configuration and persists across all calls made by that agent . The setting is not limited to a single conversation - it remains active for all future calls until you explicitly update the agent configuration to change the
denoising_mode
setting [(2) ]() . If you want to modify this setting, you would need to use the Update Agent API endpoint to change the
denoising_mode
parameter . The available options for
denoising_mode
are
"noise-cancellation"
and
"noise-and-background-speech-cancellation"
, with the default being
"noise-cancellation"
.
​ To learn more, see the sources I considered: [[1] Create Agent](https://docs.retellai.com/api-references/create-agent) [[2] Update Agent](https://docs.retellai.com/api-references/update-agent) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.