2

I would like to install a language voice onto Windows 10.

Using the [Windows PowerShell] (see this link) and the following commands is possible to add a new language in the Windows 10:

PS C:\> $OldList = Get-WinUserLanguageList
PS C:\> $OldList.Add("fr-FR")
PS C:\> Set-WinUserLanguageList -LanguageList $OldList  

The result will be like this: Windows Area/Language Settings

But this is the first step only beacause the language package must be downloaded.

How could I run the Download and Installation of the TTS voice?

Thanks in advance

1 Answers1

0

It does not matter what the file is you want to download, downloading using PowerShell is the same.

3 ways to download files with PowerShell

1. Invoke-WebRequest

The first and most obvious option is the Invoke-WebRequest cmdlet. It is built into PowerShell and can be used in the following method:

Invoke-WebRequest -Uri $url -OutFile $output

2. System.Net.WebClient

A common .NET class used for downloading files is the System.Net.WebClient class.

$wc = New-Object System.Net.WebClient
$wc.DownloadFile($url, $output)

3. Start-BitsTransfer

If you haven't heard of BITS before, check this out. BITS is primarily designed for asynchronous file downloads, but works perfectly fine synchronously too (assuming you have BITS enabled).

Start-BitsTransfer -Source $url -Destination $output -Asynchronous

Installation is just using PowerShell's cmdlet to start the installer.

Start-Process -FilePath 'PathToInstaller'
postanote
  • 5,136