mirror of
https://github.com/BoardWare-Genius/jarvis-models.git
synced 2025-12-14 00:53:25 +00:00
TTS & cuda processing updated
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
import io
|
||||
import time
|
||||
from ntpath import join
|
||||
|
||||
from fastapi import Request, Response, status
|
||||
@ -16,7 +17,9 @@ class TTS(Blackbox):
|
||||
|
||||
def processing(self, *args, **kwargs) -> io.BytesIO:
|
||||
text = args[0]
|
||||
current_time = time.time()
|
||||
audio = self.tts_service.read(text)
|
||||
print("#### TTS Service consume : ", (time.time()-current_time))
|
||||
return audio
|
||||
|
||||
def valid(self, *args, **kwargs) -> bool:
|
||||
|
||||
Reference in New Issue
Block a user