mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2024-11-07 16:44:13 +01:00
13 lines
400 B
PowerShell
13 lines
400 B
PowerShell
# Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope CurrentUser
|
|
param(
|
|
# voice options are David or Zira
|
|
[Parameter(Mandatory=$true)][string]$voice,
|
|
[Parameter(Mandatory=$true)][string]$text
|
|
)
|
|
|
|
Add-Type -AssemblyName System.Speech;
|
|
$speak = New-Object System.Speech.Synthesis.SpeechSynthesizer;
|
|
$speak.SelectVoice("Microsoft $voice Desktop");
|
|
$speak.Rate="0";
|
|
$speak.Speak($text);
|