首頁 > 軟體

Win10使用PowerShelll讓Cortana朗讀小說的操作技巧

2020-07-23 10:28:45

  Win10如何使用PowerShelll讓Cortana朗讀小說?Cortana是Win10系統的人工智慧助手,可以幫忙處理一些基本任務,比如日程安排、回答問題等,其實Cortana還有更為強大的功能,比如讓Cortana為我們朗讀小說,這才不浪費Cortana甜美的聲音嘛!下面給大家介紹Win10使用PowerShelll讓Cortana朗讀小說的操作技巧。

圖1:Cortana

圖2:來至微軟小娜的問候

  Win10如何使用PowerShelll讓Cortana朗讀小說?

  1、把下面的程式碼複製為.ps1檔案儲存好,開啟PowerShell(管理員),把執行.ps1檔案。當然也可以複製之後直接執行命令,都是一樣的效果。

  1. 01= "HKLM:SOFTWAREMicrosoftSpeech_OneCoreVoicesTokensMSTTS_V110_zhCN_HongyuM"
  2. 02= "HKLM:SOFTWAREMicrosoftSpeech_OneCoreVoicesTokensMSTTS_V110_zhCN_HongyuMAttributes"
  3. 03= "HKLM:SOFTWAREMicrosoftSpeechVoicesTokensMSTTS_V110_zhCN_HongyuM"
  4. 04= "HKLM:SOFTWAREMicrosoftSpeechVoicesTokensMSTTS_V110_zhCN_HongyuMAttributes"
  5. 05New-Item -Path ,,,
  6. 06New-ItemProperty -Path , -Name "(default)" -PropertyType string -Value "Microsoft Hongyu Mobile - Chinese (Simplified, PRC)"
  7. 07New-ItemProperty -Path , -Name LangDataPath -PropertyType string -Value "%windir%Speech_OneCoreEnginesTTSzh-CNMSTTSLoczhCN.dat"
  8. 08New-ItemProperty -Path , -Name LangUpdateDataDirectory -PropertyType string -Value "%SystemDrive%DataSharedDataSpeech_OneCoreEnginesTTSzh-CN"
  9. 09New-ItemProperty -Path , -Name VoicePath -PropertyType string -Value "%windir%Speech_OneCoreEnginesTTSzh-CNM2052Hongyu"
  10. 10New-ItemProperty -Path , -Name VoiceUpdateDataDirectory -PropertyType string -Value "%SystemDrive%DataSharedDataSpeech_OneCoreEnginesTTSzh-CN"
  11. 11New-ItemProperty -Path , -Name 804 -PropertyType string -Value "Microsoft Hongyu Mobile - Chinese (Simplified, PRC)"
  12. 12New-ItemProperty -Path , -Name CLSID -PropertyType string -Value "{179F3D56-1B0B-42B2-A962-59B7EF59FE1B}"
  13. 13New-ItemProperty -Path , -Name Version -PropertyType string -Value "11.0"
  14. 14New-ItemProperty -Path , -Name Language -PropertyType string -Value "804"
  15. 15New-ItemProperty -Path , -Name Gender -PropertyType string -Value "Female"
  16. 16New-ItemProperty -Path , -Name Age -PropertyType string -Value "Adult"
  17. 17New-ItemProperty -Path , -Name DataVersion -PropertyType string -Value "11.0.2013.1022"
  18. 18New-ItemProperty -Path , -Name SharedPronunciation -PropertyType string -Value ""
  19. 19New-ItemProperty -Path , -Name Name -PropertyType string -Value "Microsoft Hongyu Mobile"
  20. 20New-ItemProperty -Path , -Name Vendor -PropertyType string -Value "Microsoft"
  21. 21New-ItemProperty -Path , -Name PersonalAssistant -PropertyType string -Value "1"
複製程式碼
= "HKLM:SOFTWAREMicrosoftSpeech_OneCoreVoicesTokensMSTTS_V110_zhCN_HongyuM" = "HKLM:SOFTWAREMicrosoftSpeech_OneCoreVoicesTokensMSTTS_V110_zhCN_HongyuMAttributes" = "HKLM:SOFTWAREMicrosoftSpeechVoicesTokensMSTTS_V110_zhCN_HongyuM" = "HKLM:SOFTWAREMicrosoftSpeechVoicesTokensMSTTS_V110_zhCN_HongyuMAttributes" New-Item -Path ,,, New-ItemProperty -Path , -Name "(default)" -PropertyType string -Value "Microsoft Hongyu Mobile - Chinese (Simplified, PRC)" New-ItemProperty -Path , -Name LangDataPath -PropertyType string -Value "%windir%Speech_OneCoreEnginesTTSzh-CNMSTTSLoczhCN.dat" New-ItemProperty -Path , -Name LangUpdateDataDirectory -PropertyType string -Value "%SystemDrive%DataSharedDataSpeech_OneCoreEnginesTTSzh-CN" New-ItemProperty -Path , -Name VoicePath -PropertyType string -Value "%windir%Speech_OneCoreEnginesTTSzh-CNM2052Hongyu" New-ItemProperty -Path , -Name VoiceUpdateDataDirectory -PropertyType string -Value "%SystemDrive%DataSharedDataSpeech_OneCoreEnginesTTSzh-CN" New-ItemProperty -Path , -Name 804 -PropertyType string -Value "Microsoft Hongyu Mobile - Chinese (Simplified, PRC)" New-ItemProperty -Path , -Name CLSID -PropertyType string -Value "{179F3D56-1B0B-42B2-A962-59B7EF59FE1B}" New-ItemProperty -Path , -Name Version -PropertyType string -Value "11.0" New-ItemProperty -Path , -Name Language -PropertyType string -Value "804" New-ItemProperty -Path , -Name Gender -PropertyType string -Value "Female" New-ItemProperty -Path , -Name Age -PropertyType string -Value "Adult" New-ItemProperty -Path , -Name DataVersion -PropertyType string -Value "11.0.2013.1022" New-ItemProperty -Path , -Name SharedPronunciation -PropertyType string -Value "" New-ItemProperty -Path , -Name Name -PropertyType string -Value "Microsoft Hongyu Mobile" New-ItemProperty -Path , -Name Vendor -PropertyType string -Value "Microsoft" New-ItemProperty -Path , -Name PersonalAssistant -PropertyType string -Value "1"

IT145.com E-mail:sddin#qq.com