typecast-python 0.5.1__tar.gz → 0.5.3__tar.gz

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.
Files changed (19) hide show
  1. {typecast_python-0.5.1 → typecast_python-0.5.3}/PKG-INFO +10 -4
  2. {typecast_python-0.5.1 → typecast_python-0.5.3}/README.md +6 -2
  3. {typecast_python-0.5.1 → typecast_python-0.5.3}/pyproject.toml +4 -2
  4. {typecast_python-0.5.1 → typecast_python-0.5.3}/src/typecast/exceptions.py +1 -1
  5. {typecast_python-0.5.1 → typecast_python-0.5.3}/src/typecast/models/tts.py +2 -1
  6. {typecast_python-0.5.1 → typecast_python-0.5.3}/.gitignore +0 -0
  7. {typecast_python-0.5.1 → typecast_python-0.5.3}/LICENSE +0 -0
  8. {typecast_python-0.5.1 → typecast_python-0.5.3}/src/typecast/__init__.py +0 -0
  9. {typecast_python-0.5.1 → typecast_python-0.5.3}/src/typecast/_user_agent.py +0 -0
  10. {typecast_python-0.5.1 → typecast_python-0.5.3}/src/typecast/_voice_clone.py +0 -0
  11. {typecast_python-0.5.1 → typecast_python-0.5.3}/src/typecast/async_client.py +0 -0
  12. {typecast_python-0.5.1 → typecast_python-0.5.3}/src/typecast/client.py +0 -0
  13. {typecast_python-0.5.1 → typecast_python-0.5.3}/src/typecast/composer.py +0 -0
  14. {typecast_python-0.5.1 → typecast_python-0.5.3}/src/typecast/conf.py +0 -0
  15. {typecast_python-0.5.1 → typecast_python-0.5.3}/src/typecast/models/__init__.py +0 -0
  16. {typecast_python-0.5.1 → typecast_python-0.5.3}/src/typecast/models/error.py +0 -0
  17. {typecast_python-0.5.1 → typecast_python-0.5.3}/src/typecast/models/subscription.py +0 -0
  18. {typecast_python-0.5.1 → typecast_python-0.5.3}/src/typecast/models/voices.py +0 -0
  19. {typecast_python-0.5.1 → typecast_python-0.5.3}/src/typecast/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: typecast-python
3
- Version: 0.5.1
3
+ Version: 0.5.3
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,8 @@ 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: certifi>=2026.10.19
229
+ Requires-Dist: multidict>=6.9.1
228
230
  Requires-Dist: pydantic>=2.0.0
229
231
  Requires-Dist: requests>=2.33.0
230
232
  Requires-Dist: typing-extensions>=4.0.0
@@ -235,7 +237,7 @@ Requires-Dist: black<27.0.0,>=26.3.1; extra == 'dev'
235
237
  Requires-Dist: flake8<8.0.0,>=5.0.0; extra == 'dev'
236
238
  Requires-Dist: httpx<1.0.0,>=0.28.1; extra == 'dev'
237
239
  Requires-Dist: isort>=5.0.0; extra == 'dev'
238
- Requires-Dist: mypy<2.4.0,>=1.0.0; extra == 'dev'
240
+ Requires-Dist: mypy<2.5.0,>=1.0.0; extra == 'dev'
239
241
  Requires-Dist: pytest-asyncio<2.0.0,>=1.4.0; extra == 'dev'
240
242
  Requires-Dist: pytest-cov<8.0.0,>=5.0.0; extra == 'dev'
241
243
  Requires-Dist: pytest-mock>=3.14.0; extra == 'dev'
@@ -281,7 +283,7 @@ Convert text to lifelike speech using AI-powered voices
281
283
 
282
284
  ## Installation
283
285
 
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.1. Temporarily pinning an older release does not restore security support for an EOL runtime.
286
+ 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
287
 
