Skip to content

Commit

Permalink
Improved install.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
fleschutz committed Aug 25, 2024
1 parent f45d11d commit 06ea3cc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ function AddMatchingVoiceCmd { param([string]$phrase, [string]$scriptName)
}

try {
"`n(1/4) Checking requirements for Talk2Windows..."
if (!(Test-Path "$HOME\.serenade" -pathType container)) { throw "No Serenade app installed - please download and install it from serenade.ai" }
Write-Host "`n(1/4) Checking for Serenade app... " -noNewline
if (!(Test-Path "~\.serenade" -pathType container)) { throw "Serenade app isn't installed yet - please download and install it from https://serenade.ai" }
Write-Host "OK"

$wakeWord = Read-Host "(2/4) Enter your personal wake word, e.g. 'Alexa', 'Jarvis', 'Siri', 'Windows'"
$wakeWord = $wakeWord.toLower()
Expand Down Expand Up @@ -65,7 +66,7 @@ try {
AddVoiceCmd $baseName "$baseName.ps1"
}
}
"`nSUCCESS - now launch Serenade and unpause it, then speak into the mic: `'$wakeWord, hi`'."
"`nSUCCESS - now launch the Serenade app and unpause it, then speak into the mic: `'$wakeWord, hi`'."
exit 0 # success
} catch {
Write-Error "ERROR: $($Error[0])"
Expand Down

0 comments on commit 06ea3cc

Please sign in to comment.