0
私はUWPにCortanaを統合しようとしています。これへの最初のステップは、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