BlueGit

ict rusty-teams

Files

rusty-teams / openspec / changes / call-media-hardening / specs / linux-call-audio / spec.md

spec.md

spec.md 2.3 KiB Download Raw

ADDED Requirements

Requirement: Only Low uses the classical noise-suppression track

On the device track, Low SHALL publish the track with classical noise suppression. Auto, Off, and music mode SHALL publish the track without that stage. A failed software-path start MUST NOT restore the classical noise-suppression track for Off or music mode.

Scenario: Off does not restore noise suppression

  • WHEN noise suppression is Off or music mode is on and the software path cannot start
  • THEN the restored device track is the track without classical noise suppression

Requirement: A named microphone matches the capture name

A named input on the software path SHALL match a capture device when the names are equal ignoring ASCII case, or when either name contains the other. cpal names differ from the Pulse description. An empty target SHALL NOT match. An unmatched name SHALL fail the capture with an error or the existing notice and MUST NOT silently capture a different microphone.

Scenario: A Pulse description matches a shorter capture name

  • WHEN the listed name is "Jabra Speak 750 Mono" and cpal reports "Jabra Speak 750"
  • THEN that capture device is selected

Scenario: Endpoint id is not a capture name

  • WHEN the software path is asked for a named input whose key is an endpoint id and whose listed name is absent from the capture devices
  • THEN capture fails with an error or notice

Requirement: Computer sound falls back to the default microphone

While sharing computer sound, a failed named microphone SHALL fall back to the default microphone and show that notice. Silence is used only when the default microphone also fails.

Scenario: The default microphone opens

  • WHEN the named microphone fails and the default microphone starts
  • THEN the call uses the default microphone and shows the fallback notice

Requirement: A device switch counts when the index is selected

Selecting an input or output SHALL be reported as applied when the device index is selected, even if recording or playout does not start on that attempt. A single failed start MUST NOT leave the previous device marked as current.

Scenario: Start fails once

  • WHEN the device index is accepted and recording or playout does not start
  • THEN the selection is still reported as applied
Source
1## ADDED Requirements
2
3### Requirement: Only Low uses the classical noise-suppression track
4
5On the device track, Low SHALL publish the track with classical noise suppression. Auto, Off, and music mode SHALL publish the track without that stage. A failed software-path start MUST NOT restore the classical noise-suppression track for Off or music mode.
6
7#### Scenario: Off does not restore noise suppression
8
9- **WHEN** noise suppression is Off or music mode is on and the software path cannot start
10- **THEN** the restored device track is the track without classical noise suppression
11
12### Requirement: A named microphone matches the capture name
13
14A named input on the software path SHALL match a capture device when the names are equal ignoring ASCII case, or when either name contains the other. cpal names differ from the Pulse description. An empty target SHALL NOT match. An unmatched name SHALL fail the capture with an error or the existing notice and MUST NOT silently capture a different microphone.
15
16#### Scenario: A Pulse description matches a shorter capture name
17
18- **WHEN** the listed name is "Jabra Speak 750 Mono" and cpal reports "Jabra Speak 750"
19- **THEN** that capture device is selected
20
21#### Scenario: Endpoint id is not a capture name
22
23- **WHEN** the software path is asked for a named input whose key is an endpoint id and whose listed name is absent from the capture devices
24- **THEN** capture fails with an error or notice
25
26### Requirement: Computer sound falls back to the default microphone
27
28While sharing computer sound, a failed named microphone SHALL fall back to the default microphone and show that notice. Silence is used only when the default microphone also fails.
29
30#### Scenario: The default microphone opens
31
32- **WHEN** the named microphone fails and the default microphone starts
33- **THEN** the call uses the default microphone and shows the fallback notice
34
35### Requirement: A device switch counts when the index is selected
36
37Selecting an input or output SHALL be reported as applied when the device index is selected, even if recording or playout does not start on that attempt. A single failed start MUST NOT leave the previous device marked as current.
38
39#### Scenario: Start fails once
40
41- **WHEN** the device index is accepted and recording or playout does not start
42- **THEN** the selection is still reported as applied