Adjust treble and bass
This tutorial shows how to adjust the treble and bass levels for Nureva® HDL200, HDL300, Dual HDL300, HDL310 and HDL410 devices over the local network. Adjusting treble and bass levels may affect speaker settings and audio conferencing presets.
For more information about speaker setting presets, see Adjusting speaker settings with the Nureva App↗
For more information about audio conferencing presets, see Using audio conferencing presets - Nureva App↗
What can be controlled with the API?
The local control API provides the ability to adjust the treble and bass levels, from 0 to 100, on a Nureva audio device. The Get Audio Settings endpoint is used to retrieve all the configurable audio settings. The Set Audio Settings endpoint is used to set one or more audio settings.
The examples below show how to adjust treble and bass using separate Set Audio Settings endpoint calls, but both settings can be set in one request (if attributes for both are added on the same request body).
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
Adjust treble
- 
Use Get Audio Settings to make a request to get the current treble setting on the audio device.
 - 
Use Set Audio Settings to make a request to adjust the treble.
 - 
Use Get Audio Settings to check that the change has been applied successfully.
 
Adjust bass
- 
Use Get Audio Settings to make a request to get the current bass setting on the audio device.
 - 
Use Set Audio Settings to make a request to adjust the bass.
 - 
Use Get Audio Settings to check that the change has been applied successfully.
 
Adjust treble
Step 1 - Make a request to get the current treble 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 
speakerTrebleLevelattribute. 
The example response below indicates that the treble is currently set to 90.
{
  "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 adjust the treble
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. - Add the property 
"speakerTrebleLevel"to the body property. - Give 
"speakerTrebleLevel"a value of between 0 and 100. The code sample below is a request to set the treble level to75. 
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 '{"speakerTrebleLevel":75}'- 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 
speakerTrebleLevelattribute. 
The example below indicates that the change (to adjust treble) was successfully applied.
{
  "microphoneMute": false,
  "microphonePickupState": "Mono",
  "microphoneGain": 3,
  "speakerTrebleLevel": 75,
  "speakerBassLevel": 16,
  "speakerVolume": 14,
  "echoReductionLevel": "Medium",
  "noiseReductionLevel": "Medium",
  "auxiliaryOutputState": "LineLevel",
  "voiceAmplificationEnabled": false,
  "voiceAmplificationLevel": 25,
  "voiceAmplificationAuxInLevel": "Line",
  "dynamicBoostEnabled": false,
  "microphoneDuckingEnabled": false
}Adjust bass
Step 1 - Make a request to get the current bass 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 
speakerBassLevelattribute. 
The example response below indicates that the bass is currently set to 16.
{
  "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 adjust the bass
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. - Add the property 
"speakerBassLevel"to the body property. - Give 
"speakerBassLevel"a value of between 0 and 100. The code sample below is a request to set the bass level to80. 
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 '{"speakerBassLevel":80}'- 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 
speakerBassLevelattribute. 
The example below indicates that the change (to adjust bass) was successfully applied.
{
  "microphoneMute": false,
  "microphonePickupState": "Mono",
  "microphoneGain": 3,
  "speakerTrebleLevel": 90,
  "speakerBassLevel": 80,
  "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 treble and bass settings.
Updated 8 days ago
