Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changeable Voice #1

Open
sheepla opened this issue Apr 2, 2022 · 0 comments
Open

Changeable Voice #1

sheepla opened this issue Apr 2, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@sheepla
Copy link
Owner

sheepla commented Apr 2, 2022

PowerShell Edition:

Show voices

$sapi = New-Object -Com sapi.spvoice
❯ $sapi.GetVoices() | %{$_.GetAttribute("Name")}
Microsoft David Desktop
Microsoft Zira Desktop
Microsoft Haruka Desktop
$sapi.Speak("Windowsでコンピューターの世界が広がります。")

Change voices and speak

$sapi = New-Object -Com sapi.spvoice
❯ $sapi.Voice = $sapi.GetVoices()[2]
❯ $sapi.Speak("Windowsでコンピューターの世界が広がります。")
@sheepla sheepla added the enhancement New feature or request label Apr 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant