2016-07-05 22 views
0

我用下面的代碼安裝我的VCD文件(「語法」)到柯塔娜:如何讓Cortana使用我的新的或更新的語音命令定義文件?

Windows.ApplicationModel.Package.current.installedLocation.getFileAsync("VoiceCommandDefinitions.xml") 
.then(Windows.ApplicationModel.VoiceCommands.VoiceCommandDefinitionManager.installCommandDefinitionsFromStorageFileAsync) 
.then(() => Debug.writeln("Successfully installed VCD file"); 

成功報道,但是當我編寫一個查詢到柯塔娜,改變我對我的VCD文件進行沒有反映在Cortana。

我該如何強制Cortana實際使用我更新的語法?

回答

0

Cortana只會在語音互動結束時刷新語法緩存。點擊Cortana的麥克風按鈕,然後立即關閉Cortana盒子。您應該會在幾秒鐘內看到您的語法更改。

安裝的語法存儲在%LOCALAPPDATA%\Packages\Microsoft.Windows.Cortana_cw5n1h2txyewy\LocalState\Grammars\VoiceCommands.Components.0409.cfg下。實時(即高速緩存的)語法存儲在%LOCALAPPDATA%\Packages\Microsoft.Windows.Cortana_cw5n1h2txyewy\LocalState\Grammars\ReadOnlyGrammars\VoiceCommands.Components.0409.cfg下。每當用戶完成與Cortana的語音交互時,該副本都會刷新。

(沒有資料,對不起。這些信息基於與微軟的Cortana開發者的電子郵件交流。)

相關問題