Skip to content

Docs

transcribe_media

Transcribe a video's audio to text with timestamped segments and an SRT/VTT subtitle file, so it can feed text posts. Runs as a background job; poll get_transcript for the result. Credits are spent up front and refunded automatically if the job fails.

Transcribe a video's audio to text with timestamped segments and an SRT/VTT subtitle file, so it can feed text posts. Runs as a background job; poll get_transcript for the result. Credits are spent up front and refunded automatically if the job fails.

Uses heyeveryone AI and costs credits: 2 credits per minute of media, 2 minimum (the exact amount is known once the job reads the media's duration). Tell the person before calling it.

Access and cost

  • Kind: mutation
  • Scope: workspace
  • Actors: member, agent
  • Credits: 2 credits per minute of media, 2 minimum (the exact amount is known once the job reads the media's duration).
  • Requires confirmation: false
  • Accepts idempotency key: true

Input schema

{
  "properties": {
    "workspaceId": {
      "format": "uuid",
      "type": "string"
    },
    "mediaAssetId": {
      "format": "uuid",
      "type": "string"
    },
    "idempotencyKey": {
      "maxLength": 200,
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "workspaceId",
    "mediaAssetId"
  ],
  "type": "object"
}

Output schema

{
  "additionalProperties": false,
  "properties": {
    "transcriptId": {
      "format": "uuid",
      "type": "string"
    },
    "status": {
      "const": "pending",
      "type": "string"
    }
  },
  "required": [
    "transcriptId",
    "status"
  ],
  "type": "object"
}

Errors

[
  "media_not_found",
  "media_not_ready",
  "insufficient_credits",
  "plan_limit_reached",
  "idempotency_conflict"
]

Annotations

{
  "destructiveHint": false,
  "idempotentHint": false,
  "openWorldHint": false,
  "readOnlyHint": false,
  "title": "Transcribe media"
}