cartesia 2.0.0b2__py3-none-any.whl → 2.0.0b8__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.
Files changed (41) hide show
  1. cartesia/__init__.py +10 -0
  2. cartesia/base_client.py +0 -4
  3. cartesia/core/__init__.py +3 -0
  4. cartesia/core/client_wrapper.py +2 -2
  5. cartesia/core/pagination.py +88 -0
  6. cartesia/infill/client.py +4 -4
  7. cartesia/tts/_async_websocket.py +53 -1
  8. cartesia/tts/_websocket.py +52 -3
  9. cartesia/tts/client.py +4 -4
  10. cartesia/tts/requests/generation_request.py +5 -0
  11. cartesia/tts/requests/web_socket_chunk_response.py +3 -0
  12. cartesia/tts/requests/web_socket_response.py +2 -1
  13. cartesia/tts/requests/web_socket_tts_request.py +1 -0
  14. cartesia/tts/types/emotion.py +5 -0
  15. cartesia/tts/types/generation_request.py +5 -0
  16. cartesia/tts/types/web_socket_chunk_response.py +3 -1
  17. cartesia/tts/types/web_socket_response.py +2 -1
  18. cartesia/tts/types/web_socket_tts_output.py +2 -0
  19. cartesia/tts/types/web_socket_tts_request.py +1 -0
  20. cartesia/tts/utils/constants.py +2 -2
  21. cartesia/voice_changer/requests/streaming_response.py +2 -0
  22. cartesia/voice_changer/types/streaming_response.py +2 -0
  23. cartesia/voices/__init__.py +10 -0
  24. cartesia/voices/client.py +209 -44
  25. cartesia/voices/requests/__init__.py +2 -0
  26. cartesia/voices/requests/get_voices_response.py +24 -0
  27. cartesia/voices/requests/localize_dialect.py +4 -1
  28. cartesia/voices/requests/localize_voice_request.py +15 -2
  29. cartesia/voices/requests/voice.py +13 -9
  30. cartesia/voices/types/__init__.py +8 -0
  31. cartesia/voices/types/gender_presentation.py +5 -0
  32. cartesia/voices/types/get_voices_response.py +34 -0
  33. cartesia/voices/types/localize_dialect.py +4 -1
  34. cartesia/voices/types/localize_french_dialect.py +5 -0
  35. cartesia/voices/types/localize_voice_request.py +16 -3
  36. cartesia/voices/types/voice.py +13 -9
  37. cartesia/voices/types/voice_expand_options.py +5 -0
  38. {cartesia-2.0.0b2.dist-info → cartesia-2.0.0b8.dist-info}/METADATA +149 -73
  39. {cartesia-2.0.0b2.dist-info → cartesia-2.0.0b8.dist-info}/RECORD +40 -35
  40. cartesia/datasets/client.py +0 -392
  41. {cartesia-2.0.0b2.dist-info → cartesia-2.0.0b8.dist-info}/WHEEL +0 -0
@@ -1,26 +1,26 @@
1
- cartesia/__init__.py,sha256=M7AQ_2T6XVRQxhCUaFxWPwv2X1Ky8KY3wOPDLGlyIyo,7879
1
+ cartesia/__init__.py,sha256=k-YMKYUtzKObkF9Zn0TuHTC2_Z07mH6CTnZmn1my7po,8143
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
5
5
  cartesia/api_status/requests/api_info.py,sha256=AmB6RpquI2yUlTQBtOk8e0qtLmXHYLcGZKpXZahOwmc,172
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
- cartesia/base_client.py,sha256=fnRxqROt8Eh2_Vx54RmBxLyFsJKQGEMmRlznTKi4Rho,6571
8
+ cartesia/base_client.py,sha256=EIfMrSkJgMCgzYWJ5GN2RxsWikxcH0kMmcb3WYqfQ_g,6321
9
9
  cartesia/client.py,sha256=sPAYQLt9W2E_2F17ooocvvJImuNyLrL8xUypgf6dZeI,6238
10
- cartesia/core/__init__.py,sha256=SQ85PF84B9MuKnBwHNHWemSGuy-g_515gFYNFhvEE0I,1438
10
+ cartesia/core/__init__.py,sha256=-t9txgeQZL_1FDw_08GEoj4ft1Cn9Dti6X0Drsadlr0,1519
11
11
  cartesia/core/api_error.py,sha256=RE8LELok2QCjABadECTvtDp7qejA1VmINCh6TbqPwSE,426
12
- cartesia/core/client_wrapper.py,sha256=C7OD0ek-tvB54i6q9IKucqfyxuc76gxRZknDjFPKrXY,1856
12
+ cartesia/core/client_wrapper.py,sha256=BEIOireABuSTdCAcsHeQKtZ1D3sIi-CVQv5YFHmfi3Y,1856
13
13
  cartesia/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
14
14
  cartesia/core/file.py,sha256=d4NNbX8XvXP32z8KpK2Xovv33nFfruIrpz0QWxlgpZk,2663
15
15
  cartesia/core/http_client.py,sha256=KL5RGa0y4n8nX0-07WRg4ZQUTq30sc-XJbWcP5vjBDg,19552
16
16
  cartesia/core/jsonable_encoder.py,sha256=qaF1gtgH-kQZb4kJskETwcCsOPUof-NnYVdszHkb-dM,3656
17
+ cartesia/core/pagination.py,sha256=ykffinbn7c3pXaXLrAlFbSdNbZmJJXoU7VSFIRCLAo0,3177
17
18
  cartesia/core/pydantic_utilities.py,sha256=UibVGGYmBDsV834x8CtckRDrTIL4lYJPMrcq9yvf7RM,11973
