跳转到主要内容
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
完整 OpenAPI 定义 有效请求声明(包括认证和引用的 schema):

费用与请求规则

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

授权

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"

alternatives
integer

Number of alternative transcripts to return.

必填范围: x >= 1
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.

diarize
boolean

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

interim_results
boolean

Return interim results 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.

示例:
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"

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"

punctuate
boolean

Automatically punctuate transcript.

smart_format
boolean

Apply smart formatting (capitalization/punctuation).

tier
string

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

Allowed value: "enhanced"
version
string

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

响应

Tool result data

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