From f40b22837603bf5106f08a296ca9542f74655400 Mon Sep 17 00:00:00 2001 From: Lei PAN Date: Tue, 7 Feb 2023 12:52:42 +0100 Subject: [PATCH] correction --- src/workers/GeoCaptchaSolver.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/workers/GeoCaptchaSolver.js b/src/workers/GeoCaptchaSolver.js index 3eaea56..aef08b5 100644 --- a/src/workers/GeoCaptchaSolver.js +++ b/src/workers/GeoCaptchaSolver.js @@ -9,9 +9,9 @@ const AUDIO_CAPTCHA_TRACK = ".audio-captcha-track"; const CAPTCHA_CONTAINER = "#captcha-container"; const WAV_URL_REGEX = "https:.+.wav"; const re = new RegExp(WAV_URL_REGEX); -const SPEECH_TO_TEXT_HOST = "http://appointment.lpaconsulting.fr:8000" +// const SPEECH_TO_TEXT_HOST = "http://appointment.lpaconsulting.fr:8000" -// const SPEECH_TO_TEXT_HOST = "http://127.0.0.1:8000" +const SPEECH_TO_TEXT_HOST = "http://127.0.0.1:8000" function delay(delayInMs) { return new Promise(resolve => { @@ -147,10 +147,10 @@ class GeoCaptchaSolver { let fileName = crypto.randomUUID() + ".wav"; wget({url: audioUrl, dest: dest_dir + fileName}, async function (error, response, body) { if (error) { - console.log(this.device.model() + ':--- error:'); + console.log('--- error:'); console.log(error); // error encountered } else { - console.log(this.device.model() + ':download the file successfully'); + console.log('download the file successfully'); // send request to get numbers await sendRequest(dest_dir + fileName, callback); }