audio

Route handlers for alignment audio playback controls

Auto-Navigate Toggle Handler

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

Router Initialization

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


source

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:AlignmentUrls, # URL bundle to populate
)->Tuple: # (router, routes dict)

Initialize alignment audio control routes.