Podcast & Video Summarizer | 播客知识管理助手
Podcast & Video Summarizer | 播客知识管理助手 · Acciones GPT
Audio/Video Transcription Service
This service transcribes audio from provided video or audio URLs using Tencent Cloud Speech Recognition.
POST /api/transcribeSubmit a URL for transcriptionThis endpoint accepts a URL for an audio or video file and starts the transcription process.
GET /api/transcribe/status/{taskId}Check the status of a transcription taskThis endpoint provides the status and result of a transcription task based on its ID.
POST /api/transcribe/query/{taskId}Retrieve relevant content from a transcribed documentThis endpoint retrieves the most relevant content from a transcribed document based on the user's query.
Esquema original API
{
"openapi": "3.0.0",
"info": {
"title": "Audio/Video Transcription Service",
"description": "This service transcribes audio from provided video or audio URLs using Tencent Cloud Speech Recognition.",
"version": "1.0"
},
"servers": [
{
"url": "https://lingvl.com",
"description": "Main server"
}
],
"paths": {
"/api/transcribe": {
"post": {
"summary": "Submit a URL for transcription",
"description": "This endpoint accepts a URL for an audio or video file and starts the transcription process.",
"operationId": "submitTranscription",
"x-openai-isConsequential": false,
"security": [
{
"OAuth2": [
"email"
]
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "The URL of the audio or video file to be transcribed."
}
},
"required": [
"url"
]
}
}
}
},
"responses": {
"202": {
"description": "Accepted. The request has been accepted for processing.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"taskId": {
"type": "string",
"description": "The ID of the transcription task for status checks."
},
"title": {
"type": "string",
"description": "The title of the audio or video, if available."
},
"author": {
"type": "string",
"description": "The author of the audio or video, if available."
},
"duration": {
"type": "integer",
"format": "int32",
"description": "The duration of the audio or video in seconds, if available."
},
"transcript": {
"type": "string",
"description": "The transcribed text, if available."
},
"description": {
"type": "string",
"description": "The description of text, if available."
},
"eta": {
"type": "integer",
"description": "The estimated time in seconds when the transcription task will finish."
},
"lang": {
"type": "string",
"description": "The language of the audio or video in ISO 639-1, if available."
}
}
}
}
}
},
"400": {
"description": "Bad Request. The URL is invalid or missing."
},
"401": {
"description": "Unauthorized. Invalid or missing OAuth token."
},
"500": {
"description": "Internal Server Error."
}
}
}
},
"/api/transcribe/status/{taskId}": {
"get": {
"summary": "Check the status of a transcription task",
"description": "This endpoint provides the status and result of a transcription task based on its ID.",
"operationId": "checkTranscriptionStatus",
"x-openai-isConsequential": false,
"security": [
{
"OAuth2": [
"email"
]
}
],
"parameters": [
{
"in": "path",
"name": "taskId",
"required": true,
"schema": {
"type": "string"
},
"description": "The transcription task ID."
}
],
"responses": {
"200": {
"description": "OK. The status of the transcription task.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"status": {
"type": "string",
"description": "Current status of the transcription task."
},
"transcript": {
"type": "string",
"description": "The transcribed text, if available."
}
}
}
}
}
},
"401": {
"description": "Unauthorized. Invalid or missing OAuth token."
},
"404": {
"description": "Not Found. The task ID does not exist."
},
"500": {
"description": "Internal Server Error."
}
}
}
},
"/api/transcribe/query/{taskId}": {
"post": {
"summary": "Retrieve relevant content from a transcribed document",
"description": "This endpoint retrieves the most relevant content from a transcribed document based on the user's query.",
"operationId": "retrieveTranscriptContent",
"x-openai-isConsequential": false,
"security": [
{
"OAuth2": [
"email"
]
}
],
"parameters": [
{
"in": "path",
"name": "taskId",
"required": true,
"schema": {
"type": "string"
},
"description": "The ID of the transcription task."
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "The user's query related to the transcribed document."
}
},
"required": [
"query"
]
}
}
}
},
"responses": {
"200": {
"description": "OK. The most relevant content related to the query.",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"type": "string"
},
"description": "The content of the document most relevant to the user's query."
}
}
}
},
"400": {
"description": "Bad Request. Invalid input parameters."
},
"401": {
"description": "Unauthorized. Invalid or missing OAuth token."
},
"404": {
"description": "Not Found. The task ID does not exist."
},
"500": {
"description": "Internal Server Error."
}
}
}
}
}
}