mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-29 05:09:46 +01:00
Update base.py
This commit is contained in:
parent
a680e4ca5a
commit
d7c45cf83b
1 changed files with 2 additions and 0 deletions
|
|
@ -5,6 +5,7 @@ import numpy as np
|
|||
import opuslib
|
||||
from pydub import AudioSegment
|
||||
from abc import ABC, abstractmethod
|
||||
from core.utils.performance_monitor import track_performance
|
||||
|
||||
TAG = __name__
|
||||
logger = setup_logging()
|
||||
|
|
@ -19,6 +20,7 @@ class TTSProviderBase(ABC):
|
|||
def generate_filename(self):
|
||||
pass
|
||||
|
||||
@track_performance("TTS")
|
||||
def to_tts(self, text):
|
||||
tmp_file = self.generate_filename()
|
||||
try:
|
||||
|
|
|
|||
Loading…
Reference in a new issue