18
19
  cartesia/core/query_encoder.py,sha256=ekulqNd0j8TgD7ox-Qbz7liqX8-KP9blvT9DsRCenYM,2144
19
20
  cartesia/core/remove_none_from_dict.py,sha256=EU9SGgYidWq7SexuJbNs4-PZ-5Bl3Vppd864mS6vQZw,342
20
21
  cartesia/core/request_options.py,sha256=h0QUNCFVdCW_7GclVySCAY2w4NhtXVBUCmHgmzaxpcg,1681
21
22
  cartesia/core/serialization.py,sha256=D9h_t-RQON3-CHWs1C4ESY9B-Yd5d-l5lnTLb_X896g,9601
22
23
  cartesia/datasets/__init__.py,sha256=m7uI_lBRsIh-YOIin7Q11cHSXD4FMUkq_J74CLMWuyY,640
23
- cartesia/datasets/client.py,sha256=6cxSvaRbq0YEyCfGH-_SrDop6dgiXMKoRWDuP0e8MkA,11672
24
24
  cartesia/datasets/requests/__init__.py,sha256=pxNlVfjSEPr1RfJKb07CXKIrg_EDa4_t8le2x6u9l1c,489
25
25
  cartesia/datasets/requests/create_dataset_request.py,sha256=RtISvq-eA8GG_0plEPTkJl8TzOVm93NQuHbJVGtkQeg,169
26
26
  cartesia/datasets/requests/dataset.py,sha256=Wxg5AEBh8h9t5N2ud96bsrPVgjH5orMAv1PXl1RGTDs,188
@@ -39,16 +39,16 @@ cartesia/embedding/types/__init__.py,sha256=aOrEOGuiO6dlSGu7pckqVMTYEMVAR5I7qqca
39
39
  cartesia/embedding/types/embedding.py,sha256=C1OJg8M4T1Apfcv4qx79ndftg0SgH4Lfqe_iU3UF-bA,1851
40
40
  cartesia/environment.py,sha256=Qnp91BGLic7hXmKsiYub2m3nPfvDWm59aB1wWta1J6A,160
41
41
  cartesia/infill/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
42
- cartesia/infill/client.py,sha256=RfOZzohJNDN0TxEywAHA-kjHUJwqXPaBzGVSj7wR0r0,12611
42
+ cartesia/infill/client.py,sha256=PWE5Ak-wsaBM_8g52oDl9PYx76PkW6f900mnxvZf4Bk,12571
43
43
  cartesia/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
44
44
  cartesia/tts/__init__.py,sha256=G0wcYlPrr7hmu5DQgCG7bDTQq36fpP3iBM5164Z0-Js,4701
45
- cartesia/tts/_async_websocket.py,sha256=gg9mrY6JpMiCZHUefGdRGy_N2nxNTfP_DJ4mN8xtDOU,15991
46
- cartesia/tts/_websocket.py,sha256=k_dZSqRMDXOhDgsY26FmYFZH0tRFB06uK1ibMy8DxPc,16513
47
- cartesia/tts/client.py,sha256=Xjk98e21QUMlJedg3V-tkXbq6H6fSfKFo3x6ZoEBiLE,14824
45
+ cartesia/tts/_async_websocket.py,sha256=U7ySTJqb3V0RDSKPcFfzpBa0pqui05k5BTqiIpSBth0,18652
46
+ cartesia/tts/_websocket.py,sha256=roMJ7oDSjr5U5sTHM8EcGu-EtzbIVUH4HmOY1yI2JL4,19118
47
+ cartesia/tts/client.py,sha256=KMhDaW0gG_uwkSq1EzoC-bCx1G0TLB4K4Gm57L4xDSs,14832
48
48
  cartesia/tts/requests/__init__.py,sha256=0rcfMLHNbUhkRI1xS09UE4p-WT1BCqrcblFtPxcATOI,3261
49
49
  cartesia/tts/requests/cancel_context_request.py,sha256=Wl8g-o5vwl9ENm-H1wsLx441FkIR_4Wt5UYtuWce2Yw,431
50
50
  cartesia/tts/requests/controls.py,sha256=xzUJlfgqhaJ1A-JD0LTpoHYk4iEpCuGpSD7qE4YYsRg,285
51
- cartesia/tts/requests/generation_request.py,sha256=JMSJ1upkcqaXxBH-nUAdEZqsJJvh95sCWxg_vt8vTjM,1839
51
+ cartesia/tts/requests/generation_request.py,sha256=D7eB1HEOzoGbviMavtK1hwsP0lTO7K-pEs3UQIAZpDs,1980
52
52
  cartesia/tts/requests/mp_3_output_format.py,sha256=PGDVzC1d7-Jce12rFxtF8G1pTHmlUdiGAhykFTABg0w,316
53
53
  cartesia/tts/requests/output_format.py,sha256=8TKu9AAeHCR5L4edzYch8FIYIldn4bM7ySrsCl8W_g8,842
54
54
  cartesia/tts/requests/phoneme_timestamps.py,sha256=ft81nmqElZAnvTBT27lY6YWfF18ZGsCx3Y1XHv9J7cM,267
@@ -60,27 +60,27 @@ cartesia/tts/requests/tts_request_id_specifier.py,sha256=-0ClfyJnnaH0uAcF5r84s3c
60
60
  cartesia/tts/requests/tts_request_voice_specifier.py,sha256=eGzL4aVGq4gKPxeglsV7-wuhxg8x33Qth3uFTTytgeI,337
