Skip to content

Instantly share code, notes, and snippets.

@rornor

rornor/talk.vbs Secret

Created December 28, 2012 22:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rornor/e3ec2b788572dd5658b1 to your computer and use it in GitHub Desktop.
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
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
@rornor
Copy link
Author

rornor commented Dec 28, 2012

Thread: link

Example Biography View command:

cscript //nologo talk.vbs "%title%. By %artist%, from %date% release %album%"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment