New parameter on create/update session for input_audio_noise_reduction?

When looking through logs I’m noticing the events for session.created and session.updated are now returning a new key called input_audio_noise_reduction.

"input_audio_noise_reduction": null

Anyone have any information on this or are seeing the same thing?

4 Likes

Anybody? I’m also super interested in this. Background noise on some devices has been a problem at times. I looked through the OpenAPI types and couldn’t find this there or in the docs.

My guess is that they are implementing some sort of Active Echo Cancellation (AEC) or Active Noise Suppression (ANS) on the server-side.
For now we have to implement this ourselves but who knows what OpenAI is cooking up here. :fried_egg:

Cheers! :hugs:

input_audio_noise_reduction.type
Supported values are: ‘near_field’ and ‘far_field’.

But there must be some additional attributes as it return null after being set.

1 Like

@damien.mcgivern Where did you find that? :slight_smile:

I used the error messages to guide me

setting a random value to input_audio_noise_reduction

{
  "error": {
    "message": "Invalid type for 'input_audio_noise_reduction': expected an object, but got a decimal number instead.",
    "type": "invalid_request_error",
    "param": "input_audio_noise_reduction",
    "code": "invalid_type"
  }
}

setting an empty object to input_audio_noise_reduction

{
  "error": {
    "message": "Missing required parameter: 'input_audio_noise_reduction.type'.",
    "type": "invalid_request_error",
    "param": "input_audio_noise_reduction.type",
    "code": "missing_required_parameter"
  }
}

setting a random value to input_audio_noise_reduction.type

{
  "error": {
    "message": "Invalid value: 'abc'. Supported values are: 'near_field' and 'far_field'.",
    "type": "invalid_request_error",
    "param": "input_audio_noise_reduction.type",
    "code": "invalid_value"
  }
}
2 Likes
"input_audio_noise_reduction": {
  "type": "near_field"
}

If I pass above config to the session API, the input_audio_noise_reduction as still null in the response. Is anyone else facing this issue?

are you passing this in on the initial create or update, as only appears to be supportd on create.

https://platform.openai.com/docs/api-reference/realtime-sessions/create