-
-
Save rornor/e3ec2b788572dd5658b1 to your computer and use it in GitHub Desktop.
foobar2000, Biography View script that uses SAPI to announce playing track at playback start
This file contains hidden or 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
If WScript.Arguments.Count > 0 Then | |
Set Speech = CreateObject("SAPI.SpVoice") | |
str = Trim(WScript.Arguments.Item(0)) | |
If str <> "" Then | |
Speech.Volume = 80 ' max 100 | |
Speech.Speak str, 3 | |
Do Until Speech.WaitUntilDone(100) | |
WScript.Sleep 100 | |
Loop | |
End If | |
End If |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thread: link
Example Biography View command:
cscript //nologo talk.vbs "%title%. By %artist%, from %date% release %album%"