286
288
  ```bash
287
289
  pip install typecast-python
@@ -315,7 +317,7 @@ print(f"Saved: output.wav ({response.duration}s)")
315
317
 
316
318
  | Feature | Description |
317
319
  |---------|-------------|
318
- | **Multiple Models** | Support for `ssfm-v21` and `ssfm-v30` AI voice models |
320
+ | **Multiple Models** | `ssfm-v21`, `ssfm-v30`, and `ssfm-v31`; check voice support |
319
321
  | **37 Languages** | English, Korean, Japanese, Chinese, Spanish, and 32 more |
320
322
  | **Emotion Control** | Preset emotions or smart context-aware inference |
321
323
  | **Audio Customization** | Volume, pitch, tempo, and format (WAV/MP3) |
@@ -345,6 +347,10 @@ client = Typecast(
345
347
 
346
348
  ### Text to Speech
347
349
 
350
+ Choose `ssfm-v21`, `ssfm-v30`, or `ssfm-v31` through the request's model setting.
351
+ For SSFM 3.1, use `TTSModel.SSFM_V31` and a compatible voice from `GET /v3/voices?model=ssfm-v31`.
352
+ The voice's `models` entry lists its supported emotions.
353
+
348
354
  #### Basic Usage
349
355
 
350
356
  ```python
@@ -37,7 +37,7 @@ Convert text to lifelike speech using AI-powered voices
37
37
 
38
38
  ## Installation
39
39
 
40
- 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.1. Temporarily pinning an older release does not restore security support for an EOL runtime.
40
+ 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.
41
41
 
42
42
  ```bash
43
43
  pip install typecast-python
@@ -71,7 +71,7 @@ print(f"Saved: output.wav ({response.duration}s)")
71
71
 
72
72
  | Feature | Description |
73
73
  |---------|-------------|
74
- | **Multiple Models** | Support for `ssfm-v21` and `ssfm-v30` AI voice models |
74
+ | **Multiple Models** | `ssfm-v21`, `ssfm-v30`, and `ssfm-v31`; check voice support |
75
75
  | **37 Languages** | English, Korean, Japanese, Chinese, Spanish, and 32 more |
76
76
  | **Emotion Control** | Preset emotions or smart context-aware inference |
77
77
  | **Audio Customization** | Volume, pitch, tempo, and format (WAV/MP3) |
@@ -101,6 +101,10 @@ client = Typecast(
101
101
 
102
102
  ### Text to Speech
103
103
 
104
+ Choose `ssfm-v21`, `ssfm-v30`, or `ssfm-v31` through the request's model setting.
105
+ For SSFM 3.1, use `TTSModel.SSFM_V31` and a compatible voice from `GET /v3/voices?model=ssfm-v31`.
106
+ The voice's `models` entry lists its supported emotions.
107
+
104
108
  #### Basic Usage
105
109
 
106
110
  ```python
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "typecast-python"
7
- version = "0.5.1"
7
+ version = "0.5.3"
8
8
  description = "Official Typecast Python SDK - Convert text to lifelike speech using AI-powered voices"
9
9
  authors = [
10
10
  {name = "Neosapience", email = "help@typecast.ai"}
@@ -31,7 +31,9 @@ classifiers = [
31
31
  ]
32
32
  dependencies = [
33
33
  "aiohttp>=3.14.1",
34
+ "multidict>=6.9.1",
34
35
  "requests>=2.33.0",
36
+ "certifi>=2026.10.19",
35
37
  "urllib3>=2.8.0",
36
38
  "pydantic>=2.0.0",
37
39
  "typing-extensions>=4.0.0",
@@ -47,7 +49,7 @@ dev = [
47
49
  "httpx>=0.28.1,<1.0.0",
48
50
  "black>=26.3.1,<27.0.0",
49
51
  "flake8>=5.0.0,<8.0.0",
50
- "mypy>=1.0.0,<2.4.0",
52
+ "mypy>=1.0.0,<2.5.0",
51
53
  "isort>=5.0.0",
52
54
  ]
53
55
 
@@ -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)
@@ -9,6 +9,7 @@ from pydantic import BaseModel, ConfigDict, Field, model_validator
9
9
  class TTSModel(str, Enum):
10
10
  SSFM_V21 = "ssfm-v21"
11
11
  SSFM_V30 = "ssfm-v30"
12
+ SSFM_V31 = "ssfm-v31"
12
13
 
13
14
 
14
15
  class LanguageCode(str, Enum):
@@ -350,7 +351,7 @@ def _group_into_cues(
350
351
  Returns List[(text, start, end)] tuples.
351
352
  """
352
353
  cues = []
353
- cur_text_parts = []
354
+ cur_text_parts: list[str] = []
354
355
  cur_start = None
355
356
  last_end = None
356
357
 
File without changes