cartesia 2.0.5__py3-none-any.whl → 2.0.7__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.
- cartesia/__init__.py +22 -0
- cartesia/auth/client.py +8 -8
- cartesia/auth/requests/token_grant.py +7 -1
- cartesia/auth/requests/token_request.py +3 -3
- cartesia/auth/types/token_grant.py +7 -2
- cartesia/auth/types/token_request.py +3 -3
- cartesia/core/client_wrapper.py +1 -1
- cartesia/infill/client.py +0 -8
- cartesia/stt/__init__.py +6 -0
- cartesia/stt/_async_websocket.py +81 -72
- cartesia/stt/_websocket.py +42 -20
- cartesia/stt/client.py +450 -0
- cartesia/stt/requests/__init__.py +2 -0
- cartesia/stt/requests/streaming_transcription_response.py +2 -0
- cartesia/stt/requests/transcript_message.py +8 -1
- cartesia/stt/requests/transcription_response.py +8 -1
- cartesia/stt/requests/transcription_word.py +20 -0
- cartesia/stt/socket_client.py +52 -109
- cartesia/stt/types/__init__.py +4 -0
- cartesia/stt/types/streaming_transcription_response.py +2 -0
- cartesia/stt/types/stt_encoding.py +3 -1
- cartesia/stt/types/timestamp_granularity.py +5 -0
- cartesia/stt/types/transcript_message.py +7 -1
- cartesia/stt/types/transcription_response.py +7 -1
- cartesia/stt/types/transcription_word.py +32 -0
- cartesia/tts/__init__.py +16 -0
- cartesia/tts/client.py +63 -8
- cartesia/tts/requests/__init__.py +8 -0
- cartesia/tts/requests/experimental_model_controls.py +17 -0
- cartesia/tts/requests/generation_config.py +23 -0
- cartesia/tts/requests/generation_request.py +4 -4
- cartesia/tts/requests/sse_output_format.py +11 -0
- cartesia/tts/requests/tts_request.py +2 -0
- cartesia/tts/requests/ttssse_request.py +47 -0
- cartesia/tts/requests/web_socket_chunk_response.py +0 -3
- cartesia/tts/requests/web_socket_response.py +1 -2
- cartesia/tts/requests/web_socket_tts_request.py +9 -1
- cartesia/tts/types/__init__.py +8 -0
- cartesia/tts/types/experimental_model_controls.py +28 -0
- cartesia/tts/types/generation_config.py +34 -0
- cartesia/tts/types/generation_request.py +4 -4
- cartesia/tts/types/sse_output_format.py +22 -0
- cartesia/tts/types/tts_request.py +2 -0
- cartesia/tts/types/ttssse_request.py +58 -0
- cartesia/tts/types/web_socket_chunk_response.py +1 -3
- cartesia/tts/types/web_socket_response.py +1 -2
- cartesia/tts/types/web_socket_tts_request.py +11 -3
- cartesia/voice_changer/client.py +0 -8
- cartesia/voice_changer/requests/streaming_response.py +0 -2
- cartesia/voice_changer/types/streaming_response.py +0 -2
- cartesia/voices/client.py +0 -12
- cartesia-2.0.7.dist-info/LICENSE +201 -0
- {cartesia-2.0.5.dist-info → cartesia-2.0.7.dist-info}/METADATA +116 -17
- {cartesia-2.0.5.dist-info → cartesia-2.0.7.dist-info}/RECORD +55 -42
- {cartesia-2.0.5.dist-info → cartesia-2.0.7.dist-info}/WHEEL +1 -1
@@ -0,0 +1,201 @@
|
|
1
|
+
Apache License
|
2
|
+
Version 2.0, January 2004
|
3
|
+
http://www.apache.org/licenses/
|
4
|
+
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
6
|
+
|
7
|
+
1. Definitions.
|
8
|
+
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
11
|
+
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
13
|
+
the copyright owner that is granting the License.
|
14
|
+
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
16
|
+
other entities that control, are controlled by, or are under common
|
17
|
+
control with that entity. For the purposes of this definition,
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
19
|
+
direction or management of such entity, whether by contract or
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
22
|
+
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
24
|
+
exercising permissions granted by this License.
|
25
|
+
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
27
|
+
including but not limited to software source code, documentation
|
28
|
+
source, and configuration files.
|
29
|
+
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
31
|
+
transformation or translation of a Source form, including but
|
32
|
+
not limited to compiled object code, generated documentation,
|
33
|
+
and conversions to other media types.
|
34
|
+
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
36
|
+
Object form, made available under the License, as indicated by a
|
37
|
+
copyright notice that is included in or attached to the work
|
38
|
+
(an example is provided in the Appendix below).
|
39
|
+
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
46
|
+
the Work and Derivative Works thereof.
|
47
|
+
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
49
|
+
the original version of the Work and any modifications or additions
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
61
|
+
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
64
|
+
subsequently incorporated within the Work.
|
65
|
+
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
72
|
+
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
78
|
+
where such license applies only to those patent claims licensable
|
79
|
+
by such Contributor that are necessarily infringed by their
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
82
|
+
institute patent litigation against any entity (including a
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
85
|
+
or contributory patent infringement, then any patent licenses
|
86
|
+
granted to You under this License for that Work shall terminate
|
87
|
+
as of the date such litigation is filed.
|
88
|
+
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
91
|
+
modifications, and in Source or Object form, provided that You
|
92
|
+
meet the following conditions:
|
93
|
+
|
94
|
+
(a) You must give any other recipients of the Work or
|
95
|
+
Derivative Works a copy of this License; and
|
96
|
+
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
98
|
+
stating that You changed the files; and
|
99
|
+
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
102
|
+
attribution notices from the Source form of the Work,
|
103
|
+
excluding those notices that do not pertain to any part of
|
104
|
+
the Derivative Works; and
|
105
|
+
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
108
|
+
include a readable copy of the attribution notices contained
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
111
|
+
of the following places: within a NOTICE text file distributed
|
112
|
+
as part of the Derivative Works; within the Source form or
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
114
|
+
within a display generated by the Derivative Works, if and
|
115
|
+
wherever such third-party notices normally appear. The contents
|
116
|
+
of the NOTICE file are for informational purposes only and
|
117
|
+
do not modify the License. You may add Your own attribution
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
120
|
+
that such additional attribution notices cannot be construed
|
121
|
+
as modifying the License.
|
122
|
+
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
124
|
+
may provide additional or different license terms and conditions
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
128
|
+
the conditions stated in this License.
|
129
|
+
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
133
|
+
this License, without any additional terms or conditions.
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
135
|
+
the terms of any separate license agreement you may have executed
|
136
|
+
with Licensor regarding such Contributions.
|
137
|
+
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
140
|
+
except as required for reasonable and customary use in describing the
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
142
|
+
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
152
|
+
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
158
|
+
incidental, or consequential damages of any character arising as a
|
159
|
+
result of this License or out of the use or inability to use the
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
162
|
+
other commercial damages or losses), even if such Contributor
|
163
|
+
has been advised of the possibility of such damages.
|
164
|
+
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
168
|
+
or other liability obligations and/or rights consistent with this
|
169
|
+
License. However, in accepting such obligations, You may act only
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
174
|
+
of your accepting any such warranty or additional liability.
|
175
|
+
|
176
|
+
END OF TERMS AND CONDITIONS
|
177
|
+
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
179
|
+
|
180
|
+
To apply the Apache License to your work, attach the following
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
182
|
+
replaced with your own identifying information. (Don't include
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
184
|
+
comment syntax for the file format. We also recommend that a
|
185
|
+
file or class name and description of purpose be included on the
|
186
|
+
same "printed page" as the copyright notice for easier
|
187
|
+
identification within third-party archives.
|
188
|
+
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
190
|
+
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
192
|
+
you may not use this file except in compliance with the License.
|
193
|
+
You may obtain a copy of the License at
|
194
|
+
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
196
|
+
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
200
|
+
See the License for the specific language governing permissions and
|
201
|
+
limitations under the License.
|
@@ -1,6 +1,6 @@
|
|
1
|
-
Metadata-Version: 2.
|
1
|
+
Metadata-Version: 2.3
|
2
2
|
Name: cartesia
|
3
|
-
Version: 2.0.
|
3
|
+
Version: 2.0.7
|
4
4
|
Summary:
|
5
5
|
Requires-Python: >=3.8,<4.0
|
6
6
|
Classifier: Intended Audience :: Developers
|
@@ -16,6 +16,7 @@ Classifier: Programming Language :: Python :: 3.9
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.10
|
17
17
|
Classifier: Programming Language :: Python :: 3.11
|
18
18
|
Classifier: Programming Language :: Python :: 3.12
|
19
|
+
Classifier: Programming Language :: Python :: 3.13
|
19
20
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
20
21
|
Classifier: Typing :: Typed
|
21
22
|
Requires-Dist: aiohttp (>=3.10.10)
|
@@ -28,6 +29,7 @@ Requires-Dist: pydantic-core (>=2.18.2,<3.0.0)
|
|
28
29
|
Requires-Dist: pydub (>=0.25.1)
|
29
30
|
Requires-Dist: typing_extensions (>=4.0.0)
|
30
31
|
Requires-Dist: websockets (>=10.4)
|
32
|
+
Project-URL: Repository, https://github.com/cartesia-ai/cartesia-python
|
31
33
|
Description-Content-Type: text/markdown
|
32
34
|
|
33
35
|
# Cartesia Python Library
|
@@ -230,12 +232,14 @@ with open("path/to/audio.wav", "rb") as f:
|
|
230
232
|
chunk_size = 640
|
231
233
|
audio_chunks = [audio_data[i:i+chunk_size] for i in range(0, len(audio_data), chunk_size)]
|
232
234
|
|
233
|
-
# Create websocket connection
|
235
|
+
# Create websocket connection with endpointing parameters
|
234
236
|
ws = client.stt.websocket(
|
235
|
-
model="ink-whisper",
|
236
|
-
language="en",
|
237
|
-
encoding="pcm_s16le",
|
238
|
-
sample_rate=16000,
|
237
|
+
model="ink-whisper", # Model (required)
|
238
|
+
language="en", # Language of your audio (required)
|
239
|
+
encoding="pcm_s16le", # Audio encoding format (required)
|
240
|
+
sample_rate=16000, # Audio sample rate (required)
|
241
|
+
min_volume=0.1, # Volume threshold for voice activity detection
|
242
|
+
max_silence_duration_secs=0.4, # Maximum silence duration before endpointing
|
239
243
|
)
|
240
244
|
|
241
245
|
# Send audio chunks (streaming approach)
|
@@ -246,10 +250,20 @@ for chunk in audio_chunks:
|
|
246
250
|
ws.send("finalize")
|
247
251
|
ws.send("done")
|
248
252
|
|
249
|
-
# Receive transcription results
|
253
|
+
# Receive transcription results with word-level timestamps
|
250
254
|
for result in ws.receive():
|
251
255
|
if result['type'] == 'transcript':
|
252
256
|
print(f"Transcription: {result['text']}")
|
257
|
+
|
258
|
+
# Handle word-level timestamps if available
|
259
|
+
if 'words' in result and result['words']:
|
260
|
+
print("Word-level timestamps:")
|
261
|
+
for word_info in result['words']:
|
262
|
+
word = word_info['word']
|
263
|
+
start = word_info['start']
|
264
|
+
end = word_info['end']
|
265
|
+
print(f" '{word}': {start:.2f}s - {end:.2f}s")
|
266
|
+
|
253
267
|
if result['is_final']:
|
254
268
|
print("Final result received")
|
255
269
|
elif result['type'] == 'done':
|
@@ -270,17 +284,20 @@ from cartesia import AsyncCartesia
|
|
270
284
|
async def streaming_stt_example():
|
271
285
|
"""
|
272
286
|
Advanced async STT example for real-time streaming applications.
|
273
|
-
This example simulates streaming audio processing with proper error handling
|
287
|
+
This example simulates streaming audio processing with proper error handling
|
288
|
+
and demonstrates the new endpointing and word timestamp features.
|
274
289
|
"""
|
275
290
|
client = AsyncCartesia(api_key=os.getenv("CARTESIA_API_KEY"))
|
276
291
|
|
277
292
|
try:
|
278
|
-
# Create websocket connection
|
293
|
+
# Create websocket connection with voice activity detection
|
279
294
|
ws = await client.stt.websocket(
|
280
|
-
model="ink-whisper",
|
281
|
-
language="en",
|
282
|
-
encoding="pcm_s16le",
|
283
|
-
sample_rate=16000,
|
295
|
+
model="ink-whisper", # Model (required)
|
296
|
+
language="en", # Language of your audio (required)
|
297
|
+
encoding="pcm_s16le", # Audio encoding format (required)
|
298
|
+
sample_rate=16000, # Audio sample rate (required)
|
299
|
+
min_volume=0.15, # Volume threshold for voice activity detection
|
300
|
+
max_silence_duration_secs=0.3, # Maximum silence duration before endpointing
|
284
301
|
)
|
285
302
|
|
286
303
|
# Simulate streaming audio data (replace with your audio source)
|
@@ -319,8 +336,9 @@ async def streaming_stt_example():
|
|
319
336
|
print(f"Error sending audio: {e}")
|
320
337
|
|
321
338
|
async def receive_transcripts():
|
322
|
-
"""Receive and process transcription results"""
|
339
|
+
"""Receive and process transcription results with word timestamps"""
|
323
340
|
full_transcript = ""
|
341
|
+
all_word_timestamps = []
|
324
342
|
|
325
343
|
try:
|
326
344
|
async for result in ws.receive():
|
@@ -328,6 +346,19 @@ async def streaming_stt_example():
|
|
328
346
|
text = result['text']
|
329
347
|
is_final = result['is_final']
|
330
348
|
|
349
|
+
# Handle word-level timestamps
|
350
|
+
if 'words' in result and result['words']:
|
351
|
+
word_timestamps = result['words']
|
352
|
+
all_word_timestamps.extend(word_timestamps)
|
353
|
+
|
354
|
+
if is_final:
|
355
|
+
print("Word-level timestamps:")
|
356
|
+
for word_info in word_timestamps:
|
357
|
+
word = word_info['word']
|
358
|
+
start = word_info['start']
|
359
|
+
end = word_info['end']
|
360
|
+
print(f" '{word}': {start:.2f}s - {end:.2f}s")
|
361
|
+
|
331
362
|
if is_final:
|
332
363
|
# Final result - this text won't change
|
333
364
|
full_transcript += text + " "
|
@@ -343,17 +374,18 @@ async def streaming_stt_example():
|
|
343
374
|
except Exception as e:
|
344
375
|
print(f"Error receiving transcripts: {e}")
|
345
376
|
|
346
|
-
return full_transcript.strip()
|
377
|
+
return full_transcript.strip(), all_word_timestamps
|
347
378
|
|
348
379
|
print("Starting streaming STT...")
|
349
380
|
|
350
381
|
# Use asyncio.gather to run audio sending and transcript receiving concurrently
|
351
|
-
_, final_transcript = await asyncio.gather(
|
382
|
+
_, (final_transcript, word_timestamps) = await asyncio.gather(
|
352
383
|
send_audio(),
|
353
384
|
receive_transcripts()
|
354
385
|
)
|
355
386
|
|
356
387
|
print(f"\nComplete transcript: {final_transcript}")
|
388
|
+
print(f"Total words with timestamps: {len(word_timestamps)}")
|
357
389
|
|
358
390
|
# Clean up
|
359
391
|
await ws.close()
|
@@ -368,6 +400,73 @@ if __name__ == "__main__":
|
|
368
400
|
asyncio.run(streaming_stt_example())
|
369
401
|
```
|
370
402
|
|
403
|
+
## Batch Speech-to-Text (STT)
|
404
|
+
|
405
|
+
For processing pre-recorded audio files, use the batch STT API which supports uploading complete audio files for transcription:
|
406
|
+
|
407
|
+
```python
|
408
|
+
from cartesia import Cartesia
|
409
|
+
import os
|
410
|
+
|
411
|
+
client = Cartesia(api_key=os.getenv("CARTESIA_API_KEY"))
|
412
|
+
|
413
|
+
# Transcribe an audio file with word-level timestamps
|
414
|
+
with open("path/to/audio.wav", "rb") as audio_file:
|
415
|
+
response = client.stt.transcribe(
|
416
|
+
file=audio_file, # Audio file to transcribe
|
417
|
+
model="ink-whisper", # STT model (required)
|
418
|
+
language="en", # Language of the audio (optional)
|
419
|
+
timestamp_granularities=["word"], # Include word-level timestamps (optional)
|
420
|
+
encoding="pcm_s16le", # Audio encoding (optional)
|
421
|
+
sample_rate=16000, # Audio sample rate (optional)
|
422
|
+
)
|
423
|
+
|
424
|
+
# Access transcription results
|
425
|
+
print(f"Transcribed text: {response.text}")
|
426
|
+
print(f"Audio duration: {response.duration:.2f} seconds")
|
427
|
+
|
428
|
+
# Process word-level timestamps if requested
|
429
|
+
if response.words:
|
430
|
+
print("\nWord-level timestamps:")
|
431
|
+
for word_info in response.words:
|
432
|
+
word = word_info.word
|
433
|
+
start = word_info.start
|
434
|
+
end = word_info.end
|
435
|
+
print(f" '{word}': {start:.2f}s - {end:.2f}s")
|
436
|
+
```
|
437
|
+
|
438
|
+
### Async Batch STT
|
439
|
+
|
440
|
+
```python
|
441
|
+
import asyncio
|
442
|
+
from cartesia import AsyncCartesia
|
443
|
+
import os
|
444
|
+
|
445
|
+
async def transcribe_file():
|
446
|
+
client = AsyncCartesia(api_key=os.getenv("CARTESIA_API_KEY"))
|
447
|
+
|
448
|
+
with open("path/to/audio.wav", "rb") as audio_file:
|
449
|
+
response = await client.stt.transcribe(
|
450
|
+
file=audio_file,
|
451
|
+
model="ink-whisper",
|
452
|
+
language="en",
|
453
|
+
timestamp_granularities=["word"],
|
454
|
+
)
|
455
|
+
|
456
|
+
print(f"Transcribed text: {response.text}")
|
457
|
+
|
458
|
+
# Process word timestamps
|
459
|
+
if response.words:
|
460
|
+
for word_info in response.words:
|
461
|
+
print(f"'{word_info.word}': {word_info.start:.2f}s - {word_info.end:.2f}s")
|
462
|
+
|
463
|
+
await client.close()
|
464
|
+
|
465
|
+
asyncio.run(transcribe_file())
|
466
|
+
```
|
467
|
+
|
468
|
+
> **Note:** Batch STT also supports OpenAI's audio transcriptions format for easy migration from OpenAI Whisper. See our [migration guide](https://docs.cartesia.ai/api-reference/stt/migrate-from-open-ai) for details.
|
469
|
+
|
371
470
|
## Voices
|
372
471
|
|
373
472
|
List all available Voices with `client.voices.list`, which returns an iterable that automatically handles pagination:
|
@@ -1,4 +1,4 @@
|
|
1
|
-
cartesia/__init__.py,sha256=
|
1
|
+
cartesia/__init__.py,sha256=lBkEFiaSL1JdrAqnRXLlVrjbhMyU2vkSzbIOH8tzptI,10555
|
2
2
|
cartesia/api_status/__init__.py,sha256=_dHNLdknrBjxHtU2PvLumttJM-JTQhJQqhhAQkLqt_U,168
|
3
3
|
cartesia/api_status/client.py,sha256=GJ9Dq8iCn3hn8vCIqc6k1fCGEhSz0T0kaPGcdFnbMDY,3146
|
4
4
|
cartesia/api_status/requests/__init__.py,sha256=ilEMzEy1JEw484CuL92bX5lHGOznc62pjiDMgiZ0tKM,130
|
@@ -6,20 +6,20 @@ cartesia/api_status/requests/api_info.py,sha256=AmB6RpquI2yUlTQBtOk8e0qtLmXHYLcG
|
|
6
6
|
cartesia/api_status/types/__init__.py,sha256=6NUyGWiGK1Wl3mXlSMJN2ObKf2LK3vjX2MUP1uopfEQ,118
|
7
7
|
cartesia/api_status/types/api_info.py,sha256=o1LwSxnoHpCR7huw9J-cF6LRlC_fiftDQLYUz8p-vTc,568
|
8
8
|
cartesia/auth/__init__.py,sha256=T8_EGgzdzyJLqfD7DAgdkE6G1Ey2sUMyze-7x8HTzGg,355
|
9
|
-
cartesia/auth/client.py,sha256=
|
9
|
+
cartesia/auth/client.py,sha256=0lPsR37IPxOJ-_2LUIR1CFYg65oWhMkx6sSCiQhiLBM,5527
|
10
10
|
cartesia/auth/requests/__init__.py,sha256=hR7qCSJCPiOG7f8z8jTKQLOC7QoonSvvPKe0JbcEYEs,278
|
11
|
-
cartesia/auth/requests/token_grant.py,sha256=
|
12
|
-
cartesia/auth/requests/token_request.py,sha256=
|
11
|
+
cartesia/auth/requests/token_grant.py,sha256=LWcPEP1BZZGII_Wgu5pScN33aS4E9WoCX2qIyadjbQw,445
|
12
|
+
cartesia/auth/requests/token_request.py,sha256=z8PXbTVokCWM53MhUhXLcCK9UcGWhh4P6rO1fuGDuBw,608
|
13
13
|
cartesia/auth/requests/token_response.py,sha256=jXpHZmFe6RWO837e_lC2GJWwqO-b6KHOA-b6tTJVC54,211
|
14
14
|
cartesia/auth/types/__init__.py,sha256=iZrkHrlWs8e9KkR27f2IG-B72HC_N05A7Lcyt_EU9SM,242
|
15
|
-
cartesia/auth/types/token_grant.py,sha256=
|
16
|
-
cartesia/auth/types/token_request.py,sha256=
|
15
|
+
cartesia/auth/types/token_grant.py,sha256=vhmadI9McsWwXormWBhKJ2XvpXONnwXKzfgNsfaBG30,850
|
16
|
+
cartesia/auth/types/token_request.py,sha256=5gDJe-ULgY-JnNd4ZmgbmUjmboW4B4ymLjobAlQ4qNM,1001
|
17
17
|
cartesia/auth/types/token_response.py,sha256=_GcvfQdjwgNu1ODj8EuTkaMsez508a6xuOo8HOVNOJQ,626
|
18
18
|
cartesia/base_client.py,sha256=igAZOMDXz2Nv58oXHa7I9UfgxVN48drqhEmfsCCQlg8,6701
|
19
19
|
cartesia/client.py,sha256=LoJjlJW2kJA-hyDt-Wu7QuKQsiTiLQfLYZjsjtewPJM,6537
|
20
20
|
cartesia/core/__init__.py,sha256=-t9txgeQZL_1FDw_08GEoj4ft1Cn9Dti6X0Drsadlr0,1519
|
21
21
|
cartesia/core/api_error.py,sha256=RE8LELok2QCjABadECTvtDp7qejA1VmINCh6TbqPwSE,426
|
22
|
-
cartesia/core/client_wrapper.py,sha256=
|
22
|
+
cartesia/core/client_wrapper.py,sha256=5M1ORBWg2FutL5oJSkFfz1F3lbdMxk_vWBY6CPMCZWM,1854
|
23
23
|
cartesia/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
|
24
24
|
cartesia/core/file.py,sha256=d4NNbX8XvXP32z8KpK2Xovv33nFfruIrpz0QWxlgpZk,2663
|
25
25
|
cartesia/core/http_client.py,sha256=KL5RGa0y4n8nX0-07WRg4ZQUTq30sc-XJbWcP5vjBDg,19552
|
@@ -49,67 +49,77 @@ cartesia/embedding/types/__init__.py,sha256=aOrEOGuiO6dlSGu7pckqVMTYEMVAR5I7qqca
|
|
49
49
|
cartesia/embedding/types/embedding.py,sha256=C1OJg8M4T1Apfcv4qx79ndftg0SgH4Lfqe_iU3UF-bA,1851
|
50
50
|
cartesia/environment.py,sha256=Qnp91BGLic7hXmKsiYub2m3nPfvDWm59aB1wWta1J6A,160
|
51
51
|
cartesia/infill/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
52
|
-
cartesia/infill/client.py,sha256=
|
52
|
+
cartesia/infill/client.py,sha256=uEDhE3Cx47ZyG7ofR-GOR0LhHiHeTLkUcjkLSsyU2ug,12563
|
53
53
|
cartesia/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
54
|
-
cartesia/stt/__init__.py,sha256=
|
55
|
-
cartesia/stt/_async_websocket.py,sha256=
|
56
|
-
cartesia/stt/_websocket.py,sha256=
|
57
|
-
cartesia/stt/
|
54
|
+
cartesia/stt/__init__.py,sha256=UHT5OM-5phGwLCckL8BXGdC3QepJoboScW5eSXUE2S4,1763
|
55
|
+
cartesia/stt/_async_websocket.py,sha256=6MVYvSz3d9sI5-zzT_aIPEFKxXeCQU00RYFpYSF0dio,12385
|
56
|
+
cartesia/stt/_websocket.py,sha256=lNu7BzhkRswJrzji4l5OhJbceQPR4ybBPY-QTsfk11M,12328
|
57
|
+
cartesia/stt/client.py,sha256=ROFjsSSfnot02CSFrrL1FYgMNL_TWEhnBg5PVjAQs-g,15569
|
58
|
+
cartesia/stt/requests/__init__.py,sha256=xVvSrY-imcWR3ecyMGIx9JXORpxWAGDUCSDuz2zbJNE,1123
|
58
59
|
cartesia/stt/requests/done_message.py,sha256=7kCw8FrTZ6C5MS1xTkCOonYPcaqttbzG6TRvMj_-Z8I,388
|
59
60
|
cartesia/stt/requests/error_message.py,sha256=AbVs03q-Rdp2AFmaJqj-b3RshYqhIQeSiQO3zOkFdiA,395
|
60
61
|
cartesia/stt/requests/flush_done_message.py,sha256=zCMsHdoXXsBS8jz-ZAIRkEyAsbgqYCI5jPdBHEBFHLY,394
|
61
|
-
cartesia/stt/requests/streaming_transcription_response.py,sha256=
|
62
|
-
cartesia/stt/requests/transcript_message.py,sha256=
|
63
|
-
cartesia/stt/requests/transcription_response.py,sha256=
|
64
|
-
cartesia/stt/
|
65
|
-
cartesia/stt/
|
62
|
+
cartesia/stt/requests/streaming_transcription_response.py,sha256=uO9rxPyjDtcxCAoVHNi6ioovkwfpcxNFOsyc9YfOM6M,1298
|
63
|
+
cartesia/stt/requests/transcript_message.py,sha256=rwn7zhJ3kw-90wjOAUImnROkQyjdHUKHr_SGxxLg4G0,1244
|
64
|
+
cartesia/stt/requests/transcription_response.py,sha256=8lBqQCxLW1zGHacPtaMTgoKKNpyMtNqMUNAhQJfeKus,779
|
65
|
+
cartesia/stt/requests/transcription_word.py,sha256=RTyiOLIqw-BQpTsU5LRwx0MY8Do6tHiOP0RYQWOGkHQ,350
|
66
|
+
cartesia/stt/socket_client.py,sha256=JxSeJ_CwUELZhHT0_CcREjKj1I55KTtvyjB4gNkiPUI,5294
|
67
|
+
cartesia/stt/types/__init__.py,sha256=j8E4ZkXeKzRhhjLEs55iOtHL60mffD5Ug1exY88zkpY,1132
|
66
68
|
cartesia/stt/types/done_message.py,sha256=F3Upci6Lm3Wcd_Ga4Uxxw9WO7XB3y54hrvR1cFqPxlo,803
|
67
69
|
cartesia/stt/types/error_message.py,sha256=7HmoN7pBymPvJSB9JHwvMp3iXP-4xxd-ATpr-U68ocA,802
|
68
70
|
cartesia/stt/types/flush_done_message.py,sha256=uaDC6IBtZQ9ahPS575ezZiH6neR5JDnaI9KOemCeIwI,809
|
69
|
-
cartesia/stt/types/streaming_transcription_response.py,sha256=
|
70
|
-
cartesia/stt/types/stt_encoding.py,sha256=
|
71
|
-
cartesia/stt/types/
|
72
|
-
cartesia/stt/types/
|
73
|
-
cartesia/
|
71
|
+
cartesia/stt/types/streaming_transcription_response.py,sha256=MzwCU-0TYGNoh2OqsiNdYjSuKQcqAd3JvhS8UVAoz2A,3179
|
72
|
+
cartesia/stt/types/stt_encoding.py,sha256=cdWl5cN8t-nX07337tkCt4X-ZNObUlsPyv2cl9phxpE,218
|
73
|
+
cartesia/stt/types/timestamp_granularity.py,sha256=Oe39JvLeMgR2BIJnx32abhvs05dJeKuZ1xx73n224HA,152
|
74
|
+
cartesia/stt/types/transcript_message.py,sha256=J-MchlahI96nVBiMSLJrEOXFw2pBShbMXVocysQRnrY,1693
|
75
|
+
cartesia/stt/types/transcription_response.py,sha256=QMcD6eLmp_Z2uaRLVyxYYIdoiRiVSGhBoxN3kjRTK2I,1190
|
76
|
+
cartesia/stt/types/transcription_word.py,sha256=yxTndKXNmToPOM6_F_QfF-B0dE6Kx8-UwBpHLj2_zWk,803
|
77
|
+
cartesia/tts/__init__.py,sha256=rs8c52LHfOWvxKn57LOP9q-OS47gVXmkxBlkeW2ggUw,5171
|
74
78
|
cartesia/tts/_async_websocket.py,sha256=tJ-6rdJrviKvGhSW8J8t-rCinXM5gXXQJgDO8OgW3EE,18805
|
75
79
|
cartesia/tts/_websocket.py,sha256=bYaJ5vmCAl8AYrIJsqP3aA_nkFTeN3ey-Zc1nql_I3g,19274
|
76
|
-
cartesia/tts/client.py,sha256=
|
77
|
-
cartesia/tts/requests/__init__.py,sha256=
|
80
|
+
cartesia/tts/client.py,sha256=LbYypisx4hdiCUMAimjtqy9VOkXGlI4jSXxC9_6TXuY,18925
|
81
|
+
cartesia/tts/requests/__init__.py,sha256=rRsvmYUnSEtOzTS9DdU391oVNRQKDWPG6BJcBKiHzRw,3614
|
78
82
|
cartesia/tts/requests/cancel_context_request.py,sha256=Wl8g-o5vwl9ENm-H1wsLx441FkIR_4Wt5UYtuWce2Yw,431
|
79
83
|
cartesia/tts/requests/controls.py,sha256=xzUJlfgqhaJ1A-JD0LTpoHYk4iEpCuGpSD7qE4YYsRg,285
|
80
|
-
cartesia/tts/requests/
|
84
|
+
cartesia/tts/requests/experimental_model_controls.py,sha256=ml7no5z_jnhy_21IXzSIYiar1OhNelCsD8A4lsfy4zk,687
|
85
|
+
cartesia/tts/requests/generation_config.py,sha256=Y7TRIeN9qolqmnOG8-iUbcomtkDM8krYalHFwV_l1x4,863
|
86
|
+
cartesia/tts/requests/generation_request.py,sha256=JQPumk0UMCHDQrcUvuqeDsdc8LCJAEolSs10LpJzK00,3083
|
81
87
|
cartesia/tts/requests/mp_3_output_format.py,sha256=PGDVzC1d7-Jce12rFxtF8G1pTHmlUdiGAhykFTABg0w,316
|
82
88
|
cartesia/tts/requests/output_format.py,sha256=8TKu9AAeHCR5L4edzYch8FIYIldn4bM7ySrsCl8W_g8,842
|
83
89
|
cartesia/tts/requests/phoneme_timestamps.py,sha256=ft81nmqElZAnvTBT27lY6YWfF18ZGsCx3Y1XHv9J7cM,267
|
84
90
|
cartesia/tts/requests/raw_output_format.py,sha256=S60Vp7DeAATCMLF3bXgxhw0zILJBWJ9GhI9irAg_UkI,316
|
85
91
|
cartesia/tts/requests/speed.py,sha256=-YGBWwh7_VtCBnYlT5EVsnrmcHFMEBTxy9LathZhkMA,259
|
86
|
-
cartesia/tts/requests/
|
92
|
+
cartesia/tts/requests/sse_output_format.py,sha256=z_f7dlDYNvpheYOSnf3lOslHF40vS852pYkxHTpqAcc,293
|
93
|
+
cartesia/tts/requests/tts_request.py,sha256=W6YA4pdTXSIoYUKKzwojcwRwEMSglx-CQrYOJThEz48,1152
|
87
94
|
cartesia/tts/requests/tts_request_embedding_specifier.py,sha256=-M54ZjV0H5LPwcKtz0bOVqlkvO1pPiMbqMbVBMko3Ns,565
|
88
95
|
cartesia/tts/requests/tts_request_id_specifier.py,sha256=-0ClfyJnnaH0uAcF5r84s3cM_cw2wT39dp6T4JYzOQ8,536
|
89
96
|
cartesia/tts/requests/tts_request_voice_specifier.py,sha256=eGzL4aVGq4gKPxeglsV7-wuhxg8x33Qth3uFTTytgeI,337
|
97
|
+
cartesia/tts/requests/ttssse_request.py,sha256=S8EkuEtveOetkcydinfLr5lS66PYpLQTNesyRIf_LwI,2007
|
90
98
|
cartesia/tts/requests/wav_output_format.py,sha256=qiipmT5hWsa8J-fwW1EH_rnUAX_zOUpGJUNzuLc65r4,181
|
91
99
|
cartesia/tts/requests/web_socket_base_response.py,sha256=zCjHw-FaNJMOcHiAb2NQWrBBfrzU5rc95vqDp7y9RmA,315
|
92
|
-
cartesia/tts/requests/web_socket_chunk_response.py,sha256=
|
100
|
+
cartesia/tts/requests/web_socket_chunk_response.py,sha256=4fVPJH-ZZb8lJKwqyYGx5wyeYWzfuThGxMRXC6ku4bA,233
|
93
101
|
cartesia/tts/requests/web_socket_done_response.py,sha256=YLHrT6NkmDntBSxF-JGlXSavdlOWo_cb9tGKCVivGH4,206
|
94
102
|
cartesia/tts/requests/web_socket_error_response.py,sha256=ek2O5Whlzn5Ma40NhYviVl3aJBVeCA8BBvbJPUYxEiQ,213
|
95
103
|
cartesia/tts/requests/web_socket_flush_done_response.py,sha256=gP3fSWhEFVzdzBweUmVKo7JvdREW3TM9R6o9-u6V6FQ,282
|
96
104
|
cartesia/tts/requests/web_socket_phoneme_timestamps_response.py,sha256=nDRK7wo4s6R7ayJrw-LJX9WCaW4mti0HAV4X5j7cxjI,370
|
97
105
|
cartesia/tts/requests/web_socket_raw_output_format.py,sha256=9BJHE5l5bzmYCYuUoACRhbZdJBijnSiwkbR8K4EzPDY,302
|
98
106
|
cartesia/tts/requests/web_socket_request.py,sha256=5xfE0NgkBEZdus_vC-3RVQkuqhNmXHxLMX4DW3ezcKc,290
|
99
|
-
cartesia/tts/requests/web_socket_response.py,sha256=
|
107
|
+
cartesia/tts/requests/web_socket_response.py,sha256=kS46YN94ilUn4qjpt1TpauZApe0N8PpAefT87jFiusY,2079
|
100
108
|
cartesia/tts/requests/web_socket_stream_options.py,sha256=VIvblFw9hGZvDzFpOnC11G0NvrFSVt-1-0sY5rpcZPI,232
|
101
109
|
cartesia/tts/requests/web_socket_timestamps_response.py,sha256=MK3zN2Q_PVWJtX5DidNB0uXoF2o33rv6qCYPVaourxY,351
|
102
110
|
cartesia/tts/requests/web_socket_tts_output.py,sha256=pX2uf0XVdziFhXCydwLlVOWb-LvBiuq-cBI6R1INiMg,760
|
103
|
-
cartesia/tts/requests/web_socket_tts_request.py,sha256=
|
111
|
+
cartesia/tts/requests/web_socket_tts_request.py,sha256=1jdRjRAO7z-KLOyp8FcDoQh933RGt-ZPR3E8Vz3XPnQ,1795
|
104
112
|
cartesia/tts/requests/word_timestamps.py,sha256=WMfBJtETi6wTpES0pYZCFfFRfEbzWE-RtosDJ5seUWg,261
|
105
113
|
cartesia/tts/socket_client.py,sha256=zTPayHbgy-yQQ50AE1HXN4GMyanisZcLXf7Ds1paYks,11621
|
106
|
-
cartesia/tts/types/__init__.py,sha256=
|
114
|
+
cartesia/tts/types/__init__.py,sha256=p75DSCxARgcSxNc4DF4L5nr-OvioMVe2Kl-HwtaAf3I,3610
|
107
115
|
cartesia/tts/types/cancel_context_request.py,sha256=zInhk3qRZsSc0F1aYJ-Q5BHJsosTrb22IJWhzue-eKE,856
|
108
116
|
cartesia/tts/types/context_id.py,sha256=UCEtq5xFGOeBCECcY6Y-gYVe_Peg1hFhH9YYOkpApQg,81
|
109
117
|
cartesia/tts/types/controls.py,sha256=H4CSu79mM1Ld4NZx_5uXw3EwRzTEMQRxKBRvFpcFb8Y,644
|
110
118
|
cartesia/tts/types/emotion.py,sha256=zocyDcHTiFFnNRgo2YLMi70iGyffa080B4mkg9lcqVc,764
|
119
|
+
cartesia/tts/types/experimental_model_controls.py,sha256=5DRCWspNWDojHt1uS441UjBqBQOjhJKqUAT0KwE1GBg,1075
|
111
120
|
cartesia/tts/types/flush_id.py,sha256=HCIKo9o8d7YWKtaSNU3TEvfUVBju93ckGQy01Z9wLcE,79
|
112
|
-
cartesia/tts/types/
|
121
|
+
cartesia/tts/types/generation_config.py,sha256=q_nkXRSLJRNrCA93GAcu0Kp_C8o6W2VFx7bm38Hqts0,1249
|
122
|
+
cartesia/tts/types/generation_request.py,sha256=ZGVXmHZLaZg7kEg1cVGXLpr8uB3btr2eZt0NEJRZnSU,3582
|
113
123
|
cartesia/tts/types/model_speed.py,sha256=iiTj8V0piFCX2FZh5B8EkgRhZDlj4z3VFcQhp66e7y8,160
|
114
124
|
cartesia/tts/types/mp_3_output_format.py,sha256=0WGblkuDUL7pZO1aRuQ_mU2Z5gN9xIabRfRKkjtzms8,731
|
115
125
|
cartesia/tts/types/natural_specifier.py,sha256=K526P1RRuBGy80hyd_tX8tohPrE8DR9EgTCxS5wce0o,188
|
@@ -119,39 +129,41 @@ cartesia/tts/types/phoneme_timestamps.py,sha256=SrhPmE7-1-bCVi4qCgMU7QR9ezkwUfqs
|
|
119
129
|
cartesia/tts/types/raw_encoding.py,sha256=eyc2goiYOTxWcuKHAgYZ2SrnfePW22Fbmc-5fGPlV2Y,186
|
120
130
|
cartesia/tts/types/raw_output_format.py,sha256=jZGVaS0KIi9mU6trfskgA3HbMKJolhrwICnuDhF01ic,673
|
121
131
|
cartesia/tts/types/speed.py,sha256=4c5WdxocBw6WSMnundSaNnceUeooU0vikhy00FW6M-w,239
|
132
|
+
cartesia/tts/types/sse_output_format.py,sha256=tRb4VcYqoPJMDyjfTZMCRTblT2NjwIsQhy1oMjxQWW0,676
|
122
133
|
cartesia/tts/types/supported_language.py,sha256=riDRduThMbMWAq9i2uCfxhwVTpgaFwNDZ9LhEIl4zHY,237
|
123
|
-
cartesia/tts/types/tts_request.py,sha256=
|
134
|
+
cartesia/tts/types/tts_request.py,sha256=DPmzRJX-vFCkqqe2HYgsLFDL1ed05TGb635BswaSXGQ,1488
|
124
135
|
cartesia/tts/types/tts_request_embedding_specifier.py,sha256=eL_qCEr4pvWfy4qp9hZBuVdCincX5DBVqfv1vLt2_Vk,942
|
125
136
|
cartesia/tts/types/tts_request_id_specifier.py,sha256=ktGdkkTRQ9scA-lt8qJ2jn_E5WzoOK8AXMrVqi71gf0,906
|
126
137
|
cartesia/tts/types/tts_request_voice_specifier.py,sha256=p-3UQ62uFL1SgbX73Ex1D_V73Ef0wmT1ApOt1iLZmwE,307
|
138
|
+
cartesia/tts/types/ttssse_request.py,sha256=6KvDQYzetwbFOVvkMWDj94Biz08EZaiX6V1lChsy49U,2423
|
127
139
|
cartesia/tts/types/wav_output_format.py,sha256=OTAgVn_gBMk252XO12kiNI9lKrbw3n38aBAiqlG5mdU,531
|
128
140
|
cartesia/tts/types/web_socket_base_response.py,sha256=MWoTt1rGRqUQ8BOad1Zk2SA-i0E8a3JwPLSiehIbFj4,672
|
129
|
-
cartesia/tts/types/web_socket_chunk_response.py,sha256=
|
141
|
+
cartesia/tts/types/web_socket_chunk_response.py,sha256=VOPXAlyGFdnfC69KxqDWDo1PPMydvQKmAypoWfbW8_s,593
|
130
142
|
cartesia/tts/types/web_socket_done_response.py,sha256=zZ6V-_pKNifdyuuRHGlZe6Zbc-ZRk-uHk5zgHkZcBEw,556
|
131
143
|
cartesia/tts/types/web_socket_error_response.py,sha256=Jm26GnK0axyLQI3-JLHC0buYVIU8gKWxLAJlzo-cJFQ,573
|
132
144
|
cartesia/tts/types/web_socket_flush_done_response.py,sha256=JLiVPDftr1arl_Kvj6038yj0mnjq6x0ooihsbdXajfw,635
|
133
145
|
cartesia/tts/types/web_socket_phoneme_timestamps_response.py,sha256=R1-Z_W3XF7L7rrPwEOK_EfXHT4FWRpSAX3g71WebM90,686
|
134
146
|
cartesia/tts/types/web_socket_raw_output_format.py,sha256=9PiOVmPDfT32IDIsmU7UY_rTLOShMMEw1pNv2yZ9Kyg,685
|
135
147
|
cartesia/tts/types/web_socket_request.py,sha256=_xoAShkCCNTVAWKCvHw5k0Wisq60y4fOWYjG7SA8edM,260
|
136
|
-
cartesia/tts/types/web_socket_response.py,sha256=
|
148
|
+
cartesia/tts/types/web_socket_response.py,sha256=fUQbJ6yFzZbzUZPuQWgkFdzP8-FMiKTcya-DIPWjimY,3777
|
137
149
|
cartesia/tts/types/web_socket_stream_options.py,sha256=MhDSxBFqMuQeWjoyPqXVnTEzLjF8g6aojeigb5dQUgU,596
|
138
150
|
cartesia/tts/types/web_socket_timestamps_response.py,sha256=kuWXI82ncF1QapnaHEjwrL84qWob7ByQU-yh1e0IEmk,667
|
139
151
|
cartesia/tts/types/web_socket_tts_output.py,sha256=uvkv0smTBhdm18Rl17C0Ml4Inh79YBHNzAcKnZBs14Y,979
|
140
|
-
cartesia/tts/types/web_socket_tts_request.py,sha256=
|
152
|
+
cartesia/tts/types/web_socket_tts_request.py,sha256=Gx8kSINX__VhQ3In3R1-4fq0bfjaMe7iL-M8nDNt0fQ,2150
|
141
153
|
cartesia/tts/types/word_timestamps.py,sha256=XZ2Q0prdb3F9c3AiOKXu4s3A3jBxE-qIt1npHOf16R0,631
|
142
154
|
cartesia/tts/utils/constants.py,sha256=1CHa5flJf8--L_eYyOyOiWJNZ-Q81ufHZxDbJs8xYSk,418
|
143
155
|
cartesia/tts/utils/tts.py,sha256=u7PgPxlJs6fcQTfr-jqAvBCAaK3JWLhF5QF4s-PwoMo,2093
|
144
156
|
cartesia/tts/utils/types.py,sha256=DtsiRwrYypXScLu71gNyprUiELuR1l_-ikVaj47gpg4,2047
|
145
157
|
cartesia/version.py,sha256=xk5z2FYkgnvzyjqzmRg67rYl8fnCeHEjPpVmD08bjyE,75
|
146
158
|
cartesia/voice_changer/__init__.py,sha256=UKA8CSAwUb41OL-dcWWUhIsKLLsyY_NQtrklPAVWf9E,685
|
147
|
-
cartesia/voice_changer/client.py,sha256=
|
159
|
+
cartesia/voice_changer/client.py,sha256=w3Z3A-92Fu5k9NRrfdn7Gu2nqmOONL-xLCHknZhkANY,13509
|
148
160
|
cartesia/voice_changer/requests/__init__.py,sha256=MRwSUqio3mg_tvfcpAS0wIZ69HvJsc2kYJ0tUBaJ53U,390
|
149
|
-
cartesia/voice_changer/requests/streaming_response.py,sha256=
|
161
|
+
cartesia/voice_changer/requests/streaming_response.py,sha256=lbo7CJeuh0f5hXT4lKG_sDUZDLJWaLqxcwCuSf1IbMQ,982
|
150
162
|
cartesia/voice_changer/types/__init__.py,sha256=qAiHsdRpnFeS0lBkYp_NRrhSJiRXCg5-uFibqDWzYVU,430
|
151
163
|
cartesia/voice_changer/types/output_format_container.py,sha256=RqLDELdgeOjYqNTJX1Le62qjiFiJGxf0cYnol88-LLM,166
|
152
|
-
cartesia/voice_changer/types/streaming_response.py,sha256=
|
164
|
+
cartesia/voice_changer/types/streaming_response.py,sha256=gH-2-rlpeI3y9Ou0c7AopHUm3Z5uB3HaoPM1RvFCKwg,1875
|
153
165
|
cartesia/voices/__init__.py,sha256=2D58Bir45LvcvP08QMnPlFE8DD8BONTjPLkIDdKs7vg,1891
|
154
|
-
cartesia/voices/client.py,sha256=
|
166
|
+
cartesia/voices/client.py,sha256=iEglXf5LlvVlTVMItjE3k9-rcQwrem6jx3GZgsblBpA,38981
|
155
167
|
cartesia/voices/requests/__init__.py,sha256=XiBJbSYeQCgFMtwywKvQ0Nmp7Zf_0WskzRhgr9c8h38,1072
|
156
168
|
cartesia/voices/requests/create_voice_request.py,sha256=r6dKb9ga0ZsAi_6PXuE43u2lLgfQg2DIYjk2Neng7pI,617
|
157
169
|
cartesia/voices/requests/embedding_response.py,sha256=PGZkBD8UBcv2MYQbBXyD4T6lzaE9oSGGwXx-MoXCp0M,228
|
@@ -190,6 +202,7 @@ cartesia/voices/types/voice_expand_options.py,sha256=e4FroWdlxEE-LXQfT1RWlGHtswl
|
|
190
202
|
cartesia/voices/types/voice_id.py,sha256=GDoXcRVeIm-V21R4suxG2zqLD3DLYkXE9kgizadzFKo,79
|
191
203
|
cartesia/voices/types/voice_metadata.py,sha256=4KNGjXMUKm3niv-NvKIFVGtiilpH13heuzKcZYNQxk4,1181
|
192
204
|
cartesia/voices/types/weight.py,sha256=XqDU7_JItNUb5QykIDqTbELlRYQdbt2SviRgW0w2LKo,80
|
193
|
-
cartesia-2.0.
|
194
|
-
cartesia-2.0.
|
195
|
-
cartesia-2.0.
|
205
|
+
cartesia-2.0.7.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
206
|
+
cartesia-2.0.7.dist-info/METADATA,sha256=Y6DBkN-dgV6mTHZewNoAYG8ywLzXx7SxQCVzOvP1FHU,20927
|
207
|
+
cartesia-2.0.7.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
208
|
+
cartesia-2.0.7.dist-info/RECORD,,
|