JacobLinCool / recaptcha-solver

Solve reCAPTCHA challenges by using offline speech recognition.
MIT License
27 stars 14 forks source link

[NotFoundError]: No Audio Found on RPI #4

Closed Oein closed 1 year ago

Oein commented 1 year ago

It gives me an error.

[reCAPTCHA solver] bframe loaded: false
[reCAPTCHA solver] invisible: false
[reCAPTCHA solver] action required: true
[reCAPTCHA solver] [Mutex] init locked
[reCAPTCHA solver] [Mutex] ready waiting
v [NotFoundError]: No Audio Found
    at /home/dev/oein/Pjs/inlook/node_modules/recaptcha-solver/lib/index.js:2:222
> ffmpeg -version
 ffmpeg -version                                                                                                        1 ✘  dev@pi  03:34:28 pm 
ffmpeg version 4.3.6-0+deb11u1+rpt5 Copyright (c) 2000-2023 the FFmpeg developers
built with gcc 10 (Debian 10.2.1-6)
configuration: --prefix=/usr --extra-version=0+deb11u1+rpt5 --toolchain=hardened --incdir=/usr/include/aarch64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --disable-mmal --enable-neon --enable-v4l2-request --enable-libudev --enable-epoxy --enable-sand --libdir=/usr/lib/aarch64-linux-gnu --arch=arm64 --enable-pocketsphinx --enable-libdc1394 --enable-libdrm --enable-vout-drm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-sharedlibavutil      56. 51.100 / 56. 51.100libavcodec     58. 91.100 / 58. 91.100libavformat    58. 45.100 / 58. 45.100libavdevice    58. 10.100 / 58. 10.100libavfilter     7. 85.100 /  7. 85.100libavresample   4.  0.  0 /  4.  0.  0libswscale      5.  7.100 /  5.  7.100libswresample   3.  7.100 /  3.  7.100
libpostproc    55.  7.100 / 55.  7.100

Code

import { solve } from "recaptcha-solver";
const EXAMPLE_PAGE = "https://www.google.com/recaptcha/api2/demo";

browser = await playwright.chromium.launch({
  headless: true,
});
const context = await browser.newContext({
  locale: "en-US",
  viewport: { width: 1280, height: 887 },
});
page = await context.newPage();

await page.goto(EXAMPLE_PAGE);

await solve(page, {
  delay: 200,
  wait: 5000,
});
Oein commented 1 year ago

I just cloned this repository and do all the stuffs by myself. Then it fixed.