Bỏ qua để đến nội dung

Âm thanh thành văn bản gpt-4o-transcribe

Xem Markdownllms.txt

API origin: https://api.openaihub.net. Chọn đúng nhóm API và model. Thông số dưới đây là bản tham chiếu kỹ thuật; chưa phải kết quả kiểm thử từng endpoint bằng tài khoản của bạn.

openapi: 3.0.1
info:
title: ''
description: ''
version: 1.0.0
paths:
/v1/audio/transcriptions:
post:
summary: Âm thanh thành văn bản gpt-4o-transcribe
deprecated: false
description: >-
Tai lieu chinh thuc:
https://platform.openai.com/docs/guides/speech-to-text
operationId: v1_audio_transcriptions
tags:
- OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Trò chuyện/ChatGpt/Âm thanh ChatGPT
- Âm thanh
parameters: []
requestBody:
content:
multipart/form-data:
schema:
type: object
properties:
file:
type: string
format: binary
description: >-
Đối tượng tệp âm thanh (không phải tên tệp) cần được chuyển
thành văn bản, ở định dạng: flac, mp3, mp4, mpeg, mpga, m4a,
ogg, wav hoặc webm.
example: ''
language:
type: string
description: Mã ngôn ngữ ISO-639-1 để cải thiện độ chính xác.
example: ''
model:
type: string
description: >-
Hiện tại whisper-1, gpt-4o-mini-transcribe,
gpt-4o-transcribe, v.v.
example: ''
prompt:
type: string
description: Lời nhắc văn bản
example: ''
response_format:
type: string
description: json, văn bản, v.v.
example: ''
temperature:
type: number
description: >-
Nhiệt độ lấy mẫu; giá trị càng cao thì kết quả càng ngẫu
nhiên
example: 0
required:
- file
- model
examples: {}
responses:
'200':
description: Được
content:
application/json:
schema:
type: object
required:
- text
properties:
text:
type: string
description: Vui lòng cung cấp nội dung văn bản cần dịch.
x-apifox-orders:
- text
x-apidog-orders:
- text
examples:
success:
summary: success
value:
text: một hai ba bốn năm sáu bảy tám chín mười
headers: {}
x-apidog-name: Được
'400':
description: Yêu cầu không hợp lệ hoặc xác thực thất bại
content:
application/json:
schema:
type: object
required:
- error
properties:
error:
type: object
required:
- message
- type
properties:
message:
type: string
description: Thông báo lỗi (thường kết thúc bằng mã yêu cầu)
type:
type: string
description: Loại lỗi; các lỗi cổng cục bộ thường là new_api_error
examples:
- new_api_error
x-apifox-orders:
- message
- type
x-apidog-orders:
- message
- type
refName: NewApiError
x-apifox-orders:
- error
x-apidog-orders:
- error
examples:
example:
summary: example
value:
error:
message: >-
Yêu cầu không hợp lệ (mã yêu cầu:
20260805120000123456789AbCdEfGh)
type: new_api_error
headers: {}
x-apidog-name: Yêu cầu không hợp lệ hoặc xác thực thất bại
'401':
description: Khóa API bị thiếu hoặc không hợp lệ
content:
application/json:
schema:
type: object
required:
- error
properties:
error:
type: object
required:
- message
- type
properties:
message:
type: string
description: Thông báo lỗi (thường kết thúc bằng mã yêu cầu)
type:
type: string
description: Loại lỗi; các lỗi cổng cục bộ thường là new_api_error
examples:
- new_api_error
x-apifox-orders:
- message
- type
x-apidog-orders:
- message
- type
refName: NewApiError
x-apifox-orders:
- error
x-apidog-orders:
- error
examples:
example:
summary: example
value:
error:
message: >-
Mã thông báo không hợp lệ (request id:
20260805120000123456789AbCdEfGh)
type: new_api_error
headers: {}
x-apidog-name: Khóa API bị thiếu hoặc không hợp lệ
security: []
x-apidog-folder: OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Trò chuyện/ChatGpt/Âm thanh ChatGPT
x-apidog-status: released
x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208829-run
components:
schemas: {}
securitySchemes: {}
servers:
- url: https://api.openaihub.net
description: Prod Env
security: []