Solving a problem with turning on ASR #168
StephenBakhteev
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When I tried to turn on ASR on video, the next error occured:
[ASR Unknown Error] Cannot execute ASR: Failed to load native whisper library. Error: Cannot load the library on this platform using NativeLibrary. PInvokeError: The operation was completed successfully.
System.AggregateException: One or more errors occurred. (One or more errors occurred. (Failed to load native whisper library. Error: Cannot load the library on this platform using NativeLibrary. PInvokeError: Операция успешно завершена.))
---> System.AggregateException: One or more errors occurred. (Failed to load native whisper library. Error: Cannot load the library on this platform using NativeLibrary. PInvokeError: Операция успешно завершена.)
---> System.Exception: Failed to load native whisper library. Error: Cannot load the library on this platform using NativeLibrary. PInvokeError: Операция успешно завершена.
at Whisper.net.WhisperFactory.CheckLibraryLoaded()
at Whisper.net.WhisperFactory..ctor(IWhisperProcessorModelLoader loader, Boolean delayInit)
at Whisper.net.WhisperFactory.FromPath(String path, WhisperFactoryOptions options)
at FlyleafLib.MediaPlayer.WhisperCppASRService..ctor(Config config) in D:\a\LLPlayer\LLPlayer\FlyleafLib\MediaPlayer\SubtitlesASR.cs:line 951
at FlyleafLib.MediaPlayer.AudioReader.<>c__DisplayClass13_0.<g__DoConsumer|3>d.MoveNext() in D:\a\LLPlayer\LLPlayer\FlyleafLib\MediaPlayer\SubtitlesASR.cs:line 464
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.Wait()
at FlyleafLib.MediaPlayer.AudioReader.ReadAll(TimeSpan curTime, Action`1 addSub, CancellationToken cancellationToken) in D:\a\LLPlayer\LLPlayer\FlyleafLib\MediaPlayer\SubtitlesASR.cs:line 443
at FlyleafLib.MediaPlayer.SubtitlesASR.Execute(Int32 subIndex, String url, Int32 streamIndex, MediaType type, TimeSpan curTime) in D:\a\LLPlayer\LLPlayer\FlyleafLib\MediaPlayer\SubtitlesASR.cs:line 204
at FlyleafLib.MediaPlayer.Subtitle.<>c__DisplayClass39_0.b__0() in D:\a\LLPlayer\LLPlayer\FlyleafLib\MediaPlayer\Subtitles.cs:line 668
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of inner exception stack trace ---
I have x64 Windows 11 Pro 25H2. The thing is that the security system in this version of Windows blocks all unknown files downloaded from the Internet by default. As a result, when you try to enable ASR, the program cannot access its own libraries, files, and so on.

First, you need to check whether the files inside LLPLayer are blocked. To do this, follow this path: open the folder where LLPlayer is stored → runtimes → win-x64 → then right-click on whisper.dll, select Properties, and at the bottom you will see the following message:
If you have this Security section (as a default it must not be there), then your Smart Screen has blocked all your LLPlayer directory. So, do next action: before downloading and extracting LLPlayer, you need to disable what SmartScreen does — “this file was blocked as unsafe by Microsoft Defender SmartScreen.”
To do this, follow the steps shown in the video: https://www.youtube.com/watch?v=zRhZy0xZuYc
After that, download LLPlayer, extract it (previously downloaded files won’t work unless you somehow unblock all the files inside the directory where LLPlayer is located), and it may work.
Beta Was this translation helpful? Give feedback.
All reactions