Lia
Mint a short-lived Azure Speech token (STT/TTS)
Changed onReturns a 10-minute authorization token for direct Azure STT/TTS calls.
Why this pattern:
- The raw AZURE_SPEECH_KEY never leaves the server.
- Tokens expire in 10 minutes — limited blast radius if leaked.
- The frontend connects directly to Azure via WebSocket using the token, so audio streaming is realtime (no round-trip through this backend).
Frontend usage with Microsoft Speech SDK: const config = sdk.SpeechConfig.fromAuthorizationToken(token, region);
post/api/lia/speech/token
Request
- Base URLhttps://api.leapsurgebi.com (the document declares no server; this is the origin it was published from)
- AuthOAuth 2PasswordToken URL/auth/token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Response
Successful Response
Changes
- info
endpoint added
- info