typecast-python 0.5.2__tar.gz → 0.5.4__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.2 → typecast_python-0.5.4}/PKG-INFO +7 -2
  2. {typecast_python-0.5.2 → typecast_python-0.5.4}/README.md +5 -1
  3. {typecast_python-0.5.2 → typecast_python-0.5.4}/pyproject.toml +2 -1
  4. {typecast_python-0.5.2 → typecast_python-0.5.4}/src/typecast/_user_agent.py +2 -2
  5. {typecast_python-0.5.2 → typecast_python-0.5.4}/src/typecast/async_client.py +1 -1
  6. {typecast_python-0.5.2 → typecast_python-0.5.4}/src/typecast/client.py +1 -1
  7. {typecast_python-0.5.2 → typecast_python-0.5.4}/src/typecast/models/tts.py +1 -0
  8. {typecast_python-0.5.2 → typecast_python-0.5.4}/.gitignore +0 -0
  9. {typecast_python-0.5.2 → typecast_python-0.5.4}/LICENSE +0 -0
  10. {typecast_python-0.5.2 → typecast_python-0.5.4}/src/typecast/__init__.py +0 -0
  11. {typecast_python-0.5.2 → typecast_python-0.5.4}/src/typecast/_voice_clone.py +0 -0
  12. {typecast_python-0.5.2 → typecast_python-0.5.4}/src/typecast/composer.py +0 -0
  13. {typecast_python-0.5.2 → typecast_python-0.5.4}/src/typecast/conf.py +0 -0
  14. {typecast_python-0.5.2 → typecast_python-0.5.4}/src/typecast/exceptions.py +0 -0
  15. {typecast_python-0.5.2 → typecast_python-0.5.4}/src/typecast/models/__init__.py +0 -0
  16. {typecast_python-0.5.2 → typecast_python-0.5.4}/src/typecast/models/error.py +0 -0
  17. {typecast_python-0.5.2 → typecast_python-0.5.4}/src/typecast/models/subscription.py +0 -0
  18. {typecast_python-0.5.2 → typecast_python-0.5.4}/src/typecast/models/voices.py +0 -0
  19. {typecast_python-0.5.2 → typecast_python-0.5.4}/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.2
3
+ Version: 0.5.4
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: certifi>=2026.10.19
228
229
  Requires-Dist: multidict>=6.9.1
229
230
  Requires-Dist: pydantic>=2.0.0
230
231
  Requires-Dist: requests>=2.33.0
@@ -316,7 +317,7 @@ print(f"Saved: output.wav ({response.duration}s)")
316
317
 
317
318
  | Feature | Description |
318
319
  |---------|-------------|
319
- | **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 |
320
321
  | **37 Languages** | English, Korean, Japanese, Chinese, Spanish, and 32 more |
321
322
  | **Emotion Control** | Preset emotions or smart context-aware inference |
322
323
  | **Audio Customization** | Volume, pitch, tempo, and format (WAV/MP3) |
@@ -346,6 +347,10 @@ client = Typecast(
346
347
 
347
348
  ### Text to Speech
348
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
+
349
354
  #### Basic Usage
350
355
 
351
356
  ```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.2"
7
+ version = "0.5.4"
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"}
@@ -33,6 +33,7 @@ dependencies = [
33
33
  "aiohttp>=3.14.1",
34
34
  "multidict>=6.9.1",
35
35
  "requests>=2.33.0",
36
+ "certifi>=2026.10.19",
36
37
  "urllib3>=2.8.0",
37
38
  "pydantic>=2.0.0",
38
39
  "typing-extensions>=4.0.0",
@@ -19,11 +19,11 @@ def attribution_suffix(
19
19
  if (
20
20
  not isinstance(source, str)
21
21
  or not isinstance(generated_by, str)
22
- or source not in {"llms", "skill", "api-page", "api-docs"}
22
+ or source not in {"llms", "skill", "api-page", "api-docs", "chatgpt-plugin"}
23
23
  or not generated_by
24
24
  ):
25
25
  raise ValueError(
26
- "source (llms, skill, api-page, or api-docs) and generated_by must be provided together"
26
+ "source (llms, skill, api-page, api-docs, or chatgpt-plugin) and generated_by must be provided together"
27
27
  )
28
28
  if not _GENERATED_BY_PATTERN.fullmatch(generated_by):
29
29
  raise ValueError("generated_by must be a lowercase token of at most 32 characters")
@@ -88,7 +88,7 @@ class AsyncTypecast:
88
88
  __aenter__ will not create a new session and __aexit__ will not close it
89
89
  (the caller owns its lifecycle). Auth headers (`X-API-KEY`, `User-Agent`)
90
90
  are attached per-request via `_request_headers()`.
91
- source: Integration source: 'llms', 'skill', 'api-page', or 'api-docs'.
91
+ source: Integration source: 'llms', 'skill', 'api-page', 'api-docs', or 'chatgpt-plugin'.
92
92
  generated_by: Lowercase token identifying the coding agent.
93
93
 
94
94
  Raises:
@@ -120,7 +120,7 @@ class Typecast:
120
120
  the client will not create a new session nor close it; auth headers
121
121
  (`X-API-KEY`, `User-Agent`) are attached per-request via
122
122
  `_request_headers()`.
123
- source: Integration source: 'llms', 'skill', 'api-page', or 'api-docs'.
123
+ source: Integration source: 'llms', 'skill', 'api-page', 'api-docs', or 'chatgpt-plugin'.
124
124
  generated_by: Lowercase token identifying the coding agent.
125
125
 
126
126
  Raises:
@@ -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):
File without changes