Description: Send TTS voice message via designated language and designated language text.
Parameters | Description | Required | Type |
---|---|---|---|
callee |
Called number: 7-15 digits composed of national code + mobile phone number. |
Yes |
String |
displayNum |
Display number: 7-15 digits or null. |
No |
String |
language |
Language code, please refer to the table below for language details. |
Yes |
String |
speakingRate |
Speech speed: 0.25 - 4 times |
No |
Double |
ssmlGender |
Voice: 1 male 2 female. Allowed to be empty. When there are multiple voices, the system uses female voice by default. |
No |
Integer |
accent |
Accent: You can configure language accents, such as English [American Accent], English [Indian Accent], etc. For accent details, please refer to the table below. |
No |
String |
text |
Text content, length 1000 |
Yes |
String |
appId |
Audio application ID |
Yes |
String |
loopCount |
Time of loop count: 1-3, by default: 1. Null is allowed. |
No |
Int |
recallCount |
Recall times, 0-9 numbers, the field can be left blank. if not filled in, the default value is 0, and the recall function is not enabled when it is equal to 0. |
No |
Int |
recallInterval |
Recall interval, 1-999 numbers, in minutes. This field is only valid when the number of recalls is greater than 0. The field can be empty. When the field is empty, the default value is 5. |
No |
Int |
maxDuration |
Maximum call duration, forced hang up after N seconds after the call is connected, 1-120 numbers, can be empty. |
No |
Int |
maxRingingTime |
The maximum ringing duration is 60 by default and can be entered in the range of 20 to 120 seconds. |
No |
Int |
calledInfo |
Called information, 0-1000 characters. |
No |
String |
https://api.onbuka.com/v3/voice/sendCode
RequestURL:
https://api.onbuka.com/v3/voice/sendCode
RequestMethod:
POST
RequestHeaders:
Content-Type: application/json;charset=UTF-8
Sign: 05d7a50893e22a5c4bb3216ae3396c7c
Timestamp: 1630468800
Api-Key: bDqJFiq9
RequestBody:
{
"callee": "932111111111",
"displayNum": "1008122211",
"language": "EN",
"accent":"91",
"ssmlGender":2,
"speakingRate":1,
"text": "helloworld",
"appId": "4luaKsL2",
"loopCount": 2,
"recallCount":0,
"recallInterval":0,
"maxDuration":120,
"maxRingingTime":60,
"calledInfo":"calledInfo"
}
Parameters | Description | Type |
---|---|---|
status |
"0"means successful, others than 0 means failure, seeing Status code description. |
String |
reason |
Failure reason description |
String |
data |
Exclusive recording ID |
String |
{
"status": "0",
"reason": "success",
"data": "2203031113381000002"
}
Language | Accent | Timbre |
---|---|---|
Arabic (AR) |
- |
Male Voice: 1 |
Bask (BAS) |
Spain (34) |
Male Voice:- |
Catalan (CA) |
Male Voice:- |
|
Galician (GL) |
Male Voice:- |
|
Bengali (BN) |
India (91) |
Male Voice: 1 |
Gujarati (GU) |
Male Voice: 1 |
|
Hindi (HI) |
Male Voice: 1 |
|
Kannada (KN) |
Male Voice: 1 |
|
Malayalam (ML) |
Male Voice: 1 |
|
Marathi (MR) |
Male Voice: 1 |
|
Punjabi (PA) |
Male Voice: 1 |
|
Tamil (TA) |
Male Voice: 1 |
|
Bulgarian (BG) |
Bulgaria (359) |
Male Voice:- |
Czech (CS) |
Czech Republic (420) |
Male Voice:- |
Danish (DA) |
Denmark (45) |
Male Voice: 1 |
Dutch (NL) |
Netherlands (31) [default accent] |
Male Voice: 1 |
Belgium (32) |
Male Voice: 1 |
|
English (EN) |
India (91) |
Male Voice: 1 |
US (1) [Default Accent] |
Male Voice: 1 |
|
United Kingdom (44) |
Male Voice: 1 |
|
Australia (61) |
Male Voice: 1 |
|
Filipino (TL) |
Philippines (63) |
Male Voice: 1 |
Finnish (FI) |
Finland (358) |
Male Voice:- |
French (FR) |
French (33) [default accent] |
Male Voice: 1 |
Canada (1) |
Male Voice: 1 |
|
German (DE) |
Germany (49) |
Male Voice: 1 |
Greek (EL) |
Greece (30) |
Male Voice:- |
Hebrew (HE) |
Israel (972) |
Male Voice: 1 |
Hungarian (HU) |
Hungary (36) |
Male Voice:- |
Icelandic (IS) |
Iceland (354) |
Male Voice:- |
Indonesian (ID) |
Indonesia (62) |
Male Voice: 1 |
Italian (IT) |
Italy (39) |
Male Voice: 1 |
Japanese (JA) |
Japan (81) |
Male Voice: 1 |
Korean (KO) |
South Korea (82) |
Male Voice: 1 |
Latvian (LV) |
Latvia (371) |
Male Voice: 1 |
Lithuanian (LT) |
Lithuania (370) |
Male Voice: 1 |
Malay (MS) |
Malaysia (60) |
Male Voice: 1 |
Norwegian (NO) |
Norway (47) |
Male Voice: 1 |
Polish (PL) |
Poland (48) |
Male Voice: 1 |
Portuguese (PT) |
Brazil (55) |
Male Voice: 1 |
Portugal (351) [default accent] |
Male Voice: 1 |
|
Romanian (RO) |
Romania (40) |
Male Voice:- |
Russian (RU) |
Russia (7) |
Male Voice: 1 |
Serbian (RS) |
Serbia (381) |
Male Voice:- |
Slovak (SK) |
Slovakia (421) |
Male Voice:- |
Spanish (ES) |
Spain (34) [Default accent] |
Male Voice: 1 |
United States (1) |
Male Voice: 1 |
|
Swedish (SV) |
Sweden (46) |
Male Voice: 1 |
Thai (TH) |
Thailand (66) |
Male Voice:- |
Turkish (TR) |
Turkey (90) |
Male Voice: 1 |
Vietnamese (VI) |
Vietnam (84) |
Male Voice: 1 |
Afrikaans (AF) |
South Africa (27) |
Male Voice:- |
Feedback
Need help?
Click here and start chatting with us!