Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Microsoft.CognitiveServices.Speech.extension.codec.dll? #194

Closed
joshismyhandle opened this issue Apr 17, 2023 · 9 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@joshismyhandle
Copy link
Contributor

Hello :)

When packaging I am getting a missing dll error on the internal logs - and the pacakged project always fails to make the call to Azure (PIE works fine). Am I missing a component installation or has the lib missed something in compilation?

LogInit: Display: LogAzSpeech_Internal: Warning: LogLastError: Failed to load runtime library "C:/Git/MyProject/Plugins/AzSpeech/Source/ThirdParty/AzureWrapper/libs/Win/Runtime/Microsoft.CognitiveServices.Speech.extension.codec.dll": 2 (The system cannot find the file specified.).

Not quite sure when this started happening tbh. It worked in pacakged projects before.

@joshismyhandle
Copy link
Contributor Author

joshismyhandle commented Apr 17, 2023

Hmm yeah i just packaged SpeechGPT and the same error occurs - the packaging completes successfully but throws this error (can see it copying over at the beginning but then later on in the log this appears - not copied over correctly?) and then doesn't complete the speech request. It successfully fires Started but then Updated/Completed never fire. Failed doesn't fire also, because we are successful but incomplete.

LogAzSpeech_Internal: Warning: LogLastError: Failed to load runtime library "C:/Git/thirdparty/lucosio/UESpeechGPT/Plugins/UEAzSpeech/Source/ThirdParty/AzureWrapper/libs/Win/Runtime/Microsoft.CognitiveServices.Speech.extension.codec.dll": 2 (The system cannot find the file specified.).

@joshismyhandle
Copy link
Contributor Author

This is all we get when we start a STT:

LogAzSpeech: Display: Task: SpeechToText (242316); Function: Activate; Message: Activating task LogAzSpeech_Internal: Display: Task: SpeechToText (242316); Function: StartAzureTaskWork; Message: Starting Azure SDK task LogAzSpeech_Internal: Display: Task: SpeechToText (242316); Function: StartAzureTaskWork; Message: Using audio input device: Default LogAzSpeech_Internal: Display: Thread: AzSpeech_SpeechToText_242316; Function: Init; Message: Initializing runnable thread LogAzSpeech_Internal: Display: Thread: AzSpeech_SpeechToText_242316; Function: CanInitializeTask; Message: Checking if can initialize task in current context LogAzSpeech_Internal: Display: Thread: AzSpeech_SpeechToText_242316; Function: Run; Message: Running runnable thread work LogAzSpeech_Internal: Display: Thread: AzSpeech_SpeechToText_242316; Function: InitializeAzureObject; Message: Initializing Azure Object LogAzSpeech_Internal: Display: Thread: AzSpeech_SpeechToText_242316; Function: InitializeAzureObject; Message: Creating recognizer object LogAzSpeech_Internal: Display: Thread: AzSpeech_SpeechToText_242316; Function: CreateSpeechConfig; Message: Creating Azure SDK speech config LogAzSpeech_Internal: Display: Thread: AzSpeech_SpeechToText_242316; Function: ApplySDKSettings; Message: Applying Azure SDK Settings LogAzSpeech_Internal: Display: Thread: AzSpeech_SpeechToText_242316; Function: EnableLogInConfiguration; Message: Enabling Azure SDK log LogAzSpeech_Internal: Display: Thread: AzSpeech_SpeechToText_242316; Function: InsertProfanityFilterProperty; Message: Adding profanity filter property LogAzSpeech_Internal: Display: Thread: AzSpeech_SpeechToText_242316; Function: ApplySDKSettings; Message: Using language: Default LogAzSpeech_Internal: Display: Thread: AzSpeech_SpeechToText_242316; Function: Run; Message: Starting recognition LogAzSpeech_Internal: Display: Thread: AzSpeech_SpeechToText_242316; Function: Run; Message: Recognition started.

Until we press stop and get the usual:

LogAzSpeech: Display: Task: SpeechToText (242316); Function: StopAzSpeechTask; Message: Stopping task LogAzSpeech_Internal: Display: Thread: AzSpeech_SpeechToText_242316; Function: StopAzSpeechRunnableTask; Message: Setting runnable work as pending stop LogAzSpeech: Display: Task: SpeechToText (242316); Function: SetReadyToDestroy; Message: Setting task as Ready to Destroy LogAzSpeech_Internal: Display: Thread: AzSpeech_SpeechToText_242316; Function: StopAzSpeechRunnableTask; Message: Setting runnable work as pending stop LogAzSpeech_Internal: Display: Thread: AzSpeech_SpeechToText_242316; Function: Stop; Message: Stopping runnable thread work

TTS seems to still work

@joshismyhandle
Copy link
Contributor Author

Just using this node - Started is the only one that fires

image

@lucoiso
Copy link
Owner

lucoiso commented Apr 18, 2023

This file is present here: https://github.com/lucoiso/UEAzSpeech/tree/main/Source/ThirdParty/AzureWrapper/libs/Win/Runtime

I'm getting this error too since a long time ago xD
For some reason this file is always failing to load, I don't know why, but the plugin works well even with this warning.

The STT is still working here, I'm searching for the reason that this task isn't working on other devices. 👀

@lucoiso lucoiso self-assigned this Apr 18, 2023
@lucoiso lucoiso added the bug Something isn't working label Apr 18, 2023
@joshismyhandle
Copy link
Contributor Author

After clearing all temporary files from the project and from all the plugins, I packaged the project and AzSpeech started working again. I will have to clear the cache more often with this plugin as it seems MS is quite heavy on the temp files and things must get easily corrupted. I still get the warning in the OP when packaging as you say, however... but this error is unrelated to what I originally thought it was.

Thanks for the response!

@joshismyhandle
Copy link
Contributor Author

Hmm but why did it not work on SpeechGPT? That's weird. I'll have to double check for you and get back to you about that. Might have been a me thing

@BlocksMonkey
Copy link

I appear to be having this same issue upgrading to the latest version of this plugin.
STT suddenly stopped working. I get the same error and log lines that @debellica reported earlier in the thread.
I don't appear to be getting any Azure logging even though I've Checked "Enable Azure SDK Logs"

I tried clearing the Intermediate folder from the AzSpeech plugin, and from the project without any luck.
Any suggestions? Or is there any other information I can provide?

@BlocksMonkey
Copy link

Aha!

The 'Speech to Ttext with Default Options' node, wasn't pulling the Default Locale from the project settings:
image

Even though I specified the Default Locale in the AzSpeech Plugin's Project settings:
image

I figured this out by looking in the the Saved/Logs/AzSpeech log files and found a 400 error and the URL contained language=Default instead of language=en-US

Once I put the correct locale into the blueprint node, it worked perfectly:
image

So in my case, I think the bug is: "Speech to Text with Default Options does not use the Default Locale from Project Settings"

@gagallous
Copy link

Hello!
I'm using version 1.6.17 of this plugin downloaded from the Marketplace, I'm getting this error:
UATHelper: Cooking (Windows): LogInit: Display: LogAzSpeech_Internal: Warning: LogLastError: Failed to load runtime library "../../../Engine/Plugins/Marketplace/AzSpeech/Source/ThirdParty/AzureWrapper/libs/Win/Runtime/Microsoft.CognitiveServices.Speech.extension.codec.dll": 2 (The system cannot find the file specified.).

I'm using Unreal Engine version 5.3.2-29314046+++UE5+Release-5.3

This error is not allowing me to package my project, I read this issue but I couldn't find a solution, do you know what can I do to fix this? I tried a lot of stuff and still can't package my project while using this plugin.

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants