Skip to main content
Are you experiencing issues obtaining the token?
Contact support

bills_audio

Attention!

Using proxy servers is not required for this task.


The bills_audio audio captcha is an audio version of the “receipt captcha”, where generated images or data simulate receipts and may contain digits, amounts, and dates. In this type of task, the user is asked to listen to an audio file and verify the correct input based on the information heard. This format may look like the following:

Request parameters


IMPORTANT: obtain the base64 audio directly before creating the task to avoid errors during solving (see section Obtaining audio and converting to Base64).


type<string>required

ComplexImageTask


class<string>required

recognition


imagesBase64<array>required

Audio encoded in base64. Example: [ “UklGRnjuAwBXQVZFZm10...f/2f/9/6z/vf8MAAAA”]


Task (inside metadata)<string>required

Task name: "bills_audio"


PayloadType (inside metadata)<string>required

Type of data sent in the task: "Audio"

Create task method

POST
https://api.capmonster.cloud/createTask

Request

{
"clientKey": "API_KEY",
"task": {
"type": "ComplexImageTask",
"class": "recognition",
"imagesBase64": [
"UklGRnjuAwBXQVZFZm10...f/2f/9/6z/vf8MAAAA"
],
"metadata": {
"Task": "bills_audio",
"PayloadType": "Audio"
}
}
}

Response

{
"errorId": 0,
"taskId": 143998457
}

Get task result method

POST
https://api.capmonster.cloud/getTaskResult

Request

{
"clientKey": "API_KEY",
"taskId": 143998457
}

Response: the result contains digits from the audio.

{
"solution": {
"answer": [6, 8, 4, 1, 2, 3],
"metadata": {"AnswerType": "Text"}
},
"cost": 0.0008,
"status": "ready",
"errorId": 0,
"errorCode": null,
"errorDescription": null
}

Obtaining audio and converting to Base64

  1. Open the captcha page and launch DevTools, then go to the Network tab.
  2. Activate the audio mode of the captcha by clicking the corresponding button.
  3. In the request list, find an address like:
    blob:https://example.com/3be79ac6-1b3d-43ef-9a8a-7ad8877b3606
  4. Copy this URL and open it in the browser address bar — the captcha audio file in .wav format will open.

  1. Save the file and convert the .wav file to Base64 using any convenient method — for example, with Node.js:
const fs = require("fs");

// Path to the source .wav file
const filePath = "C:\\Users\\User\\Downloads\\file-acbe-4fb3-9f8e-f989ba6c7fde.wav";

const fileBuffer = fs.readFileSync(filePath);

// Convert to Base64
const base64 = fileBuffer.toString("base64");

// Save Base64 string to a text file
fs.writeFileSync("output.txt", base64);

console.log("File successfully converted to Base64 and saved as output.txt");
  1. Use the resulting Base64 string in the CapMonster Cloud task request.