Run this powershell script. In-game, you can type /n <your text here>
. This writes a note to MyNotes.txt
, which is read by the script and spoken outloud. Useful for streaming without a mic or talking to yourself when you're lonely.
Created
December 8, 2019 20:08
-
-
Save MingweiSamuel/ca102891ae3b857535e7b1a07313b57b to your computer and use it in GitHub Desktop.
Text-to-Speech for League of Legends streaming
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add-Type -AssemblyName System.Speech | |
$SS= New-Object -TypeName System.Speech.Synthesis.SpeechSynthesizer | |
$SS.SelectVoice("Microsoft Zira Desktop") | |
# $SS.Rate = 0 # -10 to 10 | |
# $SS.Volume = 50 # max 100 | |
Get-Content "C:\Riot Games\League of Legends\MyNotes.txt" -Tail 1 -Wait | ForEach-Object -Process { $SS.Speak($_) } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment