make destructor call client.close in PlayHT service

This commit is contained in:
Moishe Lettvin
2024-02-14 12:53:20 -05:00
parent 97a4cb8b7f
commit dcbd79333a
2 changed files with 4 additions and 1 deletions

View File

@@ -31,7 +31,7 @@ class PlayHTAIService(TTSService):
quality="higher",
format=Format.FORMAT_WAV)
def close(self):
def __del__(self):
self.client.close()
async def run_tts(self, sentence):