Header_Audio_APIHeader_Audio_API

Develop apps to control Sony's latest home audio devices

Audio Control API Overview ImageAudio Control API Overview Image

What is the Audio Control API and how does it work?

The Audio Control API allows you to extend or develop applications and services, to control supported Sony audio products from another device. An application using the API could remotely control the power, volume, input source, equalizer, and music playing on a supported device. The application could also receive change notifications via WebSockets.

The API uses HTTP, WebSockets and JSON-RPC. It can be used by smartphones, web applications, or desktop applications and can easily be integrated with existing applications.

To use the API, you should have knowledge of the HTTP and WebSockets protocols. The API uses the Simple Service Discovery Protocol (SSDP) for device discovery, as well as Digital Living Network Alliance (DLNA) and the Universal Plug and Play (UPnP) standard, for advanced connectivity.

Features you can control with the Audio Control API

  • power – turn on and off
  • volume – control sound levels including mute
  • sound mode – identify sound configurations
  • functions – control functions, such as the tuner
  • multi-zone – send signal to speakers, from different sources to multiple locations

The device control functions are available in the HTTP API, however the device notification functions are only available only by using WebSockets. We recommend that your application joins the network to which the audio product is connected, calls the HTTP POST method on the specific URI for the audio product, and uses JSON-RPC.

To enable the connected audio product to send notifications, you can send a switchNotifications message to the audio product via the WebSocket connection. All of the notifications must be included in the call as either enabled or disabled. For more information, see the API references.

To access home network USB functions, you must use DLNA/UPnP.

More information

You can click below to find out more info about the Audio Control API: