0
Cortana를 내 UWP에 통합하려고합니다. 첫 번째 단계는 VCD 파일을 "설치"하는 것입니다. 아래 스 니펫은 Windows 10에서 제대로 작동하지만 Xbox에 배포 할 때 오류가 발생합니다. 특히, "installCommandDefinitionsFromStorageFileAsync"는 실패한 것입니다. Xbox에 VCD를 설치하는 또 다른 방법이 있습니까? 또는 아직 해결되지 않은 버그입니까?VCD 파일을 설치할 수 없습니다.
return wap.current.installedLocation.getFileAsync("vdmvoicecommands.xml").then(function (file) {
return voiceCommandManager.installCommandDefinitionsFromStorageFileAsync(file);
}, function (er) {
console.error('error file vdmvoicecommands.xml', er);
}).then(function() {
var language = window.navigator.userLanguage || window.navigator.language;
var commandSetName = "VDM_" + language.toLowerCase();
var commansets = Windows.ApplicationModel.VoiceCommands.VoiceCommandDefinitionManager.installedCommandDefinitions;
if (commansets.hasKey(commandSetName)) {
console.log("VCD loaded !");
} else {
console.log("VCD not installed yet?");
}
}, function (ee) {
console.warn("installCommandDefinitionsFromStorageFileAsync error", ee);
});
고맙습니다. 당신 (MSFT)이 그 목록을 업데이트 했습니까? 나는 일주일 전, 내가 보았을 때 코르 타나가 거기에 없었을 것이라고 확신한다. – Bart
나는 그것을 증명할 수있다. 그것은 내가이 질문을 보았을 때 내가 간 첫 페이지였다 :) – AlexDrenea