Skip to content

Examples

Christopher Ritsen edited this page Feb 23, 2022 · 51 revisions

Run netaudio help to learn about the commands.

List names of devices on the network

netaudio device list
dinet-tx-1
avio-usb
avio-output-2
avio-input-2
avio-usb-3
avio-usb-2
lx-dante

Identify a device

This flashes a red LED on the network port, if the device supports this.

netaudio device --identify --name avio-input-2

Listing channels

netaudio channel list
avio-input-2
tx channels
1:CH1
2:CH2

avio-output-2
rx channels
1:CH1
2:CH2

avio-usb
tx channels
1:Left
2:Right

rx channels
1:playback_1
2:playback_2

avio-usb-2
tx channels
1:Left
2:Right

rx channels
1:playback_1
2:playback_2

avio-usb-3
tx channels
1:Left
2:Right

rx channels
1:Left
2:Right

dinet-tx-1
tx channels
1:01
2:02

Listing subscriptions

netaudio subscription list
01@lx-dante <- 01@ad4d [Subscription unresolved]
02@lx-dante <- 02@ad4d [Subscription unresolved]
03@lx-dante <- Output 18@a32 [Subscription unresolved]
04@lx-dante <- Output 17@a32 [Subscription unresolved]
05@lx-dante <- Output 19@a32 [Subscription unresolved]
06@lx-dante <- Output 20@a32 [Subscription unresolved]
07@lx-dante <- Left@avio-usb [Connected (Unicast)]
08@lx-dante <- Right@avio-usb [Connected (Unicast)]
09@lx-dante <- 01@dinet-tx-1 [Connected (Unicast)]
10@lx-dante <- 02@dinet-tx-1 [Connected (Unicast)]
11@lx-dante <- Left@avio-usb-2 [Connected (Unicast)]
12@lx-dante <- Right@avio-usb-2 [Connected (Unicast)]
13@lx-dante <- 13@lx-dante [Subscribed to own signal]
14@lx-dante <- 14@lx-dante [Subscribed to own signal]

Remove a subscription

netaudio subscription remove --rx-channel-name=100 --rx-device-name=lx-dante
…
99@lx-dante <- 99@lx-dante
101@lx-dante <- 101@lx-dante
…

Add a subscription

If --tx-device-name is not specified, the same device as the one targeted by -d will be used. Nothing stops you from making invalid connections that would normally be prohibited by Dante Controller's interface.

netaudio subscription add --tx-device-name=lx-dante --tx-channel-name=100 --rx-channel-name=100 --rx-device-name=lx-dante
100@lx-dante <- 100@lx-dante

netaudio subscription list
…
99@lx-dante <- 99@lx-dante
100@lx-dante <- 100@lx-dante
101@lx-dante <- 101@lx-dante
…

Set the sample rate

Specify the value in Hz.

  • 44100
  • 48000
  • 88200
  • 96000
  • 176400
  • 192000
poetry run netaudio config --device-name='avio-output-2' --set-sample-rate 48000
Setting sample rate of avio-output-2 192.168.1.33 to 48000

Changing a channel name

netaudio config --set-channel-name='Left Input' --channel-number=1 --channel-type=rx --device-name='avio-output-2' 
Setting name of rx channel 1 for avio-output-2 192.168.1.33 to Left Input

netaudio channel list --device-name='avio-output-2' 
avio-output-2
rx channels
1:Left Input
2:CH2

netaudio config --reset-channel-name --channel-number=1 --channel-type=rx --device-name='avio-output-2' 
Resetting name of rx channel 1 for avio-output-2 192.168.1.33

netaudio channel list --device-name='avio-output-2'                                                    
avio-output-2
rx channels
1:CH1
2:CH2

Changing the device name

poetry run netaudio config --device-host=192.168.1.41 --set-device-name='DI box'
Setting device name for dinet-tx-1 192.168.1.41 to DI box

