audio

Route handlers for audio playback controls

Auto-Navigate Toggle Handler

Updates auto-navigate state and returns JavaScript to update the client-side flag.

Replay Current Handler

Returns JavaScript to replay the current segment’s audio. No state change needed.

Router Initialization

Creates audio control routes and returns the router with route functions.


init_audio_router


def init_audio_router(
    state_store:SQLiteWorkflowStateStore, # The workflow state store
    workflow_id:str, # The workflow identifier
    prefix:str, # Base prefix for audio routes
    urls:ReviewUrls, # URL bundle to populate
)->Tuple: # (router, routes dict)

Initialize audio control routes.