gpt4 book ai didi

windows - 如何使用Dragon NaturallySpeaking的高级脚本使扬声器静音?

转载 作者:行者123 更新时间:2023-12-03 00:33:54 26 4
gpt4 key购买 nike

有什么方法可以使用Dragon NaturallySpeaking的高级脚本使扬声器静音?

最佳答案

如果您想要完成的工作可以使用任何其他脚本语言完成,请使用它并从Dragon调用该脚本。

DNS和DP高级脚本编写已经有几代了。我几乎对所有东西都使用AutoHotKey,但是我有一些VBS和JS脚本,甚至还有HTA。例如,我有一个AHK脚本,可通过从命令行传递参数来操纵声卡的音量,静音等。

Sub Main
' Command is called "<Volume>" and that list includes:
' mute Mike, mute the Mike, show the volume, show volume, toggle the volume,
' toggle volume, volume, volume down, volume down three, volume down two,
' volume loud, volume mute, volume off, volume up, volume up loud,
' volume up three, volume up two.

x = ListVar1
If InStr(x," the ") Then x = Mid$(x, 1, InStr(x," the ")) + Mid$(x, InStr(x," the ")+5)
If x = "mute Mike" Then ShellExecute "pgVolume.ahk mutemic", 6
If x = "show volume" Then ShellExecute "pgVolume.ahk showvol", 6
If x = "toggle volume" Then ShellExecute "pgVolume.ahk togglevol", 6

x = Mid$(ListVar1, 8)
If x = "down" Then ShellExecute "pgVolume.ahk down 1", 6
If x = "down three" Then ShellExecute "pgVolume.ahk down 3", 6
If x = "down two" Then ShellExecute "pgVolume.ahk down 2", 6
If x = "loud" Then ShellExecute "pgVolume.ahk up 6", 6
If x = "mute" Then ShellExecute "pgVolume.ahk down 6", 6
If x = "off" Then ShellExecute "pgVolume.ahk down 6", 6
If x = "up" Then ShellExecute "pgVolume.ahk up 1", 6
If x = "up loud" Then ShellExecute "pgVolume.ahk up 6", 6
If x = "up three" Then ShellExecute "pgVolume.ahk up 3", 6
If x = "up two" Then ShellExecute "pgVolume.ahk up 2", 6
End Sub

我的AHK脚本包括子例程和对VA.AHK的引用(位于 http://www.autohotkey.com/board/topic/21984-/的VA v2.2)。

Hth,

关于windows - 如何使用Dragon NaturallySpeaking的高级脚本使扬声器静音?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44464649/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com