Add module specific lang option to GoogleCloudStt
@@ -93,6 +93,8 @@ class GoogleSTT(TokenSTT):
class GoogleCloudSTT(GoogleJsonSTT):
def __init__(self):
super(GoogleCloudSTT, self).__init__()
+ # override language with module specific language selection
+ self.lang = self.config.get('lang') or self.lang
def execute(self, audio, language=None):
self.lang = language or self.lang
