Skip to content

Instantly share code, notes, and snippets.


rornor/talk.vbs Secret

Created Dec 28, 2012
What would you like to do?
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
End If
End If

This comment has been minimized.

Copy link
Owner Author

@rornor 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
You can’t perform that action at this time.