Set sound location algorithm
Only HDL410 systems support this feature.
This tutorial shows how to set the active sound location algorithm for the room where Nureva® audio devices are located.
What can be controlled with the API?
- soundLocationAlgorithm: The algorithm used for detecting sound locations in the room. Possible values are:
- BP
- TDOA
 
Minimum role required: integrator
integratorThe Set room layout endpoint can be accessed with the integrator role or any role of a higher level.
Overview
- Use the Get room layout endpoint to get the current sound location algorithm.
- Use the Set room layout endpoint to make a request to change the active sound location algorithm.
- Use the Get room layout endpoint to check that the change has been applied successfully.
Instructions
Step 1 - Make a request to get the current active sound location algorithm
Use the Get room layout endpoint:
- Set the path with the IP address of the Nureva® device followed by /api/v1/room/layout.
- 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 sound location algorithm for the room of the device with the IP address of 10.0.0.1.
curl --request GET \
     --url https://10.0.0.1/api/v1/room/layout \
     --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 soundLocationAlgorithmattribute. A value of"BP"means that the current active sound location algorithm is set to the default algorithm. A value of"TDOA"means that the alternate sound location algorithm is being used (requires accurate room layout information in order to function properly).
The example response below indicates that the current sound location algorithm is "BP".
{
  "soundLocationAlgorithm": "BP"
}Step 2 - Make a request to update the active sound location algorithm
Use the Set room layout endpoint:
- Set the path with the IP address of the Nureva® device followed by /api/v1/room/layout.
- 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 "soundLocationAlgorithm": "TDOA"to change the active sound location algorithm. NOTE: setting the sound location algorithm to"TDOA"requires accurate room layout information. Follow the Set room dimensions and Set audio component layout tutorials in order to configure room layout.
curl --request PATCH \
     --url https://10.0.0.1/api/v1/room/layout \
     --header 'Authorization: Nureva Z2VuZXJhbDo=' \
     --header 'Nureva-Client-Id: integration_app_name' \
     --header 'Nureva-Client-Version: 0.0.1' \
     --header 'Content-type: application/json' \
     --data '{"soundLocationAlgorithm":"TDOA"}'- 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 room layout endpoint:
- Set the path with the IP address of the Nureva® device followed by /api/v1/room/layout.
- 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 sound location algorithm for the room of the device with the IP address of 10.0.0.1.
curl --request GET \
     --url https://10.0.0.1/api/v1/room/layout \
     --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 soundLocationAlgorithmattribute.
The example response below indicates that the change of the sound location algorithm to "TDOA" was successfully applied.
{
  "soundLocationAlgorithm": "TDOA"
}
Tutorial complete!You now know how to set the sound location algorithm.
Updated 4 days ago
