Skip to content

Commit 6aa7709

Browse files
committed
fix: export all models
1 parent eeb7e7b commit 6aa7709

2 files changed

Lines changed: 20 additions & 10 deletions

File tree

src/inworld_sdk/__init__.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,10 @@
55
from typing import Literal, Optional
66

77
from .http_client import HttpClient
8-
from .models import TTSAudioEncoding
9-
from .models import TTSLanguageCodes
10-
from .models import TTSModelIds
11-
from .models import TTSVoices
8+
from .models import __all__ as models_all
129
from .tts import TTS
1310

14-
__all__ = ["InworldClient", "TTSAudioEncoding", "TTSLanguageCodes", "TTSModelIds", "TTSVoices"]
11+
__all__ = ["InworldClient"] + models_all
1512

1613

1714
class InworldClient:

src/inworld_sdk/models.py

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
from typing import Literal, Optional, TypedDict
22

3+
__all__ = [
4+
"AudioConfig",
5+
"SynthesizeSpeechResponse",
6+
"SynthesizeSpeechUsage",
7+
"SynthesizeSpeechPhonemeTimingInfo",
8+
"TTSAudioEncoding",
9+
"TTSLanguageCodes",
10+
"TTSModelIds",
11+
"TTSVoices",
12+
"VoiceResponse",
13+
"VoiceResponseMetadata",
14+
]
15+
316
TTSAudioEncoding = Literal[
417
"AUDIO_ENCODING_UNSPECIFIED",
518
"LINEAR16",
@@ -126,16 +139,16 @@ class VoiceResponse(TypedDict):
126139
naturalSampleRateHertz: int
127140

128141

129-
class SynthesizeSpeechUsage(TypedDict):
130-
numProcessedCharacters: int
131-
modelId: TTSModelIds
132-
133-
134142
class SynthesizeSpeechPhonemeTimingInfo(TypedDict):
135143
phoneme: str
136144
startTime: str
137145

138146

147+
class SynthesizeSpeechUsage(TypedDict):
148+
numProcessedCharacters: int
149+
modelId: TTSModelIds
150+
151+
139152
class SynthesizeSpeechResponse(TypedDict):
140153
audioContent: str
141154
numProcessedCharacters: int

0 commit comments

Comments
 (0)