Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
400d792032 Fix crash when device rate detection fails 2025-02-04 12:05:09 +00:00

View file

@ -19,6 +19,7 @@ class TextToSpeechPlugin(PluginBase):
self.speaker_wav = speaker_wav
self.output_index = Stream.find_output_index(output)
sample_rate = None
try:
sample_rate = next((rate for rate in [44100, 48000] if Stream.check_rate(self.output_index, 1, rate)))
except StopIteration: