typecast-python 0.3.5__py3-none-any.whl → 0.3.6__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/async_client.py +1 -2
- typecast/client.py +1 -2
- typecast/models/tts.py +9 -4
- {typecast_python-0.3.5.dist-info → typecast_python-0.3.6.dist-info}/METADATA +1 -1
- {typecast_python-0.3.5.dist-info → typecast_python-0.3.6.dist-info}/RECORD +7 -7
- {typecast_python-0.3.5.dist-info → typecast_python-0.3.6.dist-info}/WHEEL +0 -0
- {typecast_python-0.3.5.dist-info → typecast_python-0.3.6.dist-info}/licenses/LICENSE +0 -0
typecast/async_client.py
CHANGED
|
@@ -191,8 +191,7 @@ class AsyncTypecast:
|
|
|
191
191
|
|
|
192
192
|
Args:
|
|
193
193
|
request: Streaming TTS request. Uses `OutputStream`, which omits
|
|
194
|
-
`volume`
|
|
195
|
-
endpoint).
|
|
194
|
+
`volume` (not supported by the streaming endpoint).
|
|
196
195
|
chunk_size: Maximum bytes returned per yielded chunk.
|
|
197
196
|
|
|
198
197
|
Yields:
|
typecast/client.py
CHANGED
|
@@ -225,8 +225,7 @@ class Typecast:
|
|
|
225
225
|
|
|
226
226
|
Args:
|
|
227
227
|
request: Streaming TTS request. Uses `OutputStream`, which omits
|
|
228
|
-
`volume`
|
|
229
|
-
endpoint).
|
|
228
|
+
`volume` (not supported by the streaming endpoint).
|
|
230
229
|
chunk_size: Maximum bytes returned per yielded chunk.
|
|
231
230
|
|
|
232
231
|
Yields:
|
typecast/models/tts.py
CHANGED
|
@@ -183,9 +183,8 @@ class TTSResponse(BaseModel):
|
|
|
183
183
|
class OutputStream(BaseModel):
|
|
184
184
|
"""Audio output settings for streaming mode.
|
|
185
185
|
|
|
186
|
-
Streaming mode does not support `volume
|
|
187
|
-
|
|
188
|
-
Passing either field raises a validation error so misuse fails fast.
|
|
186
|
+
Streaming mode does not support `volume`, but it supports `target_lufs`
|
|
187
|
+
for absolute loudness normalization.
|
|
189
188
|
"""
|
|
190
189
|
|
|
191
190
|
model_config = ConfigDict(extra="forbid")
|
|
@@ -195,12 +194,18 @@ class OutputStream(BaseModel):
|
|
|
195
194
|
audio_format: Optional[str] = Field(
|
|
196
195
|
default="wav", description="Audio format", examples=["wav", "mp3"]
|
|
197
196
|
)
|
|
197
|
+
target_lufs: Optional[float] = Field(
|
|
198
|
+
default=None,
|
|
199
|
+
ge=-70.0,
|
|
200
|
+
le=0.0,
|
|
201
|
+
description="Target loudness in LUFS for streaming output normalization (-70 to 0).",
|
|
202
|
+
)
|
|
198
203
|
|
|
199
204
|
|
|
200
205
|
class TTSRequestStream(BaseModel):
|
|
201
206
|
"""Request body for `POST /v1/text-to-speech/stream`.
|
|
202
207
|
|
|
203
|
-
Mirrors `TTSRequest` but uses `OutputStream` (no volume
|
|
208
|
+
Mirrors `TTSRequest` but uses `OutputStream` (no volume).
|
|
204
209
|
"""
|
|
205
210
|
|
|
206
211
|
model_config = ConfigDict(json_schema_extra={"exclude_none": True})
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: typecast-python
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.6
|
|
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
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
typecast/__init__.py,sha256=3pdJqNkXCZ7svzqab4sBR_qwyoM5E2sPjfuci1g1Ub8,1047
|
|
2
2
|
typecast/_voice_clone.py,sha256=TN2tbB3b5lC5uFCBnbERhz37bNJlbv6VZ-vj70EfTs4,3464
|
|
3
|
-
typecast/async_client.py,sha256=
|
|
4
|
-
typecast/client.py,sha256=
|
|
3
|
+
typecast/async_client.py,sha256=OwCqOUa82xvcSTbMYkRHsw_QK828gshrOV7IZotV8Ig,18611
|
|
4
|
+
typecast/client.py,sha256=befvVQUzZXJ0E_almTW9aKyi2HvcjrdDirucbdd2E6U,17800
|
|
5
5
|
typecast/composer.py,sha256=r1kpRGlSJ1s4C1PkE7yIpGwnKtxYfIdFSLWaf8v1RAQ,9422
|
|
6
6
|
typecast/conf.py,sha256=yfOHYZDvIshWWMriN5wE0GFPR8AX3zv4Rg2655OvA9Q,724
|
|
7
7
|
typecast/exceptions.py,sha256=Y0ZzYebe8zOSOSAHbXfKR0G_RJgdmZXxi15Z7ZxPLIk,1568
|
|
@@ -9,9 +9,9 @@ typecast/utils.py,sha256=XuNuX7gW8_CGKqZ-cv_tKlPVMPBluAYJBw2clwmjIMI,708
|
|
|
9
9
|
typecast/models/__init__.py,sha256=UEPUjg86fpCMXUvAzcNgxSPPhuPwCY9aQbzK3w90Fj0,1203
|
|
10
10
|
typecast/models/error.py,sha256=XomIjx7jvlCjItqzJuCAT4mXC9jwTjxR8lLDUk6P8KA,152
|
|
11
11
|
typecast/models/subscription.py,sha256=EIaAAo3cCRw8LYT_O6D9AVwxqIHrWCijzl4UTx7FZB8,894
|
|
12
|
-
typecast/models/tts.py,sha256=
|
|
12
|
+
typecast/models/tts.py,sha256=W2Bp9M-xPJPODlk89P9CnLA2fwb__4SR4yoMkG_O8kA,16453
|
|
13
13
|
typecast/models/voices.py,sha256=-EXP35jDy7_G30k5bDnVrFJHp6svEDTA5jJ8oHAgXNQ,2310
|
|
14
|
-
typecast_python-0.3.
|
|
15
|
-
typecast_python-0.3.
|
|
16
|
-
typecast_python-0.3.
|
|
17
|
-
typecast_python-0.3.
|
|
14
|
+
typecast_python-0.3.6.dist-info/METADATA,sha256=lK8mTT7BBgfvCThmHehW0tCutsi8_yIPF6U6QoHmUX4,25530
|
|
15
|
+
typecast_python-0.3.6.dist-info/WHEEL,sha256=mffPy8wBnZQn2VnJUU5jE99KsxaSfiyMHV9Yt0aLVxs,87
|
|
16
|
+
typecast_python-0.3.6.dist-info/licenses/LICENSE,sha256=HvtJ-S89uUkuYmt-OvVk4MRxmzwtbn84__qJtSrGU2Q,11348
|
|
17
|
+
typecast_python-0.3.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|