Recording

Przycisk nagrywania, przełącznik mikrofonu, wskaźnik poziomu, kula statusu, licznik czasu, wskaźnik nagrywania i status przetwarzania dla interfejsów nagrywania.

Dostępny w
  • Angular: dostępny
  • Vue: dostępny
  • React: dostępny
  • React Native: dostępny

Użycie

Ready
PausedQueuedFailed
Summarizing
Error

Import

ts
import {
  SoneElapsedTimerComponent,
  SoneLevelMeterComponent,
  SoneMicToggleComponent,
  SoneProcessingStatusComponent,
  SoneRecordButtonDirective,
  SoneRecordingIndicatorComponent,
  SoneStatusOrbComponent,
} from "@surface-one/angular/recording";

Dokumentacja API

SoneElapsedTimerComponentKomponent

`<sone-elapsed-timer>` — a running time (`12:04`, `1:02:07`) in tabular mono figures, as a `<time>` with an ISO 8601 `datetime`.

Selektor
sone-elapsed-timer
Wejścia
NazwaTyp Domyślnie
seconds

Elapsed whole seconds.

number | null0
live

A running clock: `role="timer"` (never announced on every tick).

booleanfalse
sizeElapsedTimerSize"default"
ariaLabel

The timer's name when `live` (“Recording time”).

string | nullnull

SoneLevelMeterComponentKomponent

Selektor
sone-level-meter
Wejścia
NazwaTyp Domyślnie
level

The current input level, 0..1 — drives the synthetic sway.

number0
barsnumber30
history

Recent levels (0..1), oldest first. When set, each bar draws one real sample (the newest at the end, missing ones as silence) instead of the sway.

readonly number[] | nullnull

SoneMicToggleComponentKomponent

Selektor
sone-mic-toggle
Wejścia
NazwaTyp Domyślnie
mutedbooleanfalse
compactbooleanfalse
disabledbooleanfalse
muteLabel—$localize`Mute microphone`
unmuteLabel—$localize`Unmute microphone`
Wyjścia
NazwaTyp
muteTogglevoid

SoneProcessingStatusComponentKomponent

`<sone-processing-status>` — where a recording is in the pipeline: the processing orb, the stage label and a thin `<sone-progress>`. A polite live region (`role="status"`), so a stage change is announced once.

Selektor
sone-processing-status
Wejścia
NazwaTyp Domyślnie
stage

`recording`, `transcribing`, `summarizing`, `exporting`, `saved`, `finalized`, `done`, `error` or your own.

string"transcribing"
labels

Overrides for the built-in stage labels; an unknown stage shows itself capitalised.

Partial<Record<string, string>>{}
message

A live detail that replaces the stage label while it is non-empty (“Transcribing 3 of 7…”).

string | nullnull
progress

0..1; `null` = indeterminate.

number | nullnull
showProgress

Draw the progress track (off for a compact row status).

booleantrue
sizeProcessingStatusSize"default"

SoneRecordButtonDirectiveDyrektywa

Selektor
button[soneRecordButton]
Wejścia
NazwaTyp Domyślnie
state

`idle` (start), `recording` (stop), `paused` (resume), `processing` (busy).

RecordButtonState"idle"
sizeRecordButtonSize"default"
withLabel

A pill with the glyph and the button's own text (`<button soneRecordButton withLabel>Record</button>`). Off = the round icon-only button.

booleanfalse

SoneRecordingIndicatorComponentKomponent

`<sone-recording-indicator>` — “a recording is running”: the live (or paused) status orb, the elapsed timer and an optional label, in one row.

Selektor
sone-recording-indicator
Wejścia
NazwaTyp Domyślnie
seconds

Elapsed whole seconds.

number | null0
label

Visible text after the timer (“Recording”); `null` = none.

string | nullnull
stateRecordingIndicatorState"live"
sizeRecordingIndicatorSize"default"
timerLabel

The timer's accessible name.

—$localize`:Accessible name of the running recording clock:Recording time`

SoneStatusOrbComponentKomponent

Selektor
sone-status-orb
Wejścia
NazwaTyp Domyślnie
stateStatusOrbState"ready"
sizeStatusOrbSize"default"