61
61
  cartesia/tts/requests/wav_output_format.py,sha256=qiipmT5hWsa8J-fwW1EH_rnUAX_zOUpGJUNzuLc65r4,181
62
62
  cartesia/tts/requests/web_socket_base_response.py,sha256=zCjHw-FaNJMOcHiAb2NQWrBBfrzU5rc95vqDp7y9RmA,315
63
- cartesia/tts/requests/web_socket_chunk_response.py,sha256=4fVPJH-ZZb8lJKwqyYGx5wyeYWzfuThGxMRXC6ku4bA,233
63
+ cartesia/tts/requests/web_socket_chunk_response.py,sha256=uuwLYBhxDCUfg21oFmrY5BXnRqiwpLlW-yY_4dyN9SQ,348
64
64
  cartesia/tts/requests/web_socket_done_response.py,sha256=YLHrT6NkmDntBSxF-JGlXSavdlOWo_cb9tGKCVivGH4,206
65
65
  cartesia/tts/requests/web_socket_error_response.py,sha256=ek2O5Whlzn5Ma40NhYviVl3aJBVeCA8BBvbJPUYxEiQ,213
66
66
  cartesia/tts/requests/web_socket_flush_done_response.py,sha256=gP3fSWhEFVzdzBweUmVKo7JvdREW3TM9R6o9-u6V6FQ,282
67
67
  cartesia/tts/requests/web_socket_phoneme_timestamps_response.py,sha256=nDRK7wo4s6R7ayJrw-LJX9WCaW4mti0HAV4X5j7cxjI,370
68
68
  cartesia/tts/requests/web_socket_raw_output_format.py,sha256=9BJHE5l5bzmYCYuUoACRhbZdJBijnSiwkbR8K4EzPDY,302
69
69
  cartesia/tts/requests/web_socket_request.py,sha256=5xfE0NgkBEZdus_vC-3RVQkuqhNmXHxLMX4DW3ezcKc,290
70
- cartesia/tts/requests/web_socket_response.py,sha256=kS46YN94ilUn4qjpt1TpauZApe0N8PpAefT87jFiusY,2079
70
+ cartesia/tts/requests/web_socket_response.py,sha256=WqZ6RgO4suG78wiVSIsOWwyXBioV1QiEiiPCP_T7HHw,2132
71
71
  cartesia/tts/requests/web_socket_stream_options.py,sha256=VIvblFw9hGZvDzFpOnC11G0NvrFSVt-1-0sY5rpcZPI,232
72
72
  cartesia/tts/requests/web_socket_timestamps_response.py,sha256=MK3zN2Q_PVWJtX5DidNB0uXoF2o33rv6qCYPVaourxY,351
73
73
  cartesia/tts/requests/web_socket_tts_output.py,sha256=pX2uf0XVdziFhXCydwLlVOWb-LvBiuq-cBI6R1INiMg,760
74
- cartesia/tts/requests/web_socket_tts_request.py,sha256=UXir2k0GpVQNCYKZ0YZMrl_LullEKCsM0EmyFbl5oDw,1036
74
+ cartesia/tts/requests/web_socket_tts_request.py,sha256=jv8EYSxsjb063uzKjybRRNusmNtfzt516-r2urfG-vU,1101
75
75
  cartesia/tts/requests/word_timestamps.py,sha256=WMfBJtETi6wTpES0pYZCFfFRfEbzWE-RtosDJ5seUWg,261
76
76
  cartesia/tts/socket_client.py,sha256=zTPayHbgy-yQQ50AE1HXN4GMyanisZcLXf7Ds1paYks,11621
77
77
  cartesia/tts/types/__init__.py,sha256=yV_-DY9EPNAFEfuIk3wgRLcc4Ta5igv0T5g-IIQ53v0,3251
78
78
  cartesia/tts/types/cancel_context_request.py,sha256=zInhk3qRZsSc0F1aYJ-Q5BHJsosTrb22IJWhzue-eKE,856
79
79
  cartesia/tts/types/context_id.py,sha256=UCEtq5xFGOeBCECcY6Y-gYVe_Peg1hFhH9YYOkpApQg,81
80
80
  cartesia/tts/types/controls.py,sha256=H4CSu79mM1Ld4NZx_5uXw3EwRzTEMQRxKBRvFpcFb8Y,644
81
- cartesia/tts/types/emotion.py,sha256=Hw1znosnRFyPRR0Adtru0GmJ-EGWHXDF_XtfQ3QI96Y,665
81
+ cartesia/tts/types/emotion.py,sha256=zocyDcHTiFFnNRgo2YLMi70iGyffa080B4mkg9lcqVc,764
82
82
  cartesia/tts/types/flush_id.py,sha256=HCIKo9o8d7YWKtaSNU3TEvfUVBju93ckGQy01Z9wLcE,79
83
- cartesia/tts/types/generation_request.py,sha256=jRqVtEdIZ0Nt8w3RUm2BloF_7DJNqbDtQdvy7WkKVxk,2318
83
+ cartesia/tts/types/generation_request.py,sha256=Ig14IIulKgsHtIoRmfrov-U0jpYWQqOjCAUt5Fk20z4,2476
84
84
  cartesia/tts/types/mp_3_output_format.py,sha256=0WGblkuDUL7pZO1aRuQ_mU2Z5gN9xIabRfRKkjtzms8,731
85
85
  cartesia/tts/types/natural_specifier.py,sha256=K526P1RRuBGy80hyd_tX8tohPrE8DR9EgTCxS5wce0o,188
86
86
  cartesia/tts/types/numerical_specifier.py,sha256=tJpIskWO545luCKMFM9JlVc7VVhBhSvqL1qurhzL9cI,92
@@ -96,65 +96,70 @@ cartesia/tts/types/tts_request_id_specifier.py,sha256=ktGdkkTRQ9scA-lt8qJ2jn_E5W
96
96
  cartesia/tts/types/tts_request_voice_specifier.py,sha256=p-3UQ62uFL1SgbX73Ex1D_V73Ef0wmT1ApOt1iLZmwE,307
97
97
  cartesia/tts/types/wav_output_format.py,sha256=OTAgVn_gBMk252XO12kiNI9lKrbw3n38aBAiqlG5mdU,531
98
98
  cartesia/tts/types/web_socket_base_response.py,sha256=MWoTt1rGRqUQ8BOad1Zk2SA-i0E8a3JwPLSiehIbFj4,672
99
- cartesia/tts/types/web_socket_chunk_response.py,sha256=VOPXAlyGFdnfC69KxqDWDo1PPMydvQKmAypoWfbW8_s,593
99
+ cartesia/tts/types/web_socket_chunk_response.py,sha256=dRyk06cuqpV88kSNb4X1MPEsi9v_YvoQ0AbdJDBsykI,669
100
100
  cartesia/tts/types/web_socket_done_response.py,sha256=zZ6V-_pKNifdyuuRHGlZe6Zbc-ZRk-uHk5zgHkZcBEw,556
101
101
  cartesia/tts/types/web_socket_error_response.py,sha256=Jm26GnK0axyLQI3-JLHC0buYVIU8gKWxLAJlzo-cJFQ,573
102
102
  cartesia/tts/types/web_socket_flush_done_response.py,sha256=JLiVPDftr1arl_Kvj6038yj0mnjq6x0ooihsbdXajfw,635
103
103
  cartesia/tts/types/web_socket_phoneme_timestamps_response.py,sha256=R1-Z_W3XF7L7rrPwEOK_EfXHT4FWRpSAX3g71WebM90,686
104
104
  cartesia/tts/types/web_socket_raw_output_format.py,sha256=9PiOVmPDfT32IDIsmU7UY_rTLOShMMEw1pNv2yZ9Kyg,685
105
105
  cartesia/tts/types/web_socket_request.py,sha256=_xoAShkCCNTVAWKCvHw5k0Wisq60y4fOWYjG7SA8edM,260
106
- cartesia/tts/types/web_socket_response.py,sha256=fUQbJ6yFzZbzUZPuQWgkFdzP8-FMiKTcya-DIPWjimY,3777
106
+ cartesia/tts/types/web_socket_response.py,sha256=mHDECZ4K84QmN2s0IWuBsXBt83Yq7QxHnolwszIyoYs,3823
107
107
  cartesia/tts/types/web_socket_stream_options.py,sha256=MhDSxBFqMuQeWjoyPqXVnTEzLjF8g6aojeigb5dQUgU,596
108
108
  cartesia/tts/types/web_socket_timestamps_response.py,sha256=kuWXI82ncF1QapnaHEjwrL84qWob7ByQU-yh1e0IEmk,667
109
- cartesia/tts/types/web_socket_tts_output.py,sha256=qxzgWt41821tQaIyFqOgH0pb_51678zMuY-8LZYxRdY,863
110
- cartesia/tts/types/web_socket_tts_request.py,sha256=xTKk-WrLglRHEUwIbbuLfm9hTcS8ww5Th9HBSAEsFDI,1371
109
+ cartesia/tts/types/web_socket_tts_output.py,sha256=uvkv0smTBhdm18Rl17C0Ml4Inh79YBHNzAcKnZBs14Y,979
110
+ cartesia/tts/types/web_socket_tts_request.py,sha256=4qp-mPmVZOMlHAr7f8ABMWYS3cy5OWPjxDNeWayU0aE,1429
111
111
  cartesia/tts/types/word_timestamps.py,sha256=XZ2Q0prdb3F9c3AiOKXu4s3A3jBxE-qIt1npHOf16R0,631
112
- cartesia/tts/utils/constants.py,sha256=khGNVpiQVDmv1oZU7pKTd9C1AHjiaM8zQ2He9d5zI_c,435
112
+ cartesia/tts/utils/constants.py,sha256=1CHa5flJf8--L_eYyOyOiWJNZ-Q81ufHZxDbJs8xYSk,418
113
113
  cartesia/tts/utils/tts.py,sha256=u7PgPxlJs6fcQTfr-jqAvBCAaK3JWLhF5QF4s-PwoMo,2093
114
114
  cartesia/tts/utils/types.py,sha256=DtsiRwrYypXScLu71gNyprUiELuR1l_-ikVaj47gpg4,2047
115
115
  cartesia/version.py,sha256=xk5z2FYkgnvzyjqzmRg67rYl8fnCeHEjPpVmD08bjyE,75
116
116
  cartesia/voice_changer/__init__.py,sha256=UKA8CSAwUb41OL-dcWWUhIsKLLsyY_NQtrklPAVWf9E,685
117
117
  cartesia/voice_changer/client.py,sha256=vvyEbjwBhC-iS09nkmITMl81lNfrVxef3neUADyv-xc,13517
118
118
  cartesia/voice_changer/requests/__init__.py,sha256=MRwSUqio3mg_tvfcpAS0wIZ69HvJsc2kYJ0tUBaJ53U,390
