---
title: "Confirm a voice language switch: which live transcript is real speech"
method: POST
path: "/api/lia/speech/judge_transcripts"
tags: ["Lia"]
---

# Confirm a voice language switch: which live transcript is real speech

`POST /api/lia/speech/judge_transcripts`

## Request

- Base URL: `https://api.leapsurgebi.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.leapsurgebi.com/api/lia/speech/judge_transcripts`
- Auth: OAuth 2
  - Password
  - Token URL: `/auth/token`
- TypeScript: <https://skmtc.dev/leapsurgebi/apis/leapsurgeapi/docs/api/lia/speech/judge_transcripts/post.ts> (a function with typed inputs; its response is checked against the schema)

The voice box streams in the last turn's language while Azure identifies the
language in the background. When Azure hears a different one, the browser
sends both texts here before switching the box: Azure's identification alone
put English in Telugu script in testing. Text only — one model call.

## Request body

- JudgeTranscriptsModel: Live text keyed by language code, e.g. the box's text and Azure's.
  - `transcripts` object

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

## Changes

- **2026-09-24** `23b42df3193a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/leapsurgebi/apis/leapsurgeapi/changes/api/lia/speech/judge_transcripts/post.md)

---

[API](https://skmtc.dev/leapsurgebi/apis/leapsurgeapi.md) - [All operations](https://skmtc.dev/leapsurgebi/apis/leapsurgeapi/llms.txt) - [OpenAPI document](https://skmtc.dev/leapsurgebi/apis/leapsurgeapi/revisions/13653cb8ee76?raw)
