Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
CheshireCC committed Nov 14, 2023
1 parent 2077040 commit 2cf5737
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,13 @@

- you can also download and convert models in software

- large-v3 model float32 :
- [Huggingface](https://huggingface.co/CheshireCC/faster-whisper-large-v3-float32)
- [百度云网盘链接](https://pan.baidu.com/s/1JJJASDFd6iNyZkcEXEkq3g?pwd=sif3 )





- ### Links

Expand All @@ -18,7 +24,7 @@

[whisperX](https://github.com/m-bain/whisperX)

[HuggingFace model download](https://huggingface.co/models)
[HuggingFace models download](https://huggingface.co/models)

[Demucs](https://github.com/facebookresearch/demucs)

Expand Down
16 changes: 16 additions & 0 deletions faster_whisper_GUI/mainWindows.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ def getParam_model(self) -> dict:

def onButtonProcessClicked(self):


self.result_whisperx_aligment = None
self.result_faster_whisper = None
self.result_whisperx_speaker_diarize = None
Expand Down Expand Up @@ -349,8 +350,11 @@ def transcribeProcess(self):
self.outputWithDateTime("Process")

# 重定向输出
print("redirect std output")
self.redirectOutput(self.setTextAndMoveCursorToProcessBrowser)
self.page_process.processResultText.setText("")

# VAD 参数
VAD_param :dict = self.getVADparam()

# vad 启用标识
Expand All @@ -367,16 +371,20 @@ def transcribeProcess(self):
VAD_param = {}

print(output_str)
self.log.write(output_str)

# 转写参数
Transcribe_params : dict = self.getParamTranscribe()

print("Transcribes options:")
self.log.write("Transcribes options:")
for key, value in Transcribe_params.items():
print(f" -{key} : {value}")
self.log.write(f" -{key} : {value}")

if self.FasterWhisperModel is None:
print(self.tr("模型未加载!进程退出"))
self.log.write("model is not loaded! over")
self.raiseErrorInfoBar(title=self.tr("错误") , content=self.tr("模型未加载!"))
self.transcribeOver(None)
self.stackedWidget.setCurrentWidget(self.page_model)
Expand All @@ -385,6 +393,7 @@ def transcribeProcess(self):
# print(Transcribe_params['audio'])
if len(Transcribe_params['audio']) == 0 and self.page_process.transceibe_Files_RadioButton.isChecked():
print("No input files!")
self.log.write("No input files!")
self.raiseErrorInfoBar(
title=self.tr("错误")
, content=self.tr("没有选择有效的音视频文件作为转写对象")
Expand All @@ -398,6 +407,8 @@ def transcribeProcess(self):
except Exception as e:
num_worker = 1

# 创建进程
self.log.write(f"create transcribe process with {num_worker} workers")
self.transcribe_thread = TranscribeWorker(model = self.FasterWhisperModel
, parameters = Transcribe_params
, vad_filter = vad_filter
Expand All @@ -406,8 +417,13 @@ def transcribeProcess(self):
)

self.transcribe_thread.signal_process_over.connect(self.transcribeOver)

# 修改按钮 UI
self.page_process.button_process.setText(self.tr("取消"))
self.page_process.button_process.setIcon(r":/resource/Image/Cancel_red.svg")

# 启动进程
self.log.write(f"start transcribe process")
# self.transcribe_thread.is_running == True
self.transcribe_thread.start()
self.setStateTool(self.tr("音频处理"), self.tr("正在处理中"), False)
Expand Down

0 comments on commit 2cf5737

Please sign in to comment.