def get_audio_voicerss(self, **kwargs): words = kwargs.get('words', None) cache = kwargs.get('cache', None) file_path = kwargs.get('file_path', None) language = kwargs.get('language', None) payload = Voicerss.get_payload(language, words) return TTS.get_audio(file_path, cache, payload, self.TTS_URL)
def get_audio_voxygen(self, **kwargs): words = kwargs.get('words', None) cache = kwargs.get('cache', None) file_path = kwargs.get('file_path', None) voice = kwargs.get('voice', None) payload = Voxygen.get_payload(voice, words) return TTS.get_audio(file_path, cache, payload, self.TTS_URL)
def get_audio_acapela(self, **kwargs): language = kwargs.get('language', None) words = kwargs.get('words', None) cache = kwargs.get('cache', None) file_path = kwargs.get('file_path', None) voice = kwargs.get('voice', None) payload = Acapela.get_payload(language, voice, words) url = Acapela.get_audio_link(self.TTS_URL, payload) return TTS.get_audio(file_path, cache, payload, url)