Speech-to-Text is the conversation-category specialist service in thcode’s AI for Thai catalog. It performs automatic speech recognition (ASR) on Thai audio, converting spoken language into a text transcript along with timed segments and a confidence score. In a coding workflow, this opens a path for developers to dictate Thai-language voice instructions, comments, or function descriptions, which thcode can then pass to Typhoon for interpretation, translation, or code generation.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Temicide/thcode/llms.txt
Use this file to discover all available pages before exploring further.
Speech-to-Text is catalogued in this release. It is discoverable and fully inspectable via
/tools, but the endpoint mapping, live transport, and contract test are a subsequent integration phase. Invoking the service now returns a stub refusal: "Catalogued — Not available yet".Service Identity
| Field | Value |
|---|---|
| Service ID | speech-to-text |
| Upstream name | Speech-to-Text |
| Thai name | คำพูดเป็นข้อความ |
| Category | conversation |
| Modality | audio |
| Endpoint | https://api.aiforthai.in.th/partii-webapi |
| Support level | catalogued |
| Contract ver. | 1.0.0 |
| Adapter ver. | 1.0.0 |
Search Terms
The router matches Speech-to-Text against the following terms. You can use any of them in the/tools search command:
Handler: Input Contract
TheSpeechToTextSpecialistHandler builds a transport request from a binary audio artifact. The handler reads the first prepared artifact, validates that it carries bytes (contentKind: 'bytes'), base64-encodes the audio data, and assembles the JSON request body.
Request body sent to the ASR endpoint
POST to https://api.aiforthai.in.th/partii-webapi with:
Authorization: Bearer <key>— the raw API key is resolved in scope only and never appears in Evidence, logs, or the secret-freeheadersSummary(which shows[redacted]).Content-Type: application/json
bytes, the handler throws before a transport call is made.
Handler: Output Contract
TheSpeechToTextSpecialistHandler maps the upstream JSON response into three typed SpecialistFieldValue fields:
- transcript
- segments
- confidence
Kind:
textMapped from the transcript key in the upstream response. Present when transcript is a non-empty string. An empty string and null are both treated as not-present, and the field is listed in emptyFields.null, or of the wrong type produces present: false and is appended to emptyFields. The handler never invents fields that were not in the upstream response.
Fixture
The handler ships with a deterministic, built-in (non-user) fixture used for health probes. The fixture is a minimal valid WAV file: a 44-byte header (PCM, mono, 8000 Hz, 16-bit) followed by 200 bytes of zero PCM samples — 244 bytes total, representing 100 silent samples. The health canary verifies the endpoint accepts it and returns a valid JSON object. The fixture’s expected outputs are:audio/wav as the media type; any other media type is rejected before the probe is dispatched.
Potential Uses in Coding Tasks
Once Speech-to-Text returns a Thai transcript, Typhoon can use it to:- Transcribe voice instructions — a developer speaking Thai can dictate what code to write, and Typhoon interprets the transcript as a task description.
- Convert spoken Thai comments into inline source-code comments or docstrings.
- Pipe the transcript to NER — the transcript can be handed off to Named Entity Recognition to identify names, locations, or organizations mentioned in a voice note.
- Populate UI strings — voice-dictated copy can be transcribed and inserted directly into Thai-language user-facing strings.
Using /tools with Speech-to-Text
Inspect the Speech-to-Text catalog entry
Search for conversation or ASR services