# audio


<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->

## 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.

------------------------------------------------------------------------

<a
href="https://github.com/cj-mills/cjm-transcript-vad-align/blob/main/cjm_transcript_vad_align/routes/audio.py#L31"
target="_blank" style="float:right; font-size:smaller">source</a>

### init_audio_router

``` python

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.*
