Chuyển giọng nói thành văn bản (cho tin nhắn thoại)

Chuyển một đoạn ghi âm ngắn thành văn bản, dùng để điền vào `query` khi gửi tin nhắn thoại tới trợ lý. Với nhu cầu Speech to Text đầy đủ (độ chính xác cao, đa dạng ngôn ngữ/vùng miền), dùng API Speech to Text tại mục [Tích hợp](/integrations/speech-to-text/transcribe-speech). **Scope yêu cầu:** `assistant:execute`.

Headers

X-Api-KeystringRequired

Request

This endpoint expects a multipart form containing a file.
filefileRequired

File ghi âm (wav, mp3, m4a, webm…). Tối đa 15 MB.

userIdstringRequired

Response

Thành công.

textstring

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error