---
title: "Get the state and transcription result of a speech recognition task"
method: GET
path: "/speech/result/{id}"
tags: ["Speech"]
---

# Get the state and transcription result of a speech recognition task

`GET /speech/result/{id}`

## Request

- Base URL: `https://api.commpeak.com/portal`
- URL: `https://api.commpeak.com/portal/speech/result/{id}`
- Auth: API key in header `Authorization`

Returns a previously submitted speech recognition task by its `id`. Once the task has succeeded `result` holds the transcription; until then it is not yet populated, so the method can be polled until it is. Depending on the task type the response also contains a call `summary` and a call score with its description. Only tasks of the authenticated customer can be read; any other id returns 404. A recognition token of the authenticated account may be passed in the `X-Recognition-Token` header (or as a `token` query parameter); API keys allowed to use Speech Recognition may omit it.

## Path parameters

- `id` integer, required: Speech recognition task identifier.

## Response `200`

Successful Response

- SpeechRecognitionResultResponse
  - `id` integer, required: Speech recognition task identifier
  - `duration` number, nullable: Recording duration in seconds
  - `languages` string[], nullable: Languages used for recognition
  - `remote_identifier` string, nullable: Caller-provided identifier
  - `result` union: Recognition result. Once the task has succeeded it is the transcription object. Until then it is `null` or a string — an error message if the task failed.
    - SpeechRecognitionTranscription
      - `remote_identifier` string, nullable: Caller-provided identifier
      - `created_at` string, nullable: Task creation time (`YYYY-MM-DD HH:MM:SS`)
      - `language` string, nullable: First language requested for recognition
      - `task_type` string, nullable: Type of recognition task
      - `plain_body` string, nullable: Full transcript: the text of all `phrases`, one phrase per line
      - `phrases` SpeechRecognitionPhrase[], nullable: Transcribed phrases in chronological order
        - `channel` integer, nullable: Audio channel the phrase was spoken on (1 or 2)
        - `start_at` number, nullable: Phrase start, seconds from the beginning of the recording
        - `end_at` number, nullable: Phrase end, seconds from the beginning of the recording
        - `phrase` string, nullable: Phrase text
        - `sentiment` number, nullable: Phrase sentiment score, when available
      - `translation_plain_body` string, nullable: Full translation, one phrase per line. Empty unless the task type includes translation
      - `translation_phrases` SpeechRecognitionPhrase[], nullable: Translated phrases. Empty unless the task type includes translation
        - `channel` integer, nullable: Audio channel the phrase was spoken on (1 or 2)
        - `start_at` number, nullable: Phrase start, seconds from the beginning of the recording
        - `end_at` number, nullable: Phrase end, seconds from the beginning of the recording
        - `phrase` string, nullable: Phrase text
        - `sentiment` number, nullable: Phrase sentiment score, when available
      - `summary` string, nullable: Summary of conversation
      - `sentiment` number, nullable: Call Score 0-1
      - `sentiment_description` string, nullable: Call Score description
      - `entities` object, nullable: Named entities found in the transcript, grouped by entity type
      - `entities_list` string[], nullable: All values of `entities`, lower-cased and de-duplicated
      - `metadata` object, nullable: Metadata submitted with the task, values as strings
    - string
  - `task_type` string, nullable: Type of recognition task
  - `summary` string, nullable: Summary of conversation
  - `call_score` number, nullable: Call Score 0-1
  - `call_score_description` string, nullable: Call Score description

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/commpeak/apis/commpeak-portal-api.md) - [All operations](https://skmtc.dev/commpeak/apis/commpeak-portal-api/llms.txt) - [OpenAPI document](https://skmtc.dev/commpeak/apis/commpeak-portal-api/revisions/df57b0c16367?raw)
