Skip to content

Add visual background color indicators for speech item states #25

@paulpv

Description

@paulpv

Add visual feedback showing which items are queued, currently speaking, or already spoken.
This helps users/dev understand what's happening and troubleshoot issues.

Color States:

  1. Enqueued (not yet spoken): Light blue background (rgba(33, 150, 243, 0.15))
  2. Currently speaking: Translucent yellow background (rgba(255, 255, 0, 0.25)) - already implemented
  3. Already spoken: Light gray background (rgba(0, 0, 0, 0.05))

Features:

Implementation:

  • Hook into addSpokenItem() for enqueued state
  • Hook into speech start event for speaking state
  • Hook into speech end event for spoken state
  • Use data attributes to track state: data-tts-state="enqueued|speaking|spoken"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions