Transcription

@Composable
fun Transcription(segments: List<TranscriptSegment>, modifier: Modifier = Modifier, currentTimeMs: Long = -1, onSeek: (Long) -> Unit? = null)(source)

A transcript that follows playback (AI Elements <Transcription>): the segment at currentTimeMs is highlighted, what's already been said stays full-strength, what's ahead is dimmed, and tapping a segment calls onSeek with its start. Consecutive segments from the same TranscriptSegment.speaker form one paragraph.