Skip to content

Feature request: ID of devices #7

Description

@tofeeh

Please, could you add a full identification of created devices? Currently, without any names, it is difficult to write a REGEX to filter out unusual connection to microphone, or any other script to manage devices.

When openwave lunches pw-cat and pw-loopback just add some node properties to them. e.g.

pw-cat --record \
  --target alsa_input.usb-Elgato_Systems_Elgato_Wave_XLR_DS24K1A01018-00.mono-fallback \
  --rate 8000 \
  --channels 1 \
  --format s16 \
  --properties='{
    "node.name": "openwave_mic_8k",
    "node.description": "Wave XLR  microphone 8 kHz",
    "application.name": "OpenWave microphone"
  }' \
  -
pw-cat --record \
  --target alsa_input.usb-Elgato_Systems_Elgato_Wave_XLR_DS24K1A01018-00.mono-fallback \
  --channels 1 \
  --format s16 \
  --rate 48000 \
  --latency 200ms \
  --properties='{
    "node.name": "openwave_mic_48k",
    "node.description": "Wave XLR  microphone 48 kHz",
    "application.name": "OpenWave"
  }' \
  -
pw-loopback \
  --capture-props='{
    "node.autoconnect": false,
    "node.name": "openwave_loop_personal_to_hp_cap",
    "node.description": "Wave XLR personal audio input",
    "application.name": "OpenWave",
    "audio.channels": 2,
    "audio.position": ["FL", "FR"]
  }' \
  --playback-props='{
    "target.object": "alsa_output.usb-Elgato_Systems_Elgato_Wave_XLR_DS24K1A01018-00.analog-stereo",
    "node.name": "openwave_loop_personal_to_hp",
    "node.description": "Wave XLR personal audio to headphones",
    "application.name": "OpenWave",
    "audio.channels": 2,
    "audio.position": ["FL", "FR"]
  }'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions