mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2025-08-16 00:08:03 +02:00
speak
scripts for Windows
This commit is contained in:
12
examples/talk-llama/speak.ps1
Normal file
12
examples/talk-llama/speak.ps1
Normal file
@ -0,0 +1,12 @@
|
||||
# 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);
|
Reference in New Issue
Block a user