Audio captcha
Audio captcha: parameters, request, response and the 2Captcha method of AudioTask.
On this page
A sound recording with spoken digits or words, such as the audio version of a captcha. Send it in base64 with its language and get the transcript in solution.text.
| Status | coming soon |
| Type codes | AudioTask — without a proxy |
| Proxy | not needed |
| Also accepted as | — |
| Price | set when the type is switched on — see pricing |
Parameters#
Fields of the task object in createTask:
ParameterDescription
typestringrequired- Task type:
AudioTask. bodystringrequired- The captcha file in base64. Base64 sound (MP3, WAV, OGG, FLAC or WEBM), up to 1 MB decoded.
langstring- Language spoken in the recording. One of
en,fr,de,el,pt,ru.
Request#
A AudioTask task:
{
"clientKey": "YOUR_API_KEY",
"task": {
"type": "AudioTask",
"body": "SUQzBAAAAAAAI1RTU0UAAAAP…"
}
}Response#
getTaskResult once the task is solved:
{
"errorId": 0,
"status": "ready",
"solution": {
"text": "x7k2p",
"userAgent": ""
},
"cost": "0.000500",
"ip": "198.51.100.7",
"createTime": 1793370000,
"endTime": 1793370012,
"solveCount": 1
}2Captcha in.php#
The same task through the 2Captcha API: method=audio, parameters → task fields:
| in.php | task |
|---|---|
body | body |
lang | lang |
res.php returns text of the solution as text (OK|…), or in request with json=1.