Compare commits
1 commit
feat/revit
...
main
Author | SHA1 | Date | |
---|---|---|---|
400d792032 |
1 changed files with 1 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue