Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jordimas committed Sep 16, 2024
1 parent 96bdbd1 commit 6f43e50
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions open_dubbing/dubbing.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ def __init__(
self.utterance_metadata = None
self._number_of_steps = number_of_steps
self.tts = tts
self.stt = sst
self.device = device
self.cpu_threads = cpu_threads

Expand Down
4 changes: 2 additions & 2 deletions open_dubbing/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,10 @@ def main():
stt = SpeechToTextWhisperTransfomers(args.device, args.cpu_threads)
else:
stt = SpeechToTextFasterWhisper(args.device, args.cpu_threads)
elif args == "faster-whisper":
elif args.stt == "faster-whisper":
stt = SpeechToTextFasterWhisper(args.device, args.cpu_threads)
else:
stt = SpeechToTextFasterWhisper(args.device, args.cpu_threads)
stt = SpeechToTextWhisperTransfomers(args.device, args.cpu_threads)

check_languages(args.source_language, args.target_language, tts, stt)

Expand Down

0 comments on commit 6f43e50

Please sign in to comment.