netaudio config --reset-device-name --device-name='DI box'
Resetting device name for DI box 192.168.1.41

netaudio device list --host 192.168.1.41 
DiNET-TX-8031d3

Set the device latency

Use a float representing the value in milliseconds. Custom values that don't appear in Dante Controller's interface seem to be allowed but will display a warning.

netaudio config --device-name=avio-usb-2 --set-latency=1
Setting latency of avio-usb-2 to 1 ms

Set the device encoding

  • 16
  • 24
  • 32
netaudio config --device-name=avio-usb-2 --set-encoding=32
Setting encoding of avio-usb-2 192.168.1.36 to 32

Set AVIO gain level

This only works with Audinate AVIO analog input or output devices.

AVIO Input devices have these levels:

  • 1: +24 dBu
  • 2: +4dBu
  • 3: +0 dBu
  • 4: 0 dBV
  • 5: -10 dBV

AVIO Output devices have these levels:

  • 1: +18 dBu
  • 2: +4 dBu
  • 3: +0 dBu
  • 4: 0 dBV
  • 5: -10 dBV
netaudio config --set-gain-level=1 --channel-number=1 --device-name=avio-input-2
Setting gain level of avio-input-2 192.168.1.42 to +24 dBu on channel 1

netaudio config --set-gain-level=1 --channel-number=1 --device-name=avio-output-2
Setting gain level of avio-output-2 192.168.1.33 to +18 dBu on channel 1

JSON output

netaudio device list --name=avio-output-2 --json
{
  "AVIOAO2-506217.local.": {
    "channels": {
      "receivers": {
        "1": {
          "name": "CH1"
        },
        "2": {
          "name": "CH2"
        }
      },
      "transmitters": {}
    },
    "ipv4": "192.168.1.33",
    "mac_address": "001dc1fffe506217",
    "model_id": "DAO2",
    "name": "avio-output-2",
    "sample_rate": 48000,
    "server_name": "AVIOAO2-506217.local.",
    "services": {
      "avio-output-2._netaudio-arc._udp.local.": {
        "ipv4": "192.168.1.33",
        "name": "avio-output-2._netaudio-arc._udp.local.",
        "port": 4440,
        "properties": {
          "arcp_vers": "2.7.41",
          "arcp_min": "0.2.4",
          "router_vers": "4.0.2",
          "router_info": "DAO2",
          "mf": "Audinate",
          "model": "DAO2"
        },
        "server_name": "AVIOAO2-506217.local.",
        "type": "_netaudio-arc._udp.local."
      },
      "avio-output-2._netaudio-dbc._udp.local.": {
        "ipv4": "192.168.1.33",
        "name": "avio-output-2._netaudio-dbc._udp.local.",
        "port": 4455,
        "properties": {},
        "server_name": "AVIOAO2-506217.local.",
        "type": "_netaudio-dbc._udp.local."
      },
      "avio-output-2._netaudio-cmc._udp.local.": {
        "ipv4": "192.168.1.33",
        "name": "avio-output-2._netaudio-cmc._udp.local.",
        "port": 8800,
        "properties": {
          "id": "001dc1fffe506217",
          "process": "0",
          "cmcp_vers": "1.2.0",
          "cmcp_min": "1.0.0",
          "server_vers": "4.0.2",
          "channels": "0x6000004d",
          "mf": "Audinate",
          "model": "DAO2"
        },
        "server_name": "AVIOAO2-506217.local.",
        "type": "_netaudio-cmc._udp.local."
      }
    },
    "subscriptions": [
      {
        "rx_channel": "CH1",
        "rx_device": "avio-output-2",
        "tx_channel": "Output 17",
        "tx_device": "a32",
        "status_text": "Subscription unresolved"
      },
      {
        "rx_channel": "CH2",
        "rx_device": "avio-output-2",
        "tx_channel": "Output 17",
        "tx_device": "a32",
        "status_text": "Subscription unresolved"
      }
    ]
  }
}