기술 자료

Vivox Core SDK

Vivox Core SDK

vx_req_account_translate_text

Translate one or more texts on request.
읽는 시간 2분최근 업데이트: 9일 전

Translate one or more texts on request. More...
#include <VxcRequests.h>

Public Attributes

Name

base
The common properties for all requests.
account_handle
Returned from a successful vx_req_account_login request.
char *
source_language
The language the texts are written in, for example "en-us".
char *
target_language
The language to translate into, for example "fr".
char **
texts
The texts to translate, as a NULL-terminated array (see vx_string_list_create).

Detailed Description

struct vx_req_account_translate_text;
Translate one or more texts on request.
The translations come back in the response, in the same order. Nothing is delivered to anyone else, archived or cached. Availability is gated per issuer by the service, which also bounds the number of texts per request, the length of each, and how many a user may translate per minute; a refused request fails with an error that names the fault.

Public Attributes Documentation

variable base

vx_req_base_t base;
The common properties for all requests.

variable account_handle

VX_HANDLE account_handle;
Returned from a successful vx_req_account_login request.

variable source_language

char * source_language;
The language the texts are written in, for example "en-us".
Optional: when NULL or empty the service detects it and reports it per text.

variable target_language

char * target_language;
The language to translate into, for example "fr".
Required, and must differ from source_language.

variable texts

char ** texts;
The texts to translate, as a NULL-terminated array (see vx_string_list_create).
At least one.