Holographic Voice Input XAudio2Create Fails

Open
#1,180 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale

Research direction

Start with line 21 in XAudio2Helpers.h and line 92 in HolographicVoiceInputMain.cpp, then reproduce the clean Debug build on HoloLens gen1. Check the XAudio2Create failure and XAUDIO2_E_INVALID_CALL result in the sample's voice-input flow. Done means the sound object initializes and the cube changes color from the voice command.

Written by the indexing model from the issue text.

Description

holographic

Clean pull builds and deploys to Hololens gen1 from MSVS 2019. The app comes up and I see a yellow cube. It responds to taps fine. "Hey Cortana" is working so the microphone is listening. However I cannot change the cube color by command. Building in Debug and stepping through the program I found line 21 to fail in XAudio2Helpers.h

auto hr = XAudio2Create(&xAudio2Instance, XAUDIO2_1024_QUANTUM); This results in m_speechSynthesisSound not being initialized on line 92 in HolographicVoiceInputMain.cpp.

https://docs.microsoft.com/en-us/windows/win32/xaudio2/xaudio2-error-codes gives the error XAUDIO2_E_INVALID_CALL but the doc isn't helpful other than pointing invalid parameters were given.

Anyone else have this issue?

Dominant language
JavaScript
Stars
9.7k
Forks
7.8k
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/Windows-universal-samples

All issues in microsoft/Windows-universal-samples

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.