Actually, revert the change making it so that STTService takes model and language args at init time. It'll be up to the subclasses to append those to _settings (or better yet, provide their own service-specific _settings). This avoids rocking the boat too too much.
This commit is contained in:
@@ -291,7 +291,7 @@ class NewTTSService(TTSService):
|
||||
voice: Voice identifier to use.
|
||||
**kwargs: Additional arguments passed to the parent service.
|
||||
"""
|
||||
super().__init__(voice=voice, **kwargs)
|
||||
super().__init__(**kwargs)
|
||||
self._api_key = api_key
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user