Skip to content

Commit

Permalink
在语音输入法转字幕功能区加入了打开 Windows 上的 声音控制面板 的按钮
Browse files Browse the repository at this point in the history
  • Loading branch information
HaujetZhao committed Aug 17, 2020
1 parent 927a468 commit 60cf64d
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion QuickCut/QuickCut.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
preferenceTableName = 'preference'
styleFile = './style.css' # 样式表的路径
finalCommand = ''
version = 'V1.6.7'
version = 'V1.6.8'



Expand Down Expand Up @@ -3390,13 +3390,16 @@ def initGui(self):
self.voiceInputMethodSubtitleEngineParamLayout.addLayout(self.voiceInputMethodSubtitleEngineParamForm2,3)

self.voiceInputMethodSubtitleHelpButton = QPushButton(self.tr('查看帮助'))
self.voiceInputMethodSubtitleSoundControlPanelButton = QPushButton(self.tr('声音控制面板'))
self.voiceInputMethodSubtitleHalfAutoRunButton = QPushButton(self.tr('开始半自动运行'))
self.voiceInputMethodSubtitleFullAutoRunButton = QPushButton(self.tr('开始全自动运行'))
self.voiceInputMethodSubtitleHelpButton.clicked.connect(self.voiceInputMethodSubtitleHelpButtonClicked)
self.voiceInputMethodSubtitleSoundControlPanelButton.clicked.connect(self.voiceInputMethodSubtitleSoundControlPanelButtonClicked)
self.voiceInputMethodSubtitleHalfAutoRunButton.clicked.connect(self.voiceInputMethodSubtitleHalfAutoRunButtonClicked)
self.voiceInputMethodSubtitleFullAutoRunButton.clicked.connect(self.voiceInputMethodSubtitleFullAutoRunButtonClicked)
self.voiceInputMethodSubtitleButtonLayout = QHBoxLayout()
self.voiceInputMethodSubtitleButtonLayout.addWidget(self.voiceInputMethodSubtitleHelpButton)
self.voiceInputMethodSubtitleButtonLayout.addWidget(self.voiceInputMethodSubtitleSoundControlPanelButton)
self.voiceInputMethodSubtitleButtonLayout.addWidget(self.voiceInputMethodSubtitleHalfAutoRunButton)
self.voiceInputMethodSubtitleButtonLayout.addWidget(self.voiceInputMethodSubtitleFullAutoRunButton)

Expand Down Expand Up @@ -3499,6 +3502,14 @@ def voiceInputMethodSubtitleInputEditChanged(self):
def voiceInputMethodSubtitleHelpButtonClicked(self):
webbrowser.open(self.tr('https://www.bilibili.com/video/BV1wT4y177kD/'))

def voiceInputMethodSubtitleSoundControlPanelButtonClicked(self):
if platfm == 'Windows':
os.system('control /name Microsoft.Sound')
else:
QMessageBox.information(self, '提示', '这个功能用于打开 Window 上的声音控制面板,方便打开立体声混音,将扬声器输出作为麦克风输入,只在 Windows 上有用')



# 半自动
def voiceInputMethodSubtitleHalfAutoRunButtonClicked(self):
# if
Expand Down

0 comments on commit 60cf64d

Please sign in to comment.