- AI Avatar API
- Get Tokens
- TTS and Voice Clone
- Generate Avatar Videos
- Create Avatars and Train Lip-sync Models
- Background Matting and Replacement
- Face Swap
- AI Dubbing
- Image to Video
- Caption Removal
- Streaming Avatar
- Miscellaneous
Auto Language Detect
Global Server
Global Server
POST
/api/v1/video/lang_classify
This endpoint is used to Detect the text language.
Return | Description | Format | Example |
---|---|---|---|
data | the text language | string | zh, en |
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Body Params application/json
msg
string
required
Example
{
"msg": "hello every one,i am eric,nice to see you!"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://video.a2e.ai/api/v1/video/lang_classify' \
--header 'Content-Type: application/json' \
--data-raw '{"msg": "hello every one,i am eric,nice to see you!"}'
Responses
🟢200Auto Language Detect
application/json
Body
code
integer
required
data
string
required
Example
{
"code": 0,
"data": "en"
}
Modified at 2025-02-24 07:51:14