Skip to content

Commit

Permalink
fixed bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
CheshireCC committed Dec 30, 2023
1 parent a38c5c0 commit 0742953
Show file tree
Hide file tree
Showing 11 changed files with 2,543 additions and 2,421 deletions.
431 changes: 242 additions & 189 deletions en.ts

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions fasterWhisperGUIConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
"model_param": {
"localModel": true,
"onlineModel": false,
"model_path": "F:/WhisperModels/faster-whisper/large-v3-float32",
"model_path": "",
"modelName": 0,
"use_v3_model": true,
"device": 1,
"deviceIndex": "0",
"preciese": 0,
"thread_num": "4",
"num_worker": "1",
"download_root": "C:/Users/12059/.cache/huggingface/hub",
"download_root": "",
"local_files_only": false
},
"vad_param": {
Expand All @@ -37,9 +37,9 @@
"autoClearTempFiles": true
},
"Transcription_param": {
"language": 2,
"language": 0,
"task": false,
"beam_size": "2",
"beam_size": "5",
"best_of": "1",
"patience": "1.0",
"length_penalty": "1.0",
Expand Down
2 changes: 0 additions & 2 deletions faster_whisper_GUI/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
import whisperx


5 changes: 1 addition & 4 deletions faster_whisper_GUI/homePageNavigationInterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,9 @@ def steupUI(self):

self.hBoxLayout.addWidget(self.itemLabel_demucs)#, 3, alignment=Qt.AlignmentFlag.AlignLeft)
self.itemLabel_demucs.setMainButton(self.tr("进入"))



# image = QImage(FasterWhisperGUIIcon.DEMUCS.png())
# self.itemLabel_demucs.imageLabel.setImage(image)


# self.itemLabel_demucs.setFixedHeight(440)

self.itemLabel_faster_whisper = ItemLabel(
Expand Down
4 changes: 4 additions & 0 deletions faster_whisper_GUI/mainWindows.py
Original file line number Diff line number Diff line change
Expand Up @@ -1290,6 +1290,10 @@ def outputAudioPartWithSpeaker(self):
"""
output audio part with speaker
"""
if self.current_result is None or len(self.current_result) == 0:
self.raiseErrorInfoBar(self.tr("转写结果为空"), self.tr("没有有效的转写结果"))
return

outputWithDateTime("SegmentAudioFileWithSpeaker")

# self.page_output.outputAudioPartWithSpeakerButton.setEnabled(False)
Expand Down
3 changes: 1 addition & 2 deletions faster_whisper_GUI/modelPageNavigationInterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,10 @@ def setupUI(self):
self.label_online_model_name.setText(self.__tr("模型名称"))
self.label_online_model_name.setObjectName("LabelOnlineModelName")
self.label_online_model_name.setStyleSheet("#LabelOnlineModelName{ background : rgba(0, 128, 0, 120); }")
self.combox_online_model = EditableComboBox()

self.combox_online_model = EditableComboBox()
# 下拉框设置项目
self.combox_online_model.addItems(self.model_names)

# 下拉框设置自动完成
completer = QCompleter(self.model_names, self)
self.combox_online_model.setCompleter(completer)
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
pyside6-fluent-widgets
pyside6-fluent-widgets==1.3.2
faster-whisper==0.9.0
nuitka<=1.8.6
pyAV
ffmpeg-python
pyAudio
Expand Down
Binary file modified resource/_rc/Translater/en.qm
Binary file not shown.
2 changes: 1 addition & 1 deletion resource/_rc/rc_Image.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Resource object code (Python 3)
# Created by: object code
# Created by: The Resource Compiler for Qt version 6.6.0
# Created by: The Resource Compiler for Qt version 6.6.1
# WARNING! All changes made in this file will be lost!

from PySide6 import QtCore
Expand Down
4,504 changes: 2,287 additions & 2,217 deletions resource/_rc/rc_Translater.py

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resource/_rc/rc_qss.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Resource object code (Python 3)
# Created by: object code
# Created by: The Resource Compiler for Qt version 6.6.0
# Created by: The Resource Compiler for Qt version 6.6.1
# WARNING! All changes made in this file will be lost!

from PySide6 import QtCore
Expand Down

0 comments on commit 0742953

Please sign in to comment.