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

Tạo giọng nói gpt-4o-mini-tts

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/speech:
post:
summary: Tạo giọng nói gpt-4o-mini-tts
deprecated: false
description: >-
Tài liệu chính thức:
https://platform.openai.com/docs/guides/text-to-speech
operationId: v1_audio_speech
tags:
- OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Trò chuyện/ChatGpt/Âm thanh ChatGPT
- Âm thanh
parameters: []
requestBody:
content:
application/json:
schema:
type: object
required:
- model
- input
- voice
properties:
input:
type: string
description: Văn bản dùng để tạo âm thanh. Độ dài tối đa là 4096 ký tự.
model:
type: string
description: 'Một trong các mô hình TTS có sẵn: tts-1 hoặc tts-1-hd'
response_format:
type: string
description: >-
Định dạng âm thanh mặc định là mp3. Các định dạng được hỗ
trợ gồm: mp3, opus, aac và flac.
speed:
type: number
description: >-
Mặc định là 1. Tốc độ âm thanh được tạo. Chọn một giá trị từ
0.25 đến 4.0. Giá trị mặc định là 1.0.
voice:
type: string
description: >-
Giọng nói được sử dụng khi tạo âm thanh. Các giọng nói được
hỗ trợ gồm: alloy, echo, fable, onyx, nova và shimmer.
refName: V1AudioSpeechRequest
x-apifox-orders:
- input
- model
- response_format
- speed
- voice
x-apidog-orders:
- input
- model
- response_format
- speed
- voice
examples:
gpt_4o_mini_tts:
value:
input: Con cáo nâu nhanh nhẹn đã nhảy qua con chó lười biếng.
model: gpt-4o-mini-tts
voice: hợp kim
summary: gpt_4o_mini_tts
description: Tạo giọng nói gpt-4o-mini-tts
responses:
'200':
description: Được
content:
application/json:
schema:
type: object
x-apidog-orders: []
examples:
example:
summary: example
value:
id: resp_example
object: phản hồi
status: completed
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-45208828-run
components:
schemas: {}
securitySchemes: {}
servers:
- url: https://api.openaihub.net
description: Prod Env
security: []