Skip to main content

Upload voice

PUT/bogunso/call/uploadHTTP/1.1
Host: api.alzwin.com

Upload the voice file. The AlzWIN test results are returned.

Request

Add the key 'x-body' to the header and put the string data in json format as the value.
Attach the audio file as a binary.

Request Property

NameTip
ticket
string
Issued ticketRequired
customerId
string
Customer's IDRequired if profile is null
profile
object
Who is being testedRequired if customerId is null
birthyear
number
Birth Year (4 digits)Required if age is null
age
number
AgeRequired if birthyear is null
gender
string
Sex
'male' or 'female'
Required
lang
string
Test language code
'en', 'ko', 'zh-CN', 'ja', ... (more to come)
Required
tag
string
About tags
ext
string
Audio File Extensions
'wav', 'ogg', 'aac', 'ac3', 'mp3'
Required
requestManualTyping
bool
Whether to type the contents of the voice file
Default false if null

Request Example

// customerId uesd
{
"ticket": "RjlFrC1r6H",
"customerId": "fpTqo36jviI",
"lang": "en",
"tag": "lorem ipsum",
"ext": "ogg",
"requestManualTyping": false
}

Response

A successful response will return data in JSON format.

Response Property

NameTip
e
string
Error Information
null if no error
msg
string
References for Error Causes
May be returned on error
v
object
Test results in JSON format
tempScore
number
Inaccurate temporary score based on STTRequired
bogunsoCallId
string
AlzWIN Test IDRequired

Response Example

// success
{
"v": {
"bogunsoCallId": "644109f9db9de",
"tempScore": 43.41
}
}