Interface AudioFeedbackConfiguration

Fine-grained audio feedback configuration object

interface AudioFeedbackConfiguration {
    audioSessionType?: null | string;
    enabled?: boolean;
}

Properties

audioSessionType?: null | string

Explicitly set the AudioSession type used for audible feedback.

See https://github.com/w3c/audio-session/blob/main/explainer.md#api-design for a list of acceptable values.

By default, the value transient is used if the AudioSession API is available. Setting this value to null will disable setting the AudioSession type.

enabled?: boolean

Toggle audible beep upon successful scan.

Remarks

Uses the WebAudio API to emit a "cash register"-like beep. Beeping is done on a best-effort basis and should not be relied upon. If the browser does not support the WebAudio API, beeping will not work, and no error will be thrown.

Default Value

true