Skip to content

Commit 5243d72

Browse files
authored
fix: compatibility with ovos-plugin-manager 1.X.X (#4)
* fix: compatibility with ovos-plugin-manager 1.X.X * fix: compatibility with ovos-plugin-manager 1.X.X
1 parent f437f35 commit 5243d72

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

ovos_tts_plugin_SAM/__init__.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
from os.path import expanduser, isfile
2+
13
import os
24
import subprocess
35
from distutils.spawn import find_executable
4-
from os.path import expanduser, isfile
5-
66
from ovos_plugin_manager.templates.tts import TTS, TTSValidator
7+
from ovos_utils import classproperty
78
from ovos_utils.log import LOG
89

910

@@ -55,7 +56,7 @@ def get_voice_params(voice):
5556
pitch = 72
5657
throat = 110
5758
mouth = 105
58-
speed = 82
59+
speed = 82
5960
elif voice.lower() == "little old lady":
6061
pitch = 32
6162
throat = 145
@@ -120,8 +121,8 @@ def get_tts(self, sentence, wav_file, lang=None, voice=None,
120121

121122
return wav_file, None
122123

123-
@property
124-
def available_languages(self) -> set:
124+
@classproperty
125+
def available_languages(cls) -> set:
125126
"""Return languages supported by this TTS implementation in this state
126127
This property should be overridden by the derived class to advertise
127128
what languages that engine supports.

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ovos-plugin-manager>=0.0.1a12
1+
ovos-plugin-manager>=1.0.0,<2.0.0

0 commit comments

Comments
 (0)