Skip to content

Instantly share code, notes, and snippets.

@rornor rornor/talk.vbs Secret
Created Dec 28, 2012

Embed
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
Loop
End If
End If
@rornor

This comment has been minimized.

Copy link
Owner Author

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.