Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Error: Speech To Text Package

Discussion in 'AR/VR (XR) Discussion' started by bigbrainz, Sep 27, 2016.

  1. bigbrainz

    bigbrainz

    Joined:
    Jul 21, 2015
    Posts:
    175
    I've read through the excellent "Speech Recognition and VR" by Amy DiGiovanni and Dioselin Gonzalez, as well as the more detailed Overview. Setting up all the APIs is pretty complex, but I believe I have that part sorted.

    However, I am still getting this error:

    ERROR: StartAsync on the continuous recognition session failed unexpectedly! [Operation has failed with error 0x80045509: (null)]
    UnityEngine.Windows.Speech.DictationRecognizer:Start()
    UnitySpeechToText.Services.WindowsSpeechToTextService:StartRecording() (at Assets/SpeechToText/Scripts/SpeechToTextServices/WindowsSpeechToTextService.cs:66)
    UnitySpeechToText.Widgets.SpeechToTextServiceWidget:StartRecording() (at Assets/SpeechToText/Scripts/SpeechToTextWidgets/SpeechToTextServiceWidget.cs:300)
    UnitySpeechToText.Widgets.SpeechToTextComparisonWidget:StartRecording() (at Assets/SpeechToText/Scripts/SpeechToTextWidgets/SpeechToTextComparisonWidget.cs:251)
    UnitySpeechToText.Widgets.SpeechToTextComparisonWidget:OnRecordButtonClicked() (at Assets/SpeechToText/Scripts/SpeechToTextWidgets/SpeechToTextComparisonWidget.cs:207)
    UnityEngine.EventSystems.EventSystem:Update()
    Any idea what the problem might be?

    Many thanks!
     
  2. superjayman

    superjayman

    Joined:
    May 31, 2013
    Posts:
    185
    Bump!, I'm also getting the same errors on Windows continous recognition.. This used to work couple of months ago.. Any Help??
     
  3. AubryStrawberry

    AubryStrawberry

    Joined:
    Jul 21, 2014
    Posts:
    4
  4. superjayman

    superjayman

    Joined:
    May 31, 2013
    Posts:
    185
    The issue is still not fixed! fails to work with x86_64 builds???
     
  5. icecrusher42

    icecrusher42

    Joined:
    May 10, 2013
    Posts:
    1
    Try the steps in this link, it worked for me: https://support.unity3d.com/hc/en-u...rror-running-my-app-that-uses-Windows-Speech-

    Edit: If it the above error goes away but it still doesn't work, try either switching to Unity 32 bit or building for 32 bit (x86). My dictation works fine when I build for 32 bit, and I have heard that others have had some luck in-editor when using Unity 32 bit and dictation. It sounds like there was an update for Windows 10 around October that broke dictation for 64 bit. Hopefully they fix this soon!
     
    Last edited: Jan 26, 2017
  6. Hodgson_SDAS

    Hodgson_SDAS

    Joined:
    Apr 30, 2015
    Posts:
    123
  7. OlliIllustrator

    OlliIllustrator

    Joined:
    Nov 1, 2013
    Posts:
    71
  8. OlliIllustrator

    OlliIllustrator

    Joined:
    Nov 1, 2013
    Posts:
    71
    I updated my Windows 10 to the latest Version and Unity to 5.65 and still get the error when killing dictation and then starting phrase recognition again.:

    ERROR: StopAsync on the continuous recognition session failed unexpectedly! [Operation has failed with error 0x80131509: (null)]
    0x00000001417C846B (Unity) StackWalker::GetCurrentCallstack
    0x00000001417CA11F (Unity) StackWalker::ShowCallstack
    0x00000001417A4330 (Unity) GetStacktrace
    0x0000000140D501DB (Unity) DebugStringToFile
    0x0000000140D509BC (Unity) DebugStringToFile
    0x00000001417AF178 (Unity) Unity::DictationRecognizer::VerifyAndReportHR
    0x00000001417B0220 (Unity) Unity::DictationRecognizer::StopAsync
    0x00000001417B0586 (Unity) Unity::TaskChainProcessor<Unity::DictationRecognizer>::ShutdownWithCleanup
    0x00000001417B0B9A (Unity) Unity::DictationRecognizer::Destroy
    0x000000008A4AAB25 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.Windows.Speech.DictationRecognizer:Destroy (intptr)
    0x000000008A4AA9A6 (Mono JIT Code) [Speech.cs:349] UnityEngine.Windows.Speech.DictationRecognizer:Dispose ()

    (Funny, when pasting the error somehow a smiley is inserted for capita D:)