跳转到主要内容
POST
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
  • Runtime 事实版本: 28061d27008061cbecfcaf7d1a3f1cc9280a40fce8644055c6968a360c2daf23
完整 OpenAPI 定义 有效请求与价格声明(包括认证和引用的 schema):

费用与请求规则

按用量计费;默认请求预估费用:$0.0103 USD(不是固定价格)。 声明的单位费率:每 provider_credit $0.000001 USD。 最终费用以账户适用价格及实际结算为准。 公开参考值不是你的账户报价或最终扣费。对于支持 X-AISA-Cost-Mode: quote 的接口,执行前请针对完整请求获取免费报价;执行后通过响应费用元数据和 Usage Logs 核对结算费用。1 USD 等于 1,000,000 个整数 micro-USD。
  • 默认请求参考估价(USD): 0.0103
  • 声明的单位费率(USD): 1e-06
  • 计费单位: provider_credit
  • 计费依据: response_units
  • 公开参考倍率: 1.0
  • 声明的最大计数或单位数: 10000000
  • 结算证据来源: response_body

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

请求体

application/json
audio_url
string<uri>
必填

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.

Required string length: 1 - 2083
示例:

"https://example.com/audio.wav"

content_type
enum<string>
必填

MIME type of the audio file. Without your own Deepgram key, only 'audio/wav' is supported.

可用选项:
audio/wav,
audio/mp3,
audio/mpeg,
audio/flac,
audio/webm
示例:

"audio/wav"

"audio/mp3"

tier
string

Enhanced tier for higher-accuracy recognition. Requires your own Deepgram key.

Allowed value: "enhanced"
model
string

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.

示例:

"nova-3"

diarize
boolean

Enable speaker diarization if true. Requires your own Deepgram key.

keyterm
string[]

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.

示例:
version
string

Specific model version to use. Requires your own Deepgram key.

keywords
string[]

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.

示例:
language
string

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.

示例:

"en-US"

punctuate
boolean

Automatically punctuate transcript.

alternatives
integer

Number of alternative transcripts to return.

必填范围: x >= 1
smart_format
boolean

Apply smart formatting (capitalization/punctuation).

detect_language
boolean

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.

interim_results
boolean

Return interim results if true. Requires your own Deepgram key.

响应

Tool result data

results
object
必填
metadata
object
必填
warnings
string[]