Skip to content

Build and run agents you can see, understand and trust.

fix(tts): make TTSModelBase a real abstract base class (#2956)

ANIRUDDHA ADAK654738c3daf4
diff --git a/src/agentscope/tts/_tts_base.py b/src/agentscope/tts/_tts_base.py
index 14401b9f7..86e73aab4 100644
--- a/src/agentscope/tts/_tts_base.py
+++ b/src/agentscope/tts/_tts_base.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
"""The TTS model base class."""
import inspect
-from abc import abstractmethod
+from abc import ABC, abstractmethod
from pathlib import Path
from typing import TYPE_CHECKING, Any, AsyncGenerator
@@ -15,7 +15,7 @@ if TYPE_CHECKING:
from ._tts_model_card import TTSModelCard
-class TTSModelBase:
+class TTSModelBase(ABC):
"""Base class for TTS models in AgentScope.
This base class provides a unified abstraction for both non-realtime and