> ## Documentation Index
> Fetch the complete documentation index at: https://aisa.one/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# Transcribe Pre-recorded Audio

> Transcribe Pre-recorded Audio

## 请求规范

* **方法与路径:** POST /apis/v1/deepgram/speech-to-text-pre-recorded
* **可用状态:** enabled
* **请求 URL 模板:** `https://api.aisa.one/apis/v1/deepgram/speech-to-text-pre-recorded`

[完整 OpenAPI 定义](https://aisa.one/docs/openapi/zh/deepgram.json)

有效请求声明（包括认证和引用的 schema）：

```json theme={null}
{
  "operationId": "deepgram.speech-to-text-pre-recorded",
  "method": "POST",
  "path": "/apis/v1/deepgram/speech-to-text-pre-recorded",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "schema": {
          "properties": {
            "alternatives": {
              "description": "Number of alternative transcripts to return.",
              "minimum": 1,
              "type": "integer"
            },
            "audio_url": {
              "description": "Public URL of the audio file to transcribe. Must be a direct, publicly downloadable media file URL — not a preview page, auth-gated link, or expiring/short-lived URL.",
              "examples": [
                "https://example.com/audio.wav"
              ],
              "format": "uri",
              "maxLength": 2083,
              "minLength": 1,
              "type": "string"
            },
            "content_type": {
              "description": "MIME type of the audio file. Without your own Deepgram key, only 'audio/wav' is supported.",
              "enum": [
                "audio/wav",
                "audio/mp3",
                "audio/mpeg",
                "audio/flac",
                "audio/webm"
              ],
              "examples": [
                "audio/wav",
                "audio/mp3"
              ],
              "type": "string"
            },
            "detect_language": {
              "description": "Automatically detect language if true. Prefer explicit `language` over this when the audio language is known; auto-detection reduces accuracy for non-English content. Requires your own Deepgram key.",
              "type": "boolean"
            },
            "diarize": {
              "description": "Enable speaker diarization if true. Requires your own Deepgram key.",
              "type": "boolean"
            },
            "interim_results": {
              "description": "Return interim results if true. Requires your own Deepgram key.",
              "type": "boolean"
            },
            "keyterm": {
              "description": "List of keyterms to boost in the transcript. Supported by Nova-3 and Flux models only. Use simple terms without intensifiers (e.g., 'invoice', 'payment terms'). For other models, use 'keywords' instead. Requires your own Deepgram key.",
              "examples": [
                [
                  "invoice",
                  "payment terms",
                  "customer name"
                ]
              ],
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "keywords": {
              "description": "List of keywords to boost in the transcript. Supported by Nova-2, Nova-1, Enhanced, and Base models. Format: 'keyword:intensifier' (e.g., 'invoice:5'). For Nova-3 or Flux models, use 'keyterm' instead. Requires your own Deepgram key.",
              "examples": [
                [
                  "invoice:5",
                  "payment:3"
                ]
              ],
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "language": {
              "description": "Language code for transcription (e.g., 'en-US'). Without your own Deepgram key, only 'en' or 'en-US' is supported and 'en' is used when omitted.",
              "examples": [
                "en-US"
              ],
              "type": "string"
            },
            "model": {
              "description": "Deepgram model to use (e.g., 'nova-3', 'general', 'phonecall'). Without your own Deepgram key, only 'nova-3' is supported and is used when omitted.",
              "examples": [
                "nova-3"
              ],
              "type": "string"
            },
            "punctuate": {
              "description": "Automatically punctuate transcript.",
              "type": "boolean"
            },
            "smart_format": {
              "description": "Apply smart formatting (capitalization/punctuation).",
              "type": "boolean"
            },
            "tier": {
              "const": "enhanced",
              "description": "Enhanced tier for higher-accuracy recognition. Requires your own Deepgram key.",
              "type": "string"
            },
            "version": {
              "description": "Specific model version to use. Requires your own Deepgram key.",
              "type": "string"
            }
          },
          "required": [
            "audio_url",
            "content_type"
          ],
          "type": "object"
        }
      }
    },
    "required": true
  },
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## 费用与请求规则

按实际用量收费。 默认请求预估费用：\$0.0103 USD。 最终费用以实际用量为准。 账户适用价格可能不同；支持报价的接口可按实际请求获取报价。


## OpenAPI

````yaml openapi/zh/deepgram.json POST /apis/v1/deepgram/speech-to-text-pre-recorded
openapi: 3.1.0
info:
  description: ''
  title: Deepgram
  version: '1'
  x-aisa-capabilities:
    idempotency: Idempotency-Key
    max_price: X-AISA-Max-Price-USD
    quote:
      header: X-AISA-Cost-Mode
      value: quote
  x-aisa-catalogs:
    deepgram:
      description: ''
      title: Deepgram
      x-aisa-capabilities:
        idempotency: Idempotency-Key
        max_price: X-AISA-Max-Price-USD
        quote:
          header: X-AISA-Cost-Mode
          value: quote
      x-aisa-document:
        facts_hash: 28061d27008061cbecfcaf7d1a3f1cc9280a40fce8644055c6968a360c2daf23
        generator_version: '3'
        protocol_version: '1'
        schema_version: '1'
      x-aisa-plans:
        builder: 1
        display_plan: payg
        payg: 1
        similarweb_payg: 1
        team: 1
        version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-configured-paths:
    - /apis/v1/deepgram/speech-to-text-pre-recorded
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:1a81c02186a2643a51532e581623d546b013a3b1b1c29175b8a060faf6cfa8ac
    facts_hash: 28061d27008061cbecfcaf7d1a3f1cc9280a40fce8644055c6968a360c2daf23
    generator_version: '3'
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: deepgram
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/deepgram/speech-to-text-pre-recorded:
    post:
      tags:
        - Deepgram
      summary: Transcribe Pre-recorded Audio
      operationId: deepgram.speech-to-text-pre-recorded
      requestBody:
        content:
          application/json:
            schema:
              properties:
                alternatives:
                  description: Number of alternative transcripts to return.
                  minimum: 1
                  type: integer
                audio_url:
                  description: >-
                    Public URL of the audio file to transcribe. Must be a
                    direct, publicly downloadable media file URL — not a preview
                    page, auth-gated link, or expiring/short-lived URL.
                  examples:
                    - https://example.com/audio.wav
                  format: uri
                  maxLength: 2083
                  minLength: 1
                  type: string
                content_type:
                  description: >-
                    MIME type of the audio file. Without your own Deepgram key,
                    only 'audio/wav' is supported.
                  enum:
                    - audio/wav
                    - audio/mp3
                    - audio/mpeg
                    - audio/flac
                    - audio/webm
                  examples:
                    - audio/wav
                    - audio/mp3
                  type: string
                detect_language:
                  description: >-
                    Automatically detect language if true. Prefer explicit
                    `language` over this when the audio language is known;
                    auto-detection reduces accuracy for non-English content.
                    Requires your own Deepgram key.
                  type: boolean
                diarize:
                  description: >-
                    Enable speaker diarization if true. Requires your own
                    Deepgram key.
                  type: boolean
                interim_results:
                  description: >-
                    Return interim results if true. Requires your own Deepgram
                    key.
                  type: boolean
                keyterm:
                  description: >-
                    List of keyterms to boost in the transcript. Supported by
                    Nova-3 and Flux models only. Use simple terms without
                    intensifiers (e.g., 'invoice', 'payment terms'). For other
                    models, use 'keywords' instead. Requires your own Deepgram
                    key.
                  examples:
                    - - invoice
                      - payment terms
                      - customer name
                  items:
                    type: string
                  type: array
                keywords:
                  description: >-
                    List of keywords to boost in the transcript. Supported by
                    Nova-2, Nova-1, Enhanced, and Base models. Format:
                    'keyword:intensifier' (e.g., 'invoice:5'). For Nova-3 or
                    Flux models, use 'keyterm' instead. Requires your own
                    Deepgram key.
                  examples:
                    - - invoice:5
                      - payment:3
                  items:
                    type: string
                  type: array
                language:
                  description: >-
                    Language code for transcription (e.g., 'en-US'). Without
                    your own Deepgram key, only 'en' or 'en-US' is supported and
                    'en' is used when omitted.
                  examples:
                    - en-US
                  type: string
                model:
                  description: >-
                    Deepgram model to use (e.g., 'nova-3', 'general',
                    'phonecall'). Without your own Deepgram key, only 'nova-3'
                    is supported and is used when omitted.
                  examples:
                    - nova-3
                  type: string
                punctuate:
                  description: Automatically punctuate transcript.
                  type: boolean
                smart_format:
                  description: Apply smart formatting (capitalization/punctuation).
                  type: boolean
                tier:
                  const: enhanced
                  description: >-
                    Enhanced tier for higher-accuracy recognition. Requires your
                    own Deepgram key.
                  type: string
                version:
                  description: >-
                    Specific model version to use. Requires your own Deepgram
                    key.
                  type: string
              required:
                - audio_url
                - content_type
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/Response576A0Ea506F3_connect_DEEPGRAM_SPEECH_TO_TEXT_PRE_RECORDED__output__public_data
          description: Tool result data
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
components:
  schemas:
    Response576A0Ea506F3_connect_DEEPGRAM_SPEECH_TO_TEXT_PRE_RECORDED__output__public_data:
      $ref: >-
        #/components/schemas/Response576A0Ea506F3_connect_DEEPGRAM_SPEECH_TO_TEXT_PRE_RECORDED__output__f787f28144cb1000
    Response576A0Ea506F3_connect_DEEPGRAM_SPEECH_TO_TEXT_PRE_RECORDED__output__f787f28144cb1000:
      properties:
        metadata:
          $ref: >-
            #/components/schemas/Response576A0Ea506F3_connect_DEEPGRAM_SPEECH_TO_TEXT_PRE_RECORDED__output__b11703a09b349243
        results:
          $ref: >-
            #/components/schemas/Response576A0Ea506F3_connect_DEEPGRAM_SPEECH_TO_TEXT_PRE_RECORDED__output__90f4cc22b0446387
        warnings:
          items:
            type: string
          type: array
      required:
        - metadata
        - results
      type: object
    Response576A0Ea506F3_connect_DEEPGRAM_SPEECH_TO_TEXT_PRE_RECORDED__output__b11703a09b349243:
      properties:
        channels:
          type: integer
        created:
          type: string
        duration:
          type: number
        model_info:
          additionalProperties:
            $ref: >-
              #/components/schemas/Response576A0Ea506F3_connect_DEEPGRAM_SPEECH_TO_TEXT_PRE_RECORDED__output__2a1112e0e7642695
          type: object
        models:
          items:
            type: string
          type: array
        request_id:
          type: string
        sha256:
          type: string
        transaction_key:
          type: string
      required:
        - request_id
        - channels
        - duration
        - created
      type: object
    Response576A0Ea506F3_connect_DEEPGRAM_SPEECH_TO_TEXT_PRE_RECORDED__output__90f4cc22b0446387:
      properties:
        channels:
          items:
            $ref: >-
              #/components/schemas/Response576A0Ea506F3_connect_DEEPGRAM_SPEECH_TO_TEXT_PRE_RECORDED__output__a6f230b99dd63cc3
          type: array
        utterances:
          items:
            $ref: >-
              #/components/schemas/Response576A0Ea506F3_connect_DEEPGRAM_SPEECH_TO_TEXT_PRE_RECORDED__output__329f847bda6fb35c
          type: array
      required:
        - channels
      type: object
    Response576A0Ea506F3_connect_DEEPGRAM_SPEECH_TO_TEXT_PRE_RECORDED__output__2a1112e0e7642695:
      properties:
        arch:
          type: string
        name:
          type: string
        version:
          type: string
      required:
        - name
        - version
        - arch
      type: object
    Response576A0Ea506F3_connect_DEEPGRAM_SPEECH_TO_TEXT_PRE_RECORDED__output__a6f230b99dd63cc3:
      properties:
        alternatives:
          items:
            $ref: >-
              #/components/schemas/Response576A0Ea506F3_connect_DEEPGRAM_SPEECH_TO_TEXT_PRE_RECORDED__output__b95643d0ce65e905
          type: array
      required:
        - alternatives
      type: object
    Response576A0Ea506F3_connect_DEEPGRAM_SPEECH_TO_TEXT_PRE_RECORDED__output__329f847bda6fb35c:
      properties:
        confidence:
          type: number
        end:
          type: number
        speaker:
          type: integer
        start:
          type: number
        transcript:
          type: string
      required:
        - transcript
        - confidence
        - speaker
        - start
        - end
      type: object
    Response576A0Ea506F3_connect_DEEPGRAM_SPEECH_TO_TEXT_PRE_RECORDED__output__b95643d0ce65e905:
      properties:
        confidence:
          type: number
        transcript:
          type: string
        words:
          items:
            $ref: >-
              #/components/schemas/Response576A0Ea506F3_connect_DEEPGRAM_SPEECH_TO_TEXT_PRE_RECORDED__output__c69a99a7b146fc96
          type: array
      required:
        - transcript
        - confidence
        - words
      type: object
    Response576A0Ea506F3_connect_DEEPGRAM_SPEECH_TO_TEXT_PRE_RECORDED__output__c69a99a7b146fc96:
      properties:
        confidence:
          type: number
        end:
          type: number
        punctuated_word:
          type: string
        speaker:
          type: integer
        speaker_confidence:
          type: number
        start:
          type: number
        word:
          type: string
      required:
        - word
        - start
        - end
        - confidence
      type: object
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.