audio devices

Description get audio devices

http://localhost:5000/devices/audio

Response

Example

curl http://localhost:5000/devices/audio

 {
  "in": [
    {
      "api": "ALSA",
      "id": "8eb1",
      "name": "pipewire",
      "native_index": 4
    },
    {
      "api": "ALSA",
      "id": "8e7a",
      "name": "default",
      "native_index": 5
    }
  ],
  "out": [
    {
      "api": "ALSA",
      "id": "ae79",
      "name": "HDA Intel HDMI: 0 (hw:0,3)",
      "native_index": 0
    },
    {
      "api": "ALSA",
      "id": "67fd",
      "name": "HDA Intel HDMI: 1 (hw:0,7)",
      "native_index": 1
    },
    {
      "api": "ALSA",
      "id": "b68c",
      "name": "HDA Intel HDMI: 2 (hw:0,8)",
      "native_index": 2
    },
    {
      "api": "ALSA",
      "id": "ba84",
      "name": "hdmi",
      "native_index": 3
    },
    {
      "api": "ALSA",
      "id": "8eb1",
      "name": "pipewire",
      "native_index": 4
    },
    {
      "api": "ALSA",
      "id": "8e7a",
      "name": "default",
      "native_index": 5
    }
  ]
}

Errors

This API uses the following error codes:

  • 400 Bad Request: The request was malformed or missing required parameters.
  • 404 Not Found: The requested resource was not found.
  • 500 Internal Server Error: An unexpected error occurred on the server.