119
- cartesia/voice_changer/requests/streaming_response.py,sha256=lbo7CJeuh0f5hXT4lKG_sDUZDLJWaLqxcwCuSf1IbMQ,982
119
+ cartesia/voice_changer/requests/streaming_response.py,sha256=cV6L9mMY0w2JpJ0xKoFw2OSiN30xI9W2HLmoU1FE6i0,1077
120
120
  cartesia/voice_changer/types/__init__.py,sha256=qAiHsdRpnFeS0lBkYp_NRrhSJiRXCg5-uFibqDWzYVU,430
121
121
  cartesia/voice_changer/types/output_format_container.py,sha256=RqLDELdgeOjYqNTJX1Le62qjiFiJGxf0cYnol88-LLM,166
122
- cartesia/voice_changer/types/streaming_response.py,sha256=gH-2-rlpeI3y9Ou0c7AopHUm3Z5uB3HaoPM1RvFCKwg,1875
123
- cartesia/voices/__init__.py,sha256=tz0hG_v_lguNqtMJMLe4_yhSYOdMkbYCPnKsZLsB9Rc,1627
124
- cartesia/voices/client.py,sha256=00PzrH-FIZNhKqPJNDkkwrToHiqS4zsk4qO2dhxL3mc,31865
125
- cartesia/voices/requests/__init__.py,sha256=oNZkk0ydOwaRgA38vxNQ34K68CCBQN3yrdDTS9mwe7E,984
122
+ cartesia/voice_changer/types/streaming_response.py,sha256=rQ4ZehtOHsCBKijyULz_ahGQYNj1yus6AM6u2wgcBsI,1963
123
+ cartesia/voices/__init__.py,sha256=2D58Bir45LvcvP08QMnPlFE8DD8BONTjPLkIDdKs7vg,1891
124
+ cartesia/voices/client.py,sha256=8zQZAtaCAJi79puMxVhzR5OWCDjows53k4oTvSgcdJM,38867
125
+ cartesia/voices/requests/__init__.py,sha256=XiBJbSYeQCgFMtwywKvQ0Nmp7Zf_0WskzRhgr9c8h38,1072
126
126
  cartesia/voices/requests/create_voice_request.py,sha256=r6dKb9ga0ZsAi_6PXuE43u2lLgfQg2DIYjk2Neng7pI,617
127
127
  cartesia/voices/requests/embedding_response.py,sha256=PGZkBD8UBcv2MYQbBXyD4T6lzaE9oSGGwXx-MoXCp0M,228
128
128
  cartesia/voices/requests/embedding_specifier.py,sha256=PAHdGsVmLLeJC2b1fWHWI_OlhogO1WnJdzoX9pj5N8c,282
129
+ cartesia/voices/requests/get_voices_response.py,sha256=g-ZCaCaLOlZSitcKVhdCtfdKQQz8N3W6E7_wZUNOi5M,747
129
130
  cartesia/voices/requests/id_specifier.py,sha256=UTtoXBEEYaGvg-Dn2QxUDACNB3Vm1O1XbrPtBA3rGzU,252
130
- cartesia/voices/requests/localize_dialect.py,sha256=V_j_1Dv9E8PjOFqjh0gh6MZEG76DIZPCQgyUkIR72xM,402
131
- cartesia/voices/requests/localize_voice_request.py,sha256=AkY4cvx31MF3_gkqMpUzibGIOh9cNF5cOCf3Yqnm7Vc,549
131
+ cartesia/voices/requests/localize_dialect.py,sha256=OHAInU6IP0LBzIY3VYSiU9bRLjXfr1pGXunsLgv1QHs,497
132
+ cartesia/voices/requests/localize_voice_request.py,sha256=oh828eqYkiticD_lerc8WemN3bW13mLZpfRDiKbG75g,703
132
133
  cartesia/voices/requests/mix_voice_specifier.py,sha256=YjOJ2Qt3nqMQzHsYbF1DnZgmZS9zZepLXpji6V9mfgs,266
133
134
  cartesia/voices/requests/mix_voices_request.py,sha256=6JCzFmWKIS1_t-uSoO1m-FQbLWB1zaykTcGV-1s-RqM,275
134
135
  cartesia/voices/requests/update_voice_request.py,sha256=XxJ6TKO4M2s1kXQAZRj8uA4okIABvmWiFhAHJv4BS0Q,282
135
- cartesia/voices/requests/voice.py,sha256=lIdaIaRNR_6d26fHRgJkCOGj8ziZuD7uuW0oOt03nS4,821
136
+ cartesia/voices/requests/voice.py,sha256=M-4lf4W57fx84_JFOy55b9mWcqO4LfzpY-G_Ekv-2Bo,1031
136
137
  cartesia/voices/requests/voice_metadata.py,sha256=S0jPQtBpEb2WSnYDLQTS7pcbNJpc0d01uWravHaqzso,697
137
- cartesia/voices/types/__init__.py,sha256=fSV-9Z1O_xhwIajsaE1_eR4HRthz5oIUAaZ_nJPbgx4,1461
138
+ cartesia/voices/types/__init__.py,sha256=yjxMWjoBpwAZ5UJ2iRSC_kKgZvGmqVd09kQxgcTnMac,1782
138
139
  cartesia/voices/types/base_voice_id.py,sha256=nWRC0rvLpjeMpRbLSmUTPziWo1ZrbPxw22l4gEBWp8Q,118
139
140
  cartesia/voices/types/clone_mode.py,sha256=3sR6wdxym4xDVsoHppp3-V9mpDwP9F9fDfMUQKG24xw,160
