lucoiso / UEAzSpeech

This plugin integrates Azure Speech Cognitive Services in Unreal Engine.
https://forums.unrealengine.com/t/free-azspeech-plugin-async-text-to-voice-and-voice-to-text-with-microsoft-azure/495394
MIT License
196 stars 46 forks source link

Crash when InputDevice of SpeechRecognition is set to anything other than Default #258

Open yeczrtu opened 6 months ago

yeczrtu commented 6 months ago

The device ID is taken from the Get Available Audio Input Devices function; Is Audio Input Device ID Valid returns True, so the ID is correct.

version https://github.com/lucoiso/UEAzSpeech/releases/tag/v1.6.18

UE5.3.2

Callstack

Unhandled exception at 0x00007FFCD2C253AC in UnrealEditor.exe: Microsoft C++ exception: std::runtime_error at memory location 0x000000BCAD62F930.

    KernelBase.dll!00007ffcd2c253ac()   Unknown
    vcruntime140.dll!00007ffcbfab6ba7() Unknown
>   UnrealEditor-AzSpeech.dll!__azac_handle_native_ex(unsigned __int64 hr, bool throwException) Line 709    C++
    [Inline Frame] UnrealEditor-AzSpeech.dll!__azac_rethrow(unsigned __int64) Line 724  C++
    UnrealEditor-AzSpeech.dll!Microsoft::CognitiveServices::Speech::SpeechRecognizer::FromConfig(std::shared_ptr<Microsoft::CognitiveServices::Speech::SpeechConfig> speechconfig, std::shared_ptr<Microsoft::CognitiveServices::Speech::Audio::AudioConfig> audioInput) Line 100   C++
    UnrealEditor-AzSpeech.dll!FAzSpeechRecognitionRunnableBase::InitializeAzureObject() Line 223    C++
    UnrealEditor-AzSpeech.dll!FAzSpeechRunnableBase::Run() Line 86  C++
    [Inline Frame] UnrealEditor-AzSpeech.dll!FAzSpeechRecognitionRunnableBase::Run() Line 27    C++
    UnrealEditor-AzSpeech.dll!FAzSpeechRecognitionRunnable::Run() Line 21   C++
    UnrealEditor-Core.dll!FRunnableThreadWin::Run() Line 149    C++
    UnrealEditor-Core.dll!FRunnableThreadWin::GuardedRun() Line 71  C++
    kernel32.dll!00007ffcd4ba257d() Unknown
    ntdll.dll!00007ffcd55caa48()    Unknown
yeczrtu commented 6 months ago

Both Speech to Text with Default Options and Speech to Text with Custom Options crash.