Mute the microphone
This tutorial shows how to mute and unmute the microphone for Nureva® devices over the local network.
What can be controlled with the API?
The local control API provides the ability to mute and unmute the microphone on a Nureva audio device.
The
microphoneMuteattribute is a setting, not a toggle. Attempting to mute an already muted microphone or unmute a not-muted microphone will not change the setting.
Minimum role required: general
generalThe Get Audio Settings endpoint and Set Audio Settings endpoint can be accessed with the general role or any role of a higher level.
Overview
- 
Use Get Audio Settings to make a request to get the current microphone mute setting on the audio device. 
- 
Use Set Audio Settings to make a request to mute or unmute the microphone. 
- 
Use Get Audio Settings to check that the change has been applied successfully. 
Instructions
Step 1 - Make a request to get the current microphone mute setting
Use the Get Audio Settings endpoint:
- Set the path with the IP address of the Nureva device followed by /api/v1/audio.
- Update the headers to include Authorizationas key and the value beingNurevafollowed by theauthParametersreceived from the login endpoint.
- Update the headers to include Nureva-Client-Idas key andintegration_app_nameas the value.
- Update the headers to include Nureva-Client-Versionas key and0.0.1as the value.
- Send the GET request. The code sample below is a request to retrieve the settings for the device with the IP address of 10.0.0.1.
curl --request GET \
     --url https://10.0.0.1/api/v1/audio \
     --header 'Authorization: Nureva Z2VuZXJhbDo=' \
     --header 'Nureva-Client-Id: integration_app_name' \
     --header 'Nureva-Client-Version: 0.0.1'- If the call is successful, an HTTP status code of 200 OK will be returned.
- Check the value of the microphoneMuteattribute. Atruevalue means the microphone is muted while afalsevalue means the microphone is not muted.
The example response below indicates that the microphone is not currently muted.
{
  "microphoneMute": false,
  "microphonePickupState": "Mono",
  "microphoneGain": 3,
  "speakerTrebleLevel": 90,
  "speakerBassLevel": 16,
  "speakerVolume": 14,
  "echoReductionLevel": "Medium",
  "noiseReductionLevel": "Medium",
  "auxiliaryOutputState": "LineLevel",
  "voiceAmplificationEnabled": false,
  "voiceAmplificationLevel": 25,
  "voiceAmplificationAuxInLevel": "Line",
  "dynamicBoostEnabled": false,
  "microphoneDuckingEnabled": false
}Step 2 - Make a request to mute or unmute the microphone
Use the Set Audio Settings endpoint:
- Set the path with the IP address of the Nureva device followed by /api/v1/audio.
- Update the headers to include Authorizationas key and the value beingNurevafollowed by theauthParametersreceived from the login endpoint.
- Update the headers to include Nureva-Client-Idas key andintegration_app_nameas the value.
- Update the headers to include Nureva-Client-Versionas key and0.0.1as the value.
- Update the headers to include Content-typeas key andapplication/jsonas value.
- Update the request body to send a JSON object with "microphoneMute":trueto set the microphone to muted.
curl --request PATCH \
  --url https://10.0.0.1/api/v1/audio \
  --header 'Authorization: Nureva Z2VuZXJhbDo=' \
  --header 'Nureva-Client-Id: integration_app_name' \
  --header 'Nureva-Client-Version: 0.0.1'\
  --header 'Content-type: application/json' \
  --data '{"microphoneMute":true}'- Send the PATCH request.
- If the call is successful, an HTTP status code of 200 OK will be returned.
Step 3 - Check that the change has been applied successfully
Use the Get Audio Settings endpoint:
- Set the path with the IP address of the Nureva device followed by /api/v1/audio.
- Update the headers to include Authorizationas key and the value beingNurevafollowed by theauthParametersreceived from the login endpoint.
- Update the headers to include Nureva-Client-Idas key andintegration_app_nameas the value.
- Update the headers to include Nureva-Client-Versionas key and0.0.1as the value.
- Send the GET request. The code sample below is a request to retrieve the settings for the device with the IP address of 10.0.0.1.
curl --request GET \
     --url https://10.0.0.1/api/v1/audio \
     --header 'Authorization: Nureva Z2VuZXJhbDo=' \
     --header 'Nureva-Client-Id: integration_app_name' \
     --header 'Nureva-Client-Version: 0.0.1'- If the call is successful, an HTTP status code of 200 OK will be returned.
- Check the value of the microphoneMuteattribute.
The example below indicates that the change (to mute the microphone) was successfully applied.
{
  "microphoneMute": true,
  "microphonePickupState": "Mono",
  "microphoneGain": 3,
  "speakerTrebleLevel": 90,
  "speakerBassLevel": 16,
  "speakerVolume": 14,
  "echoReductionLevel": "Medium",
  "noiseReductionLevel": "Medium",
  "auxiliaryOutputState": "LineLevel",
  "voiceAmplificationEnabled": false,
  "voiceAmplificationLevel": 25,
  "voiceAmplificationAuxInLevel": "Line",
  "dynamicBoostEnabled": false,
  "microphoneDuckingEnabled": false
}
Tutorial complete!You now know how to view and make changes to the microphone mute setting.
Updated 3 days ago
