typecast-python 0.5.0__py3-none-any.whl → 0.5.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- typecast/exceptions.py +1 -1
- typecast/models/tts.py +4 -4
- {typecast_python-0.5.0.dist-info → typecast_python-0.5.2.dist-info}/METADATA +4 -4
- {typecast_python-0.5.0.dist-info → typecast_python-0.5.2.dist-info}/RECORD +6 -6
- {typecast_python-0.5.0.dist-info → typecast_python-0.5.2.dist-info}/WHEEL +0 -0
- {typecast_python-0.5.0.dist-info → typecast_python-0.5.2.dist-info}/licenses/LICENSE +0 -0
typecast/exceptions.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
class TypecastError(Exception):
|
|
2
2
|
"""Base exception for Typecast SDK"""
|
|
3
3
|
|
|
4
|
-
def __init__(self, message: str, status_code: int = None):
|
|
4
|
+
def __init__(self, message: str, status_code: int | None = None):
|
|
5
5
|
self.message = message
|
|
6
6
|
self.status_code = status_code
|
|
7
7
|
super().__init__(self.message)
|
typecast/models/tts.py
CHANGED
|
@@ -180,7 +180,7 @@ class TTSRequest(BaseModel):
|
|
|
180
180
|
)
|
|
181
181
|
prompt: Optional[TTSPrompt] = None
|
|
182
182
|
output: Optional[Output] = None
|
|
183
|
-
seed: Optional[int] = None
|
|
183
|
+
seed: Optional[int] = Field(default=None, exclude=True, deprecated="Ignored; seed is no longer supported")
|
|
184
184
|
|
|
185
185
|
|
|
186
186
|
class TTSResponse(BaseModel):
|
|
@@ -241,7 +241,7 @@ class TTSRequestStream(BaseModel):
|
|
|
241
241
|
)
|
|
242
242
|
prompt: Optional[TTSPrompt] = None
|
|
243
243
|
output: Optional[OutputStream] = None
|
|
244
|
-
seed: Optional[int] = None
|
|
244
|
+
seed: Optional[int] = Field(default=None, exclude=True, deprecated="Ignored; seed is no longer supported")
|
|
245
245
|
|
|
246
246
|
|
|
247
247
|
class AlignmentSegmentWord(BaseModel):
|
|
@@ -296,7 +296,7 @@ class TTSRequestWithTimestamps(BaseModel):
|
|
|
296
296
|
)
|
|
297
297
|
prompt: Optional[TTSPrompt] = None
|
|
298
298
|
output: Optional[Output] = None
|
|
299
|
-
seed: Optional[int] = None
|
|
299
|
+
seed: Optional[int] = Field(default=None, exclude=True, deprecated="Ignored; seed is no longer supported")
|
|
300
300
|
|
|
301
301
|
|
|
302
302
|
# --- timestamp captioning helpers (module-level, shared by SRT/VTT) ---
|
|
@@ -350,7 +350,7 @@ def _group_into_cues(
|
|
|
350
350
|
Returns List[(text, start, end)] tuples.
|
|
351
351
|
"""
|
|
352
352
|
cues = []
|
|
353
|
-
cur_text_parts = []
|
|
353
|
+
cur_text_parts: list[str] = []
|
|
354
354
|
cur_start = None
|
|
355
355
|
last_end = None
|
|
356
356
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: typecast-python
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.2
|
|
4
4
|
Summary: Official Typecast Python SDK - Convert text to lifelike speech using AI-powered voices
|
|
5
5
|
Project-URL: Homepage, https://typecast.ai
|
|
6
6
|
Project-URL: Documentation, https://typecast.ai/docs/overview
|
|
@@ -225,6 +225,7 @@ Classifier: Topic :: Multimedia :: Sound/Audio :: Speech
|
|
|
225
225
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
226
226
|
Requires-Python: <3.15,>=3.11
|
|
227
227
|
Requires-Dist: aiohttp>=3.14.1
|
|
228
|
+
Requires-Dist: multidict>=6.9.1
|
|
228
229
|
Requires-Dist: pydantic>=2.0.0
|
|
229
230
|
Requires-Dist: requests>=2.33.0
|
|
230
231
|
Requires-Dist: typing-extensions>=4.0.0
|
|
@@ -235,7 +236,7 @@ Requires-Dist: black<27.0.0,>=26.3.1; extra == 'dev'
|
|
|
235
236
|
Requires-Dist: flake8<8.0.0,>=5.0.0; extra == 'dev'
|
|
236
237
|
Requires-Dist: httpx<1.0.0,>=0.28.1; extra == 'dev'
|
|
237
238
|
Requires-Dist: isort>=5.0.0; extra == 'dev'
|
|
238
|
-
Requires-Dist: mypy<2.
|
|
239
|
+
Requires-Dist: mypy<2.5.0,>=1.0.0; extra == 'dev'
|
|
239
240
|
Requires-Dist: pytest-asyncio<2.0.0,>=1.4.0; extra == 'dev'
|
|
240
241
|
Requires-Dist: pytest-cov<8.0.0,>=5.0.0; extra == 'dev'
|
|
241
242
|
Requires-Dist: pytest-mock>=3.14.0; extra == 'dev'
|
|
@@ -281,7 +282,7 @@ Convert text to lifelike speech using AI-powered voices
|
|
|
281
282
|
|
|
282
283
|
## Installation
|
|
283
284
|
|
|
284
|
-
Python 3.11 through 3.14 is required. Python 3.8, 3.9, and 3.10 are no longer supported because they are end-of-life. The last compatible published releases are 0.3.15 for Python 3.8/3.9 and 0.4.1 for Python 3.10. Upgrade Python and recreate your virtual environment before installing 0.5.
|
|
285
|
+
Python 3.11 through 3.14 is required. Python 3.8, 3.9, and 3.10 are no longer supported because they are end-of-life. The last compatible published releases are 0.3.15 for Python 3.8/3.9 and 0.4.1 for Python 3.10. Upgrade Python and recreate your virtual environment before installing 0.5.2. Temporarily pinning an older release does not restore security support for an EOL runtime.
|
|
285
286
|
|
|
286
287
|
```bash
|
|
287
288
|
pip install typecast-python
|
|
@@ -373,7 +374,6 @@ response = client.text_to_speech(TTSRequest(
|
|
|
373
374
|
audio_tempo=1.2, # 0.5x to 2.0x
|
|
374
375
|
audio_format="mp3" # "wav" or "mp3"
|
|
375
376
|
),
|
|
376
|
-
seed=42 # for reproducible results
|
|
377
377
|
))
|
|
378
378
|
```
|
|
379
379
|
|
|
@@ -5,14 +5,14 @@ typecast/async_client.py,sha256=5Z_32D7EeRUU1K7o8Me7yZpxDiVY-omdMpBrtBumUeA,2646
|
|
|
5
5
|
typecast/client.py,sha256=umaDp0LJllVgjYnsOuLXJXBe0sxEuW0XVqATDxer5WM,25570
|
|
6
6
|
typecast/composer.py,sha256=pkRSVIv99uuAwPyOXw7KSW7NAkqvAUK4hCS5pmBb7bA,7313
|
|
7
7
|
typecast/conf.py,sha256=yfOHYZDvIshWWMriN5wE0GFPR8AX3zv4Rg2655OvA9Q,724
|
|
8
|
-
typecast/exceptions.py,sha256=
|
|
8
|
+
typecast/exceptions.py,sha256=yL6NfrLed0HSG0hY3n-tc6l0YKyZ1-v6EARZvOo91E4,1575
|
|
9
9
|
typecast/utils.py,sha256=XuNuX7gW8_CGKqZ-cv_tKlPVMPBluAYJBw2clwmjIMI,708
|
|
10
10
|
typecast/models/__init__.py,sha256=JRvzNxlYFGF4T0Mze2jYLiTXRzRqFczs0hP7j3izrMM,1343
|
|
11
11
|
typecast/models/error.py,sha256=XomIjx7jvlCjItqzJuCAT4mXC9jwTjxR8lLDUk6P8KA,152
|
|
12
12
|
typecast/models/subscription.py,sha256=pUn8_GB_03Na0eKFCzgsTkOEs5WTFu-lAdv3NYYxX94,1049
|
|
13
|
-
typecast/models/tts.py,sha256=
|
|
13
|
+
typecast/models/tts.py,sha256=xGrsgjSbyXjcZHATGWddDbcS4To4M6kUeKh2bjmTewo,17278
|
|
14
14
|
typecast/models/voices.py,sha256=L3MmlVz468_iv8t25TOAWlpQrcB9L8Wh9LGfA7sXcnc,3531
|
|
15
|
-
typecast_python-0.5.
|
|
16
|
-
typecast_python-0.5.
|
|
17
|
-
typecast_python-0.5.
|
|
18
|
-
typecast_python-0.5.
|
|
15
|
+
typecast_python-0.5.2.dist-info/METADATA,sha256=RnzV7Jy8OFqGJ-RrUPpPSOFgfgURC9ppn__57i5pfgc,26080
|
|
16
|
+
typecast_python-0.5.2.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
|
|
17
|
+
typecast_python-0.5.2.dist-info/licenses/LICENSE,sha256=HvtJ-S89uUkuYmt-OvVk4MRxmzwtbn84__qJtSrGU2Q,11348
|
|
18
|
+
typecast_python-0.5.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|