Configuring USB Audio Support - USB-Audio-Support-for-Containers/Configuring-USB-Audio-Support

USB Audio Support for Containers

ft:locale
en-US
ft:sourceName
Paligo_Prod
Document Type
Article

USB audio support in containers allows for the processing of voice commands by applications running in a container.

Use the following procedure to make the necessary configuration changes to use USB audio with a container on an Ericsson Cradlepoint router.

Configuring USB audio support
  1. Log into NetCloud Manager.

  2. Select Devices > Routers.

  3. Select a router from the Routers page.

  4. Select Configuration > Edit.

  5. Select System > Containers > Projects.

  6. Select Add to add a new configuration. To modify an existing configuration, select the configuration and then select Edit.

  7. Configure the following on the Project Configuration > Config tab in the Project Configuration dialog.

    • Name: A name for the project.

    • Enabled: This must be selected to enable the container and ensure it can run.

    • Update Interval (Optional): How often, in seconds, NetCloud OS should check for and apply service-image updates. NetCloud OS will not update images after pulling them if this is set to 0 or left blank.

  8. Select the Compose Builder tab and then select Add in the Services section.

  9. On the Service Configuration > Basic page, add the following.name for the container, the image name used by the container, the location where NetCloud OS pulls down the Docker's image to the router, and the optional Port Mapping.

    • A name for the service.

    • The image name used by the container. This can either be a repository/tag or a partial image ID. For example, 'username/repo/image:tag' or 'ubuntu:18.04'.

    • Use Bridge for the Network Mode.

    • The Capabilities field is optional. This allows the container to perform various network-related operations including:

      • interface configuration

      • binding to any address for transparent proxying

      • setting type-of-service (TOS)

      • clearing driver statistics

      • setting promiscuous mode

      • enabling multicasting

      • setting various network-related socket options

    • A port mapping is optional.

    container-basic-service-config.png
  10. Select Save twice to return to the Compose (YAML) file screen.

  11. Select the Compose tab and enter the following.

    version: '3'
    services:
      container:
        image: username/image:tag
        devices:
         - /dev/snd:/dev/snd
  12. Select Save.

Important

If a project has more than one container using the USB device, all the project’s containers restart if the USB device is plugged or unplugged.

If a project has only one container using the USB device, just that container is restarted upon plug or unplug.