feat(inputAudio): Add support for noise reduction settings#135
Open
HVbajoria wants to merge 1 commit intoAzure-Samples:mainfrom
Open
feat(inputAudio): Add support for noise reduction settings#135HVbajoria wants to merge 1 commit intoAzure-Samples:mainfrom
HVbajoria wants to merge 1 commit intoAzure-Samples:mainfrom
Conversation
Author
|
Hi @glecaros , @jpalvarezl, @trrwilson, I have referred this document: https://learn.microsoft.com/en-us/azure/ai-services/openai/realtime-audio-reference Under: RealtimeAudioInputAudioNoiseReductionSettings Could you please check once? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
input_audio_noise_reductionin the session configuration payload.RealtimeAudioInputAudioNoiseReductionSettingswith atypefield that accepts:"near_field"– optimized for close-talking microphones (e.g., headsets)"far_field"– optimized for distant microphones (e.g., laptop, room mics)SessionUpdateMessagestructure to enable real-time noise reduction in transcription scenarios.Does this introduce a breaking change?
Pull Request Type
What kind of change does this Pull Request introduce?
How to Test
Get the code
git clone https://github.com/Azure-Samples/aoai-realtime-audio-sdk cd aoai-realtime-audio-sdk git checkout Add_Noise_Reduction npm installUpdate test or dev config
In your client-side test (
client_test) or runtime session code, use this updatedServerMessageType:Test the behavior
near_fieldandfar_fieldsettings in different mic setupsinput_audio_noise_reductionkey in the outbound WebSocket payloadWhat to Check
input_audio_noise_reductionis included and structured correctly in theServerMessageTypetypefield only accepts valid values (near_field,far_field)turn_detectionorinput_audio_transcriptionNote:
Similarly do it for Python
Other Information
[Realtime Audio Reference – Noise Reduction](https://learn.microsoft.com/en-us/azure/ai-services/openai/realtime-audio-reference#inputaudionoisereduction)