140
141
  cartesia/voices/types/create_voice_request.py,sha256=_q0d8QojmQrpU-Puzd_YvWmiC7cBp_lrbKmTLuknYqQ,1005
141
142
  cartesia/voices/types/embedding_response.py,sha256=B7MJ79HIAnxtiP6OT0tt27KBDYTZ3VU0MLuQfb5qVOg,624
142
143
  cartesia/voices/types/embedding_specifier.py,sha256=cf6JfVnISyrvjWup3oAg-RFdMVRxytem6HLwZgKl3gA,671
143
144
  cartesia/voices/types/gender.py,sha256=OrbTO__3HVNculvkcb5Pz-Yoa-Xv8N_rNMrFoy2DoaA,148
145
+ cartesia/voices/types/gender_presentation.py,sha256=rM8pSurYCSH0AGgLsVpVAPp7uz7TQMM1nPa7-Vus7gw,185
146
+ cartesia/voices/types/get_voices_response.py,sha256=c6KMkmJepTUmT7I6tAVOGrPst2kkXxDCXLIf1AnR9NE,1136
144
147
  cartesia/voices/types/id_specifier.py,sha256=yAY-uc9hRJkHXdsSfRZWkE8ga2Sb-KVipOTSXa8Wmp0,634
145
- cartesia/voices/types/localize_dialect.py,sha256=TIkopmT1VOIMVORbiM-HpHGW61WJ_ihyP8-67_RkTew,375
148
+ cartesia/voices/types/localize_dialect.py,sha256=6JpJKeQvtDjCT2n-5yaGOe3D-4nYqUoYrvcCSE2Zxik,463
146
149
  cartesia/voices/types/localize_english_dialect.py,sha256=0PjZNjQv5ll2wWZxGveQIYCUGLtGDVELK9FBWFe7SNc,176
150
+ cartesia/voices/types/localize_french_dialect.py,sha256=aMhqLi_5goAaSGZguZIFOwQ9Yqh5ApL6gS3cDI315lQ,157
147
151
  cartesia/voices/types/localize_portuguese_dialect.py,sha256=6dcThK1qWyS3c-W--3Zz7HK5ixS0qslEWrVQmKSrl9E,161
148
152
  cartesia/voices/types/localize_spanish_dialect.py,sha256=h-H52vk0MBOvJqlzPVPgajfQU6oxpTzHoQAKmSDyaC4,158
149
153
  cartesia/voices/types/localize_target_language.py,sha256=ttngtFVpMvuWAKQztJu_pCaf7V62DzmNq9zthPCb2LI,242
150
- cartesia/voices/types/localize_voice_request.py,sha256=roZkcA7LiYs_L1R9FgTCTIgmHv9TUfXZMgLEnrajJ3I,887
154
+ cartesia/voices/types/localize_voice_request.py,sha256=gvjg292kMgji0L9TNO3VqDS0pHO1vGJUcf0l_vEW_5Y,1098
151
155
  cartesia/voices/types/mix_voice_specifier.py,sha256=B0FE6UREGk1TxlN0GOPwyCuqJbMkWVUs0EFqiJuQfZ8,236
152
156
  cartesia/voices/types/mix_voices_request.py,sha256=R_8bmUmE1br4wmfH1Qu6EnL9uC-V1z5BV3_B7u51EOw,641
153
157
  cartesia/voices/types/update_voice_request.py,sha256=_CEH8nuSZn2qZa9xZlANZXOhJd49XLel3dRy2dfOvr8,716
154
- cartesia/voices/types/voice.py,sha256=echDtXYwyNvoBkwnVBaUV2HzRBbXDqZz0ZZcnj4307g,1278
158
+ cartesia/voices/types/voice.py,sha256=DnJbBs2aX4JGZOxm0V4VSTsy1ijw42QKqpaEScL3Lak,1505
159
+ cartesia/voices/types/voice_expand_options.py,sha256=e4FroWdlxEE-LXQfT1RWlGHtswl8bmXaLMr3xza1fMk,169
155
160
  cartesia/voices/types/voice_id.py,sha256=GDoXcRVeIm-V21R4suxG2zqLD3DLYkXE9kgizadzFKo,79
156
161
  cartesia/voices/types/voice_metadata.py,sha256=4KNGjXMUKm3niv-NvKIFVGtiilpH13heuzKcZYNQxk4,1181
157
162
  cartesia/voices/types/weight.py,sha256=XqDU7_JItNUb5QykIDqTbELlRYQdbt2SviRgW0w2LKo,80
