Sprachsitzung — component.voice-session
Sprachfenster im App-Look (24.10.2026): grosser Mikrofonknopf mit Pegelringen (WebAudio), Zustaende bereit, hoert zu, erkennt, denkt nach, spricht, Fehler, nicht verfuegbar. Modus Diktat (erkannter Text in einem Textfeld, Uebernehmen) oder Gespraech in Runden (sprechen, Antwort hoeren) mit dem Verla
Beispiele
Diktat
Bereit
Sprich deine Nachricht; der erkannte Text landet hier und kann bearbeitet werden.
Diktat mit Gespräch verfügbar
Bereit
Gespräch in Runden
Bereit
Gespräch in Runden: sprechen, kurz warten, Antwort hören. Echtzeit folgt mit der Voice-Pipe.
Eigenschaften
| Prop | Typ | Default |
|---|---|---|
mode | string: diktat | gespraech | "diktat" |
conversation | boolean | false |
agentName | string | "" |
text | string | "" |
textName | string | "" |
hint | string | "" |
submitLabel | string | "In Nachricht übernehmen" |
fileButton | boolean | true |
padding | string: standard | none | sm | md | lg | xl | "standard" |
margin | string: standard | none | sm | md | lg | xl | "standard" |
border | string: standard | none | hairline | strong | "standard" |
radius | string: standard | none | control | surface | pill | "standard" |
textColor | string | "" |
backgroundColor | string | "" |
shadow | string: standard | none | sm | md | lg | "standard" |
width | string: standard | full | "standard" |
alignSelf | string: standard | start | center | end | "standard" |
anchor | string | "" |
Events & Slots
Events: toggle, mode, file, submit, hangup
Stellschrauben (Komponenten-Tokens)
| Token | Default |
|---|---|
--voice-session-surface | var(--color-surface-default) |
--voice-session-border | var(--color-border-subtle) |
--voice-session-text | var(--color-text-default) |
--voice-session-muted | var(--color-text-muted) |
--voice-session-accent | var(--color-action-primary) |
--voice-session-accent-soft | var(--color-accent-soft) |
--voice-session-on-accent | var(--color-action-on-primary) |
--voice-session-agent | var(--color-agentic-start) |
--voice-session-danger | var(--color-status-danger) |
--voice-level | 0 |
Genutzte Design-Tokens
border.emphasis border.hairline color.accent-soft color.action.on-primary color.action.primary color.agentic.start color.border.default color.border.focus color.border.subtle color.status.danger color.surface.default color.surface.hover color.surface.selected color.text.default color.text.disabled color.text.muted duration.base duration.fast duration.slow easing.out easing.standard font.family.default font.family.mono leading.base radius.control radius.full radius.surface shadow.raised size.1 size.2 size.20 size.24 size.3 size.32 size.4 size.40 size.5 size.6 text.md text.sm text.xs weight.medium