Deepgram
  1. 用法
Deepgram
  • 语音转文本
    • 转录 - 远程文件
      POST
    • 转录 - 本地文件
      POST
  • 文字转语音
    • 将文本转换为语音
      POST
  • 文本到文本
    • 分析文本
      POST
  • 项目
    • 获取项目
      GET
    • 获取项目
      GET
    • 更新项目
      PATCH
    • 删除项目
      DELETE
  • Keys
    • 获取 Keys
      GET
    • 获取 Key
      GET
    • 创建 Key
      POST
    • 删除 Key
      DELETE
  • 会员
    • 获取会员
      GET
    • 删除会员
      DELETE
  • 范围
    • 获取会员范围
      GET
    • 更新范围
      PUT
  • 邀请函
    • 获取邀请
      GET
    • 发送邀请
      POST
    • 删除邀请
      DELETE
    • 离开项目
      DELETE
  • 用法
    • 获取所有请求
      GET
    • 获取请求
      GET
    • 总结用法
      GET
    • 获取字段
      GET
  • 计费
    • 获取余额
  • 获得平衡
    GET
  1. 用法

获取请求

开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
GET
/v1 /projects/ {project_id} /requests/ {request_id}
检索发送到指定项目的 Deepgram API 的指定请求的详细信息
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://dev-cn.your-api-server.com/v1 /projects/  /requests/ '
响应示例响应示例
200 - 成功示例
{
  "request_id": "uuid",
  "created": "YYYY-MM-DDThh:mm:ss.sTZD",
  "path": "string",
  "api_key_id": "uuid",
  "response": {
    "details": {
      "usd": 0,
      "duration": 0,
      "total_audio": 0,
      "channels": 0,
      "streams": 0,
      "models": [
        "string"
      ],
      "method": "string",
      "tags": [
        "string"
      ],
      "features": [
        "string"
      ],
      "config": {
        "alternatives": 0,
        "callback": "string",
        "diarize": true,
        "keywords": [
          "string"
        ],
        "language": "string",
        "model": "string",
        "multichannel": true,
        "ner": true,
        "numerals": true,
        "profanity_filter": true,
        "punctuate": true,
        "redact": [
          "string"
        ],
        "search": [
          "string"
        ],
        "utterances": true
      }
    },
    "code": 0,
    "completed": "YYYY-MM-DDThh:mm:ss.sTZD"
  },
  "callback": {
    "attempts": 0,
    "code": 0,
    "completed": "YYYY-MM-DDThh:mm:ss.sTZD"
  }
}

请求参数

Path 参数
project_id
string 
必需
您要检索其指定请求的项目的唯一标识符。 (通用唯一标识)
request_id
string 
必需
您要检索的请求的唯一标识符。 (通用唯一标识)

返回响应

🟢200成功
application/json
Body
request_id
string 
必需
created
string 
必需
path
string 
必需
api_key_id
string 
必需
response
object 
必需
details
object 
必需
code
integer 
必需
completed
string 
必需
callback
object 
必需
attempts
integer 
必需
code
integer 
必需
completed
string 
必需
🟠403禁止访问
上一页
获取所有请求
下一页
总结用法
Built with