158
- cartesia-2.0.0b2.dist-info/METADATA,sha256=oQCEf6M6zbdJbu9hmvJ_3h8OVDw72BCc8kErO1LE4T8,9056
159
- cartesia-2.0.0b2.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
160
- cartesia-2.0.0b2.dist-info/RECORD,,
163
+ cartesia-2.0.0b8.dist-info/METADATA,sha256=ynQsxGb1v5ZHMnXkeqYceRFrC-bxwuRaopOPyuBbCsk,11208
164
+ cartesia-2.0.0b8.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
165
+ cartesia-2.0.0b8.dist-info/RECORD,,
@@ -1,392 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import typing
4
- from ..core.client_wrapper import SyncClientWrapper
5
- from ..core.request_options import RequestOptions
6
- from .types.paginated_datasets import PaginatedDatasets
7
- from ..core.pydantic_utilities import parse_obj_as
8
- from json.decoder import JSONDecodeError
9
- from ..core.api_error import ApiError
10
- from .types.dataset import Dataset
11
- from .types.paginated_dataset_files import PaginatedDatasetFiles
12
- from ..core.jsonable_encoder import jsonable_encoder
13
- from .. import core
14
- from .types.file_purpose import FilePurpose
15
- from ..core.client_wrapper import AsyncClientWrapper
16
-
17
- # this is used as the default value for optional parameters
18
- OMIT = typing.cast(typing.Any, ...)
19
-
20
-
21
- class DatasetsClient:
22
- def __init__(self, *, client_wrapper: SyncClientWrapper):
23
- self._client_wrapper = client_wrapper
24
-
25
- def list(self, *, request_options: typing.Optional[RequestOptions] = None) -> PaginatedDatasets:
26
- """
27
- Parameters
28
- ----------
29
- request_options : typing.Optional[RequestOptions]
30
- Request-specific configuration.
31
-
32
- Returns
33
- -------
34
- PaginatedDatasets
35
-
36
- Examples
37
- --------
38
- from cartesia import Cartesia
39
-
40
- client = Cartesia(
41
- api_key="YOUR_API_KEY",
42
- )
43
- client.datasets.list()
44
- """
45
- _response = self._client_wrapper.httpx_client.request(
46
- "datasets/",
47
- method="GET",
48
- request_options=request_options,
49
- )
50
- try:
51
- if 200 <= _response.status_code < 300:
52
- return typing.cast(
53
- PaginatedDatasets,
54
- parse_obj_as(
55
- type_=PaginatedDatasets, # type: ignore
56
- object_=_response.json(),
57
- ),
58
- )
59
- _response_json = _response.json()
60
- except JSONDecodeError:
61
- raise ApiError(status_code=_response.status_code, body=_response.text)
62
- raise ApiError(status_code=_response.status_code, body=_response_json)
63
-
64
- def create(self, *, name: str, request_options: typing.Optional[RequestOptions] = None) -> Dataset:
65
- """
66
- Parameters
67
- ----------
68
- name : str
69
-
70
- request_options : typing.Optional[RequestOptions]
71
- Request-specific configuration.
72
-
73
- Returns
74
- -------
75
- Dataset
76
-
77
- Examples
78
- --------
79
- from cartesia import Cartesia
80
-
81
- client = Cartesia(
82
- api_key="YOUR_API_KEY",
83
- )
84
- client.datasets.create(
85
- name="name",
86
- )
87
- """
88
- _response = self._client_wrapper.httpx_client.request(
89
- "datasets/",
90
- method="POST",
91
- json={
92
- "name": name,
93
- },
94
- request_options=request_options,
95
- omit=OMIT,
96
- )
97
- try:
98
- if 200 <= _response.status_code < 300:
99
- return typing.cast(
100
- Dataset,
101
- parse_obj_as(
102
- type_=Dataset, # type: ignore
103
- object_=_response.json(),
104
- ),
105
- )
106
- _response_json = _response.json()
107
- except JSONDecodeError:
108
- raise ApiError(status_code=_response.status_code, body=_response.text)
109
- raise ApiError(status_code=_response.status_code, body=_response_json)
110
-
111
- def list_files(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> PaginatedDatasetFiles:
112
- """
113
- Parameters
114
- ----------
115
- id : str
116
-
117
- request_options : typing.Optional[RequestOptions]
118
- Request-specific configuration.
119
-
120
- Returns
121
- -------
122
- PaginatedDatasetFiles
123
-
124
- Examples
125
- --------
126
- from cartesia import Cartesia
127
-
128
- client = Cartesia(
129
- api_key="YOUR_API_KEY",
130
- )
131
- client.datasets.list_files(
132
- id="id",
133
- )
134
- """
135
- _response = self._client_wrapper.httpx_client.request(
136
- f"datasets/{jsonable_encoder(id)}/files",
137
- method="GET",
138
- request_options=request_options,
139
- )
140
- try:
141
- if 200 <= _response.status_code < 300:
142
- return typing.cast(
143
- PaginatedDatasetFiles,
144
- parse_obj_as(
145
- type_=PaginatedDatasetFiles, # type: ignore
146
- object_=_response.json(),
147
- ),
148
- )
149
- _response_json = _response.json()
150
- except JSONDecodeError:
151
- raise ApiError(status_code=_response.status_code, body=_response.text)
152
- raise ApiError(status_code=_response.status_code, body=_response_json)
153
-
154
- def upload_file(
155
- self, id: str, *, file: core.File, purpose: FilePurpose, request_options: typing.Optional[RequestOptions] = None
156
- ) -> None:
157
- """
158
- Parameters
159
- ----------
160
- id : str
161
-
162
- file : core.File
163
- See core.File for more documentation
164
-
165
- purpose : FilePurpose
166
-
167
- request_options : typing.Optional[RequestOptions]
168
- Request-specific configuration.
169
-
170
- Returns
171
- -------
172
- None
173
- """
174
- _response = self._client_wrapper.httpx_client.request(
175
- f"datasets/{jsonable_encoder(id)}/files",
176
- method="POST",
177
- data={
178
- "purpose": purpose,
179
- },
180
- files={
181
- "file": file,
182
- },
183
- request_options=request_options,
184
- omit=OMIT,
185
- )
186
- try:
187
- if 200 <= _response.status_code < 300:
188
- return
189
- _response_json = _response.json()
190
- except JSONDecodeError:
191
- raise ApiError(status_code=_response.status_code, body=_response.text)
192
- raise ApiError(status_code=_response.status_code, body=_response_json)
193
-
194
-
195
- class AsyncDatasetsClient:
196
- def __init__(self, *, client_wrapper: AsyncClientWrapper):
197
- self._client_wrapper = client_wrapper
198
-
199
- async def list(self, *, request_options: typing.Optional[RequestOptions] = None) -> PaginatedDatasets:
200
- """
201
- Parameters
202
- ----------
203
- request_options : typing.Optional[RequestOptions]
204
- Request-specific configuration.
205
-
206
- Returns
207
- -------
208
- PaginatedDatasets
209
-
210
- Examples
211
- --------
212
- import asyncio
213
-
214
- from cartesia import AsyncCartesia
215
-
216
- client = AsyncCartesia(
217
- api_key="YOUR_API_KEY",
218
- )
219
-
220
-
221
- async def main() -> None:
222
- await client.datasets.list()
223
-
224
-
225
- asyncio.run(main())
226
- """
227
- _response = await self._client_wrapper.httpx_client.request(
228
- "datasets/",
229
- method="GET",
230
- request_options=request_options,
231
- )
232
- try:
233
- if 200 <= _response.status_code < 300:
234
- return typing.cast(
235
- PaginatedDatasets,
236
- parse_obj_as(
237
- type_=PaginatedDatasets, # type: ignore
238
- object_=_response.json(),
239
- ),
240
- )
241
- _response_json = _response.json()
242
- except JSONDecodeError:
243
- raise ApiError(status_code=_response.status_code, body=_response.text)
244
- raise ApiError(status_code=_response.status_code, body=_response_json)
245
-
246
- async def create(self, *, name: str, request_options: typing.Optional[RequestOptions] = None) -> Dataset:
247
- """
248
- Parameters
249
- ----------
250
- name : str
251
-
252
- request_options : typing.Optional[RequestOptions]
253
- Request-specific configuration.
254
-
255
- Returns
256
- -------
257
- Dataset
258
-
259
- Examples
260
- --------
261
- import asyncio
262
-
263
- from cartesia import AsyncCartesia
264
-
265
- client = AsyncCartesia(
266
- api_key="YOUR_API_KEY",
267
- )
268
-
269
-
270
- async def main() -> None:
271
- await client.datasets.create(
272
- name="name",
273
- )
274
-
275
-
276
- asyncio.run(main())
277
- """
278
- _response = await self._client_wrapper.httpx_client.request(
279
- "datasets/",
280
- method="POST",
281
- json={
282
- "name": name,
283
- },
284
- request_options=request_options,
285
- omit=OMIT,
286
- )
287
- try:
288
- if 200 <= _response.status_code < 300:
289
- return typing.cast(
290
- Dataset,
291
- parse_obj_as(
292
- type_=Dataset, # type: ignore
293
- object_=_response.json(),
294
- ),
295
- )
296
- _response_json = _response.json()
297
- except JSONDecodeError:
298
- raise ApiError(status_code=_response.status_code, body=_response.text)
299
- raise ApiError(status_code=_response.status_code, body=_response_json)
300
-
301
- async def list_files(
302
- self, id: str, *, request_options: typing.Optional[RequestOptions] = None
303
- ) -> PaginatedDatasetFiles:
304
- """
305
- Parameters
306
- ----------
307
- id : str
308
-
309
- request_options : typing.Optional[RequestOptions]
310
- Request-specific configuration.
311
-
312
- Returns
313
- -------
314
- PaginatedDatasetFiles
315
-
316
- Examples
317
- --------
318
- import asyncio
319
-
320
- from cartesia import AsyncCartesia
321
-
322
- client = AsyncCartesia(
323
- api_key="YOUR_API_KEY",
324
- )
325
-
326
-
327
- async def main() -> None:
328
- await client.datasets.list_files(
329
- id="id",
330
- )
331
-
332
-
333
- asyncio.run(main())
334
- """
335
- _response = await self._client_wrapper.httpx_client.request(
336
- f"datasets/{jsonable_encoder(id)}/files",
337
- method="GET",
338
- request_options=request_options,
339
- )
340
- try:
341
- if 200 <= _response.status_code < 300:
342
- return typing.cast(
343
- PaginatedDatasetFiles,
344
- parse_obj_as(
345
- type_=PaginatedDatasetFiles, # type: ignore
346
- object_=_response.json(),
347
- ),
348
- )
349
- _response_json = _response.json()
350
- except JSONDecodeError:
351
- raise ApiError(status_code=_response.status_code, body=_response.text)
352
- raise ApiError(status_code=_response.status_code, body=_response_json)
353
-
354
- async def upload_file(
355
- self, id: str, *, file: core.File, purpose: FilePurpose, request_options: typing.Optional[RequestOptions] = None
356
- ) -> None:
357
- """
358
- Parameters
359
- ----------
360
- id : str
361
-
362
- file : core.File
363
- See core.File for more documentation
364
-
365
- purpose : FilePurpose
366
-
367
- request_options : typing.Optional[RequestOptions]
368
- Request-specific configuration.
369
-
370
- Returns
371
- -------
372
- None
373
- """
374
- _response = await self._client_wrapper.httpx_client.request(
375
- f"datasets/{jsonable_encoder(id)}/files",
376
- method="POST",
377
- data={
378
- "purpose": purpose,
379
- },
380
- files={
381
- "file": file,
382
- },
383
- request_options=request_options,
384
- omit=OMIT,
385
- )
386
- try:
387
- if 200 <= _response.status_code < 300:
388
- return
389
- _response_json = _response.json()
390
- except JSONDecodeError:
391
- raise ApiError(status_code=_response.status_code, body=_response.text)
392
- raise ApiError(status_code=_response.status_code, body=_response_json)