You won't believe how fast it is | Raspberry Pi Speech-to-Text

  Рет қаралды 18,857

Hardware.ai

Hardware.ai

Күн бұрын

Faster than real-time offline speech transcription on Raspberry Pi - or any other computing system, including Orange Pi, Jetson Nano and many other Linux SBCs. A quick hands-on guide from installing necessary packages to running Whisper model with whisper.cpp or faster-whisper.
Whisper.cpp Python bindings repository:
github.com/AIW...
faster-whisper:
github.com/SYS...
Benchmark gist:
gist.github.co...

Пікірлер: 105
@Hardwareai
@Hardwareai 5 ай бұрын
The follow-up video is also live on KZbin - find it in my channel. Support my work on making tutorials and guides on Patreon! www.patreon.com/hardware_ai Or by buying hardware with these links (affiliate): Official Seeed Studio Store s.click.aliexpress.com/e/_DBfAaP9 s.click.aliexpress.com/e/_DkhpJAR Raspberry Pi 4 s.click.aliexpress.com/e/_DFBtkCP Raspberry Pi 5 s.click.aliexpress.com/e/_DmMSKb5
@brianmeyer107
@brianmeyer107 8 ай бұрын
love this video! i rarely find myself pausing, and rewinding but here the details were coming fast enough that i became the weak link. love this.
@Hardwareai
@Hardwareai 8 ай бұрын
Glad to hear I found the right pace. Thank you for the feedback!
@C0ldSpace
@C0ldSpace 8 ай бұрын
I need this because im building a translator for my sister. There’s a new person in her class that can only speak Spanish, so im making this.
@Hardwareai
@Hardwareai 6 ай бұрын
Good usage!
@newtownsmells
@newtownsmells 8 ай бұрын
Hey this is incredible. really appreciate your work
@Hardwareai
@Hardwareai 8 ай бұрын
Thank you so much 😀
@TomanswerAi
@TomanswerAi 4 ай бұрын
Very cool guide. Thank you.
@Hardwareai
@Hardwareai 4 ай бұрын
Glad you enjoyed it!
@newtownsmells
@newtownsmells 8 ай бұрын
Would you consider showing how to implement live real time streaming with faster-whisper? Seems like that would be a huge way forward
@Hardwareai
@Hardwareai 8 ай бұрын
Yes, this is much requested. So stay tuned.
@exploring-electronic
@exploring-electronic 9 ай бұрын
Thanks for the work done fixing the whisper.cpp python bindings! I'll check them out.
@ЭдуардГаврилов-л3о
@ЭдуардГаврилов-л3о 9 ай бұрын
😊
@Hardwareai
@Hardwareai 9 ай бұрын
Yes, let me know if you run into any issues.
@emanuelepapa3548
@emanuelepapa3548 5 ай бұрын
I’m using your repository. Thanks you
@Hardwareai
@Hardwareai 5 ай бұрын
Thanks for the feedback!
@antoniorodriguez-ynyestosa5907
@antoniorodriguez-ynyestosa5907 8 ай бұрын
Hi! This is amazing! Thank you very much! Just a quick question, should it work on Windows? Because I get an error when I run "python -m build -w": * Building wheel... running bdist_wheel Building pybind11 extension... error: [WinError 193] %1 not a valid Win32 app ERROR Backend subprocess exited when trying to invoke build_wheel
@Hardwareai
@Hardwareai 8 ай бұрын
Thank you for the feedback! While theoretically it SHOULD run on Windows as well, I only tested it on Raspberry Pi (so Debian Linux) and MacOS...
@tribelessa
@tribelessa 8 ай бұрын
Hello! Great work, will try test it. Your projects are interesting (for me since Kendryte K210).
@Hardwareai
@Hardwareai 8 ай бұрын
Thanks! I see you have been following my channel for a while :)
@daniellawton4336
@daniellawton4336 Ай бұрын
The descriptions aren't clear on whether this is offline or using an online service... I suppose you have to watch the video to find out, but you might make that clearer.
@Hardwareai
@Hardwareai Ай бұрын
Thank you for the comment! Yes, watching video is a good idea. Also thumbnail is clear enough, don't you think? ;)
@daniellawton4336
@daniellawton4336 Ай бұрын
@@Hardwareai Still didn't answer my question, but I found the answer elsewhere. No one has the Pi doing offline TTS. I suppose there's too much math for the little guy.
@Hardwareai
@Hardwareai Ай бұрын
@@daniellawton4336 huh? Well, if you watch the video, you'll see that it's exactly what I'm doing with whisper.cpp on raspberry pi 4...
@daniellawton4336
@daniellawton4336 Ай бұрын
@@Hardwareai My bad... I'm copying your link to my desktop...
@ResearchDevelopment-e2q
@ResearchDevelopment-e2q 22 күн бұрын
​@@daniellawton4336 Piper
@markantinozzi4970
@markantinozzi4970 3 ай бұрын
I'm going to try to install it.
@Hardwareai
@Hardwareai 3 ай бұрын
There is a known issue at the moment: github.com/AIWintermuteAI/whispercpp/issues/88#issuecomment-2171120795 I'll be fixing it once I get back from traveling, beginning of July.
@markantinozzi4970
@markantinozzi4970 3 ай бұрын
@@Hardwareai Certainly let me know. I'm excited to try it. Happy traveling!! Be safe! >M
@levbereggelezo
@levbereggelezo 9 ай бұрын
Well done! Was whisper.cpp compiled with BLAS optimizations?
@Hardwareai
@Hardwareai 9 ай бұрын
No, it wasn't. It is a possible way to slightly improve the results, but at least on raspberry pi it will not change the outcome too much, faster-whisper still will be faster. Jetson series on the other hand might take advantage of CUBLAS, so it is more interesting.
@JA_RON
@JA_RON Ай бұрын
Do not like the amount of cutting in the video, like what did you do in-between? its hard to follow through with this.
@Hardwareai
@Hardwareai Ай бұрын
Can't please everyone :) some people do not like the pauses and want faster pace.
@bens4446
@bens4446 5 ай бұрын
I had heard about faster whisper on other channels but thought it couldn't work on an SBC because it uses GPU which an SBC doesn't have. I have no idea how you did this. Thanks!
@Hardwareai
@Hardwareai 5 ай бұрын
Interesting. No, it certainly can run on CPU - I made a follow-up on this video, explaining more about faster-whisper specifically, you can find it on my channel.
@DavidPsurny
@DavidPsurny 3 ай бұрын
What is the full command line at 2:35 ?
@Hardwareai
@Hardwareai 3 ай бұрын
python stream.py --model_name tiny.en-q5_1
@sephtronics
@sephtronics 2 ай бұрын
Hey, thanks for the video. I'm encountering an error though around 2:33, if you've any suggestions please let me know. stream.py: error: argument --model_name: expected one argument Changing the command to : python stream.py --model tiny But seeing this error now: ERROR: Failed to initialized SDL: dsp: No such audio device I've got a headset with microphone attached to the Pi 5 via USB port. Is it because I need an external soundcard/other hardware like in your video? Any ideas what the issue could be?
@Hardwareai
@Hardwareai 2 ай бұрын
Yes, there is an ongoing issue, which I am working on fixing: github.com/AIWintermuteAI/whispercpp/issues/88
@aalhadm8048
@aalhadm8048 Ай бұрын
Hi, could you use this for real-time streaming?
@Hardwareai
@Hardwareai Ай бұрын
Isn't that exactly what I do in the video?
@randommm-light
@randommm-light 6 ай бұрын
How hard would it be to add a continuous background search process taking keywords from the conversation? I wanna have a screen in my office that's supporting the dialogue with more right brain material. Of course, they need to interrupt and follow the sauce for resource would be important.
@Hardwareai
@Hardwareai 6 ай бұрын
follow the sauce for resource? Very interesting. Anyways, this is already shown in the example here: github.com/AIWintermuteAI/whispercpp/blob/e46fd2da91bab8cfd98a0af886230cc773afd982/examples/stream/stream.py#L18
@lagkdd2913
@lagkdd2913 6 ай бұрын
When i run in raspberry pi, It raise an error: AttributeError: module 'os' has no attribute 'add_dll_directory'
@Hardwareai
@Hardwareai 5 ай бұрын
I built it just today and it works as expected. If you are still struggling, it's best to open an issue in my fork on GH.
@Rahulkrishnan-g9g
@Rahulkrishnan-g9g 7 ай бұрын
Can the program be modified so that all recognized texts are consolidated into a single paragraph upon exiting the program?
@Hardwareai
@Hardwareai 6 ай бұрын
Append strings to the list and then concatenate and print them at the end?
@BogdanMnikov
@BogdanMnikov 9 ай бұрын
I did find this video while coding the next big thing, how did you know 🤣
@Hardwareai
@Hardwareai 9 ай бұрын
Magic 8 ball xD
@abdullahdogan5822
@abdullahdogan5822 6 ай бұрын
hi, What should I do to make it understand in more than one language? Is this possible?
@Hardwareai
@Hardwareai 6 ай бұрын
Use tiny model instead of tiny.en. Do keep in mind the quality of recognition is likely to be worse with multi-language model.
@ptsckts6123
@ptsckts6123 4 ай бұрын
hello, same benchmark results in 5925.774ms computation time on my RPI 5 currently, should I do anything differently? the audio file i've used is 10 secs, same JFK speech
@Hardwareai
@Hardwareai 4 ай бұрын
One thing I could have improved about my little benchmark script is multiple measurements. First run is always the slowest. Is 5925 ms. for the first run or even for later concurrent runs as well?
@ptsckts6123
@ptsckts6123 4 ай бұрын
@@Hardwareai Ooh that was it, now I get ~600ms. Thanks! Also I got 1.218 sec computation for a 145 seconds talk, I don't know how it works but segmentation takes much longer
@harokk4242
@harokk4242 6 ай бұрын
error in pip install build error-externally managed enviorment
@Hardwareai
@Hardwareai 6 ай бұрын
I think you missed one step in my video - regardless, here it is stackoverflow.com/questions/75608323/how-do-i-solve-error-externally-managed-environment-every-time-i-use-pip-3.
@yashvishah9315
@yashvishah9315 6 ай бұрын
Can i use INMP441 Microphone Module I2S instead of respeaker 2-mics pi hat fir real time transcription? If yes what will be my pin configuration fot that? And will there be any changes on the code?
@Hardwareai
@Hardwareai 6 ай бұрын
In theory you can use any audio input device. In practice your mileage will vary, some hardware choice will be more difficult to work with from software perspective. For pin configuration you can have a look at INMP441 related docs. The code uses SDL for audio capture, so if INMP441 can work with that, there should minimal to none code changes. Can't say for sure tho until you try :)
@yashvishah9315
@yashvishah9315 6 ай бұрын
@@Hardwareai oh understood! So I have to select that microphone which supports SDL!?
@Hardwareai
@Hardwareai 6 ай бұрын
If you want minimum code changes - yes. Otherwise, you could of course re-write the code to support any audio input device - whisper model by itself is obviously device agnostic, as long as you can provide audio in a specified format supported by the model.
@yashvishah9315
@yashvishah9315 6 ай бұрын
Ohkii! Understood 😃 thank you!!
@danilovaz9839
@danilovaz9839 9 ай бұрын
oh man, please teach me the ways. Like, for real. I saw you provide 1:1 consultancy, but I need to know if your price is per meeting of for a full project.
@Hardwareai
@Hardwareai 9 ай бұрын
The ways of hardware, tricky they are, young padawan... Okay, jokes aside - I did reply in the other comment xD long story short - I'm focused on getting my YT channel back on track at the moment, at least getting back monetization would be nice (YT took it away from me). So I'm not really doing consulting - but if your project is based on my videos/tutorials, I can provide some feedback.
@danilovaz9839
@danilovaz9839 9 ай бұрын
@@Hardwareai Oh master. Sorry I missed your last message! Thanks for replying again, though! Oh man, sad to hear you're not doing consulting. But I still appreciate watching your incoming videos so that's a win anyway. And yeah, your videos are the main inspirational source for me. So it'd be amazing to get some feedback as I'm sure I'll get stuck with something along the way - as its usual with all things computer related. May I let you know when that happens?
@Hardwareai
@Hardwareai 9 ай бұрын
If you are doing something related to my projects, then yes :) QA is always welcome
@jlbciriaco3142
@jlbciriaco3142 4 ай бұрын
@hardwareai what raspberri pi are you sing?
@Hardwareai
@Hardwareai 4 ай бұрын
I normally sing raspberri pi tenor, but I can do raspberri pi falsetto as well for comic effect xD Okay, I guess you asked what raspberry pi was I using, not singing. For this video it was Raspberry Pi 4. There is another newer video where I was using Raspberry Pi 5 as well, kzbin.info/www/bejne/aaqvd4qmgLCVm5o
@LoneEntrepreneur
@LoneEntrepreneur 9 ай бұрын
It's not real time. it's from a file, if you want to test real-time stream it and get output back as you speak
@Hardwareai
@Hardwareai 9 ай бұрын
It is though? I start with whisper.cpp streaming example, which is also real-time for quantized model.
@LoneEntrepreneur
@LoneEntrepreneur 9 ай бұрын
yes but you keep repeating real time when using pre-recorded file sent to the cloud. that's not the definition of real time, although the module is real time but the method and technique used is not@@Hardwareai
@Hardwareai
@Hardwareai 9 ай бұрын
/scratching the head/ are we talking about the same video? at 2:30 I run whisper model on my voice in real-time, not from file, but from respeaker mic.
@LoneEntrepreneur
@LoneEntrepreneur 9 ай бұрын
my bad, you're right it's different video. lol.@@Hardwareai
@40centuriones
@40centuriones 6 ай бұрын
It would be awesome if you combined this with piper(rhasspy) to make a hardware device capable of STT to TTS. It would be a Zentreya-style portable voice changer.
@Hardwareai
@Hardwareai 6 ай бұрын
The TTS part of it would be more computationally expensive - but you can have a try!
@Tyrone-Ward
@Tyrone-Ward 9 ай бұрын
Does this require Internet?
@Hardwareai
@Hardwareai 9 ай бұрын
Nope. Completely offline.
@SouvikPal-notionvidz
@SouvikPal-notionvidz 7 ай бұрын
I was trying to use this in a intel based mini pc running Ubuntu22.04 and ran into audio issues. When I run python stream.py --model_name tiny , I get ERROR: Failed to initialized SDL: Audio target 'pulseaudio' not available Traceback (most recent call last): File "/home/souvik/whispercpp/examples/stream/stream.py", line 30, in main transcription = self.transcriber.stream_transcribe(callback=self.store_transcript_handler, **kwargs) File "/home/souvik/whisper/lib/python3.10/site-packages/whispercpp/__init__.py", line 257, in stream_transcribe raise RuntimeError("Failed to initialize audio capture device.") RuntimeError: Failed to initialize audio capture device. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/souvik/whispercpp/examples/stream/stream.py", line 100, in transcriber.main(**vars(args)) File "/home/souvik/whispercpp/examples/stream/stream.py", line 32, in main assert transcription is not None, "Something went wrong!" AssertionError: Something went wrong!
@SouvikPal-notionvidz
@SouvikPal-notionvidz 7 ай бұрын
The audio system is fine, I can record audio using parecord, arecord etc....and SDL libraries are all installed.
@Hardwareai
@Hardwareai 6 ай бұрын
Yeah, these issues can be tough to diagnose unfortunately. The problem as you can see is not really with whisper.cpp, but rather with SDL not wanting to play nicely with your audio setup.
@newtownsmells
@newtownsmells 8 ай бұрын
I canºt seem to get the stream.py to work. gives this error: ERROR: Failed to initialized SDL: Audio target 'pulseaudio' not available Traceback (most recent call last): File ".../whispercpp/examples/stream/stream.py", line 30, in main transcription = self.transcriber.stream_transcribe(callback=self.store_transcript_handler, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "..whisper/lib/python3.11/site-packages/whispercpp/__init__.py", line 257, in stream_transcribe raise RuntimeError("Failed to initialize audio capture device.") RuntimeError: Failed to initialize audio capture device. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "../examples/stream/stream.py", line 100, in transcriber.main(**vars(args)) File "..whispercpp/examples/stream/stream.py", line 32, in main assert transcription is not None, "Something went wrong!" ^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError: Something went wrong! Any ideas? i get this when i run list audio devices ERROR: Failed to initialized SDL: Audio target 'pulseaudio' not available
@Hardwareai
@Hardwareai 8 ай бұрын
Hmm, I am able to find something on Google for Audio target 'pulseaudio' not available, but it is for OpenSUSE. Are you using the latest Raspberry Pi OS?
@newtownsmells
@newtownsmells 8 ай бұрын
@@Hardwareai yeah i am using the latest pi os
@Hardwareai
@Hardwareai 8 ай бұрын
Okay, then it is likely something specific to the mic setup. I was using reSpeaker 2 mic raspberry pi hat. First thing to try would be to see if the mic works correctly (with arecord) and then if it does, debug the issue with this particular mic and SDL. To summarize, the issue is not in the stream.py code or even whisper.cpp, but rather that SDL does not seem to be working with your mic setup...
@KK4CNM
@KK4CNM Ай бұрын
What SSH client are you using? I love it!
@Hardwareai
@Hardwareai Ай бұрын
I think you're referring VSCODE SSH extension? it is nice indeed, I use it all the time
@nicknicksom1873
@nicknicksom1873 Ай бұрын
2:34 what model? --model throws a syntax error
@Hardwareai
@Hardwareai Ай бұрын
python stream.py --model_name tiny.en-q5_1
@JA_RON
@JA_RON Ай бұрын
Looks nothing like your screen at 2:24 looks like you rand a separate command to make it look the same? THIS IS ON PI 4 4GB /whispercpp$ python3 -m build -w * Creating isolated environment: venv+pip... * Installing packages in isolated environment: - setuptools>=65 - setuptools_scm[toml]>=7 - wheel * Getting build dependencies for wheel... running egg_info writing src/whispercpp.egg-info/PKG-INFO writing dependency_links to src/whispercpp.egg-info/dependency_links.txt writing top-level names to src/whispercpp.egg-info/top_level.txt adding license file 'LICENSE' writing manifest file 'src/whispercpp.egg-info/SOURCES.txt' * Building wheel... running bdist_wheel Building pybind11 extension... INFO: Running bazel wrapper (see //tools/bazel for details), bazel version 6.0.0 will be used instead of system-wide bazel installation. Loading: Loading: 0 packages loaded Analyzing: target //:extensions (0 packages loaded, 0 targets configured) INFO: Repository local_config_cc instantiated at: /DEFAULT.WORKSPACE.SUFFIX:509:13: in /home/USERNAME/.cache/bazel/_bazel_USERNAME/47e434f3ad38c4f560ec65b4f078ce0a/external/bazel_tools/tools/cpp/cc_configure.bzl:183:16: in cc_configure Repository rule cc_autoconf defined at: /home/USERNAME/.cache/bazel/_bazel_USERNAME/47e434f3ad38c4f560ec65b4f078ce0a/external/bazel_tools/tools/cpp/cc_configure.bzl:143:30: in ERROR: An error occurred during the fetch of repository 'local_config_cc': Traceback (most recent call last): File "/home/USERNAME/.cache/bazel/_bazel_USERNAME/47e434f3ad38c4f560ec65b4f078ce0a/external/bazel_tools/tools/cpp/cc_configure.bzl", line 125, column 33, in cc_autoconf_impl configure_unix_toolchain(repository_ctx, cpu_value, overriden_tools) File "/home/USERNAME/.cache/bazel/_bazel_USERNAME/47e434f3ad38c4f560ec65b4f078ce0a/external/bazel_tools/tools/cpp/unix_cc_configure.bzl", line 349, column 17, in configure_unix_toolchain cc = find_cc(repository_ctx, overriden_tools) File "/home/USERNAME/.cache/bazel/_bazel_USERNAME/47e434f3ad38c4f560ec65b4f078ce0a/external/bazel_tools/tools/cpp/unix_cc_configure.bzl", line 314, column 23, in find_cc cc = _find_generic(repository_ctx, "gcc", "CC", overriden_tools) File "/home/USERNAME/.cache/bazel/_bazel_USERNAME/47e434f3ad38c4f560ec65b4f078ce0a/external/bazel_tools/tools/cpp/unix_cc_configure.bzl", line 310, column 32, in _find_generic auto_configure_fail(msg) File "/home/USERNAME/.cache/bazel/_bazel_USERNAME/47e434f3ad38c4f560ec65b4f078ce0a/external/bazel_tools/tools/cpp/lib_cc_configure.bzl", line 112, column 9, in auto_configure_fail fail(" %sAuto-Configuration Error:%s %s " % (red, no_color, msg)) Error in fail: Auto-Configuration Error: Cannot find gcc or CC (gcc); either correct your path or set the CC environment variable ERROR: /DEFAULT.WORKSPACE.SUFFIX:509:13: fetching cc_autoconf rule //external:local_config_cc: Traceback (most recent call last): File "/home/USERNAME/.cache/bazel/_bazel_USERNAME/47e434f3ad38c4f560ec65b4f078ce0a/external/bazel_tools/tools/cpp/cc_configure.bzl", line 125, column 33, in cc_autoconf_impl configure_unix_toolchain(repository_ctx, cpu_value, overriden_tools) File "/home/USERNAME/.cache/bazel/_bazel_USERNAME/47e434f3ad38c4f560ec65b4f078ce0a/external/bazel_tools/tools/cpp/unix_cc_configure.bzl", line 349, column 17, in configure_unix_toolchain cc = find_cc(repository_ctx, overriden_tools) File "/home/USERNAME/.cache/bazel/_bazel_USERNAME/47e434f3ad38c4f560ec65b4f078ce0a/external/bazel_tools/tools/cpp/unix_cc_configure.bzl", line 314, column 23, in find_cc cc = _find_generic(repository_ctx, "gcc", "CC", overriden_tools) File "/home/USERNAME/.cache/bazel/_bazel_USERNAME/47e434f3ad38c4f560ec65b4f078ce0a/external/bazel_tools/tools/cpp/unix_cc_configure.bzl", line 310, column 32, in _find_generic auto_configure_fail(msg) File "/home/USERNAME/.cache/bazel/_bazel_USERNAME/47e434f3ad38c4f560ec65b4f078ce0a/external/bazel_tools/tools/cpp/lib_cc_configure.bzl", line 112, column 9, in auto_configure_fail fail(" %sAuto-Configuration Error:%s %s " % (red, no_color, msg)) Error in fail: Auto-Configuration Error: Cannot find gcc or CC (gcc); either correct your path or set the CC environment variable INFO: Repository pybind11 instantiated at: /home/USERNAME/whispercpp/WORKSPACE:5:14: in /home/USERNAME/whispercpp/rules/deps.bzl:40:10: in internal_deps /home/USERNAME/.cache/bazel/_bazel_USERNAME/47e434f3ad38c4f560ec65b4f078ce0a/external/bazel_tools/tools/build_defs/repo/utils.bzl:233:18: in maybe Repository rule http_archive defined at: /home/USERNAME/.cache/bazel/_bazel_USERNAME/47e434f3ad38c4f560ec65b4f078ce0a/external/bazel_tools/tools/build_defs/repo/http.bzl:372:31: in ERROR: /home/USERNAME/.cache/bazel/_bazel_USERNAME/47e434f3ad38c4f560ec65b4f078ce0a/external/bazel_tools/src/tools/launcher/BUILD:9:14: @bazel_tools//src/tools/launcher:launcher depends on @local_config_cc//:cc-compiler-aarch64 in repository @local_config_cc which failed to fetch. no such package '@local_config_cc//': Auto-Configuration Error: Cannot find gcc or CC (gcc); either correct your path or set the CC environment variable ERROR: Analysis of target '//:extensions' failed; build aborted: INFO: Elapsed time: 1.801s INFO: 0 processes. FAILED: Build did NOT complete successfully (1 packages loaded, 2 targets configured) ERROR: Build failed. Not running target Traceback (most recent call last): File "/home/USERNAME/whisper/lib/python3.12/site-packages/pyproject_hooks/_in_process/_in_process.py", line 373, in main() File "/home/USERNAME/whisper/lib/python3.12/site-packages/pyproject_hooks/_in_process/_in_process.py", line 357, in main json_out["return_val"] = hook(**hook_input["kwargs"]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/USERNAME/whisper/lib/python3.12/site-packages/pyproject_hooks/_in_process/_in_process.py", line 271, in build_wheel return _build_backend().build_wheel( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/build-env-dl15xn6j/lib/python3.12/site-packages/setuptools/build_meta.py", line 415, in build_wheel return self._build_with_temp_dir( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/build-env-dl15xn6j/lib/python3.12/site-packages/setuptools/build_meta.py", line 397, in _build_with_temp_dir self.run_setup() File "/tmp/build-env-dl15xn6j/lib/python3.12/site-packages/setuptools/build_meta.py", line 313, in run_setup exec(code, locals()) File "", line 45, in File "/tmp/build-env-dl15xn6j/lib/python3.12/site-packages/setuptools/__init__.py", line 108, in setup return distutils.core.setup(**attrs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/build-env-dl15xn6j/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 184, in setup return run_commands(dist) ^^^^^^^^^^^^^^^^^^ File "/tmp/build-env-dl15xn6j/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 201, in run_commands dist.run_commands() ^^^^^^^^^^^^^^^^^^^ File "/tmp/build-env-dl15xn6j/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands self.run_command(cmd) ^^^^^^^^^^^^^^^^^^^^^ File "/tmp/build-env-dl15xn6j/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 988, in run_command cmd_obj.run() ^^^^^^^^^^^^^ File "/tmp/build-env-dl15xn6j/lib/python3.12/site-packages/wheel/bdist_wheel.py", line 299, in run self.run_command("build") File "/tmp/build-env-dl15xn6j/lib/python3.12/site-packages/setuptools/_distutils/cmd.py", line 319, in run_command self.distribution.run_command(command) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/build-env-dl15xn6j/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 988, in run_command cmd_obj.run() ^^^^^^^^^^^^^ File "/tmp/build-env-dl15xn6j/lib/python3.12/site-packages/setuptools/_distutils/command/build.py", line 135, in run self.run_command(cmd_name) File "/tmp/build-env-dl15xn6j/lib/python3.12/site-packages/setuptools/_distutils/cmd.py", line 319, in run_command self.distribution.run_command(command) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/build-env-dl15xn6j/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 988, in run_command cmd_obj.run() ^^^^^^^^^^^^^ File "src/whispercpp/bindings/setup.py", line 42, in run subprocess.run( File "/home/USERNAME/whisper/lib/python3.12/subprocess.py", line 549, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['bazel', 'build', '//:extensions', '-c', 'opt']' returned non-zero exit status 1.
@Hardwareai
@Hardwareai Ай бұрын
Hi! Could you create an issue in GH repo instead?
@user-cl2og
@user-cl2og 9 ай бұрын
I downloaded this on the Raspberry Pi 4, bookworm 64 bit and I got the following error: fatal: remote error: upload-pack: not our ref c9d5095f0c64455b201f1cd0b547efcf093ee7c3 fatal: Fetched in submodule path 'extern/whispercpp/bindings/ios', but it did not contain c9d5095f0c64455b201f1cd0b547efcf093ee7c3. Direct fetching of that commit failed. fatal: Failed to recurse into submodule path 'extern/whispercpp'. Any suggestions?
@Hardwareai
@Hardwareai 9 ай бұрын
It sounds like you git cloned the upstream? I solved exactly the same issue in my fork
@Hardwareai
@Hardwareai 9 ай бұрын
Can you do git log and paste the output?
@user-cl2og
@user-cl2og 9 ай бұрын
@@Hardwareai I messaged you on linkedin because I think the youtube spam filter is not letting me paste the output.
@Hardwareai
@Hardwareai 9 ай бұрын
Oh, all right, that is possible. For future generations, who find this comment - if it is code related, creating an issue in GH is preferable.
@torstenaltmann62
@torstenaltmann62 4 ай бұрын
It threw me an error at "python3 -m build -w": PermissionError: [Errno 13] Permission denied: 'src/whispercpp/__about__.py' ERROR Backend subprocess exited when trying to invoke get_requires_for_build_wheel
@Hardwareai
@Hardwareai 4 ай бұрын
Can you post this error with detailed steps preceding it and some environment info (OS, architecture) to the Github issues and tag me there?
@moneshraghu5598
@moneshraghu5598 6 ай бұрын
How to correct SDL error of audio device not found and what mic are you using???
@Hardwareai
@Hardwareai 6 ай бұрын
Mic - reSpeaker 2-mic hat for Raspberry Pi. Your SDL troubles will heavily depend on the device you are trying to run this on ....
@moneshraghu5598
@moneshraghu5598 6 ай бұрын
@@Hardwareai which file in whispercpp do i alter to use usb mic as input?
@Hardwareai
@Hardwareai 6 ай бұрын
Since it relies on SDL2 for sound capture, theoretically you don't have to change anything...
Running With Bigger And Bigger Lunchlys
00:18
MrBeast
Рет қаралды 98 МЛН
小丑妹妹插队被妈妈教训!#小丑#路飞#家庭#搞笑
00:12
家庭搞笑日记
Рет қаралды 37 МЛН
You’ve Never Seen WiFi Like This
20:43
Data Slayer
Рет қаралды 901 М.
World’s Fastest Talking AI: Deepgram + Groq
11:45
Greg Kamradt (Data Indy)
Рет қаралды 49 М.
I built a MONSTER AI Pi with 8 Neural Processors!
8:29
Level 2 Jeff
Рет қаралды 134 М.
I run untested, viewer-submitted code on my 500-LED christmas tree.
45:17
I Can Save You Money! - Raspberry Pi Alternatives
15:04
Linus Tech Tips
Рет қаралды 3,4 МЛН
New to Linux? Yeah, DON'T Use Manjaro...
15:55
Eric Murphy
Рет қаралды 212 М.
How Fast Can I Fill My Inbox?
13:30
Dev Detour
Рет қаралды 307 М.
I Built a Personal Speech Recognition System for my AI Assistant
16:32