Skip to content

Commit

Permalink
Fix: add alibaba tanslation channel & upadate elevenlabs
Browse files Browse the repository at this point in the history
  • Loading branch information
jianchang512 committed Nov 29, 2024
1 parent 0f65269 commit 6bd64a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion videotrans/task/_speech2text.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def recogn(self):
break
time.sleep(1)
try:
if self.cfg['remove_noise']:
if self.cfg.get('remove_noise'):
self._signal(text='开始语音降噪处理,用时可能较久,请耐心等待' if config.defaulelang=='zh' else 'Starting to process speech noise reduction, which may take a long time, please be patient')
self.cfg['shibie_audio']=remove_noise(self.cfg['shibie_audio'],f"{self.cfg['cache_folder']}/removed_noise_{time.time()}.wav")

Expand Down

0 comments on commit 6bd64a4

Please sign in to comment.