[GET] Get Request

https://www.everai.vn/api/v1/tts/{{request_id}}

API Get Request

Lấy thông tin của request bằng cách gọi API

URL: https://www.everai.vn/api/v1/tts/{{request_id}} Method: GET Content Type: application/json Response Type: text/json

Tham số Header

Tham số
Kiểu dữ liệu
Tính bắt buộc
Mô tả

Authorization

Bearer Token

API key của người dùng, được tạo trong giao diện tại https://everai.vn/api

Kết quả trả về

  • status: trạng thái của API (1: thành công, 0: thất bại)

  • error_code: mã lỗi (Nếu có)

  • error_message: chi tiết lỗi (Nếu có)

  • result: dữ liệu trả về khi gọi API thành công

    • request_id: mã request

    • characters: số ký tự của đoạn văn bản convert

    • voice_code

    • audio_type

    • speed_rate

    • pitch_rate

    • bitrate

    • create_at

    • progress: phần trăm xử lý của request

    • status: trạng thái của request

    • audio_link: Đường dẫn tải file audio tổng hợp

    • audio_expired: trạng thái của audio, true nếu audio đã quá hạn lưu trữ

Example

Request

curl --location 'http://127.0.0.1:8000/api/v1/tts/0e7ee265-34ff-4807-b9ae-a4eb3ef24573' \
--header 'Authorization: Bearer 5Z62rdsxxExcUOcdbukWNdRufMmxxT18g'

Response

{
    "result": {
        "request_id": "0e7ee265-34ff-4807-b9ae-a4eb3ef24573",
        "bitrate": 128,
        "characters": 24,
        "voice_code": "vi_female_kieunhi_mn",
        "audio_type": "mp3",
        "speed_rate": 1.0,
        "create_at": "2024-09-13T09:40:48.502Z",
        "progress": 100.0,
        "status": "done",
        "audio_link": "https://everai.vn/media/audio/0e0e0ca6-ec85-4ced-b9b9-2350c6faa777_fsiPSVu.mp3",
        "audio_expired": false
    },
    "status": 1
}

Last updated