sarvamai 0.1.7a0__py3-none-any.whl → 0.1.8a0__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.
- sarvamai/__init__.py +50 -52
- sarvamai/client.py +3 -3
- sarvamai/core/client_wrapper.py +2 -2
- sarvamai/errors/service_unavailable_error.py +2 -1
- sarvamai/requests/__init__.py +20 -22
- sarvamai/requests/audio_output.py +11 -0
- sarvamai/requests/audio_output_data.py +15 -0
- sarvamai/requests/{files_request.py → close_connection.py} +2 -3
- sarvamai/requests/error_response.py +11 -0
- sarvamai/requests/error_response_data.py +18 -0
- sarvamai/requests/initialize_connection.py +11 -0
- sarvamai/requests/initialize_connection_data.py +24 -0
- sarvamai/requests/ping_signal.py +9 -0
- sarvamai/requests/send_text.py +11 -0
- sarvamai/requests/{base_job_parameters.py → send_text_data.py} +2 -2
- sarvamai/speech_to_text/raw_client.py +9 -8
- sarvamai/text_to_speech_streaming/client.py +136 -0
- sarvamai/text_to_speech_streaming/raw_client.py +113 -0
- sarvamai/text_to_speech_streaming/socket_client.py +175 -0
- sarvamai/types/__init__.py +28 -28
- sarvamai/types/audio_output.py +21 -0
- sarvamai/types/{bulk_job_callback.py → audio_output_data.py} +5 -5
- sarvamai/types/{files_request.py → close_connection.py} +2 -3
- sarvamai/types/error_response.py +21 -0
- sarvamai/types/{files_download_response.py → error_response_data.py} +11 -8
- sarvamai/types/initialize_connection.py +21 -0
- sarvamai/types/initialize_connection_data.py +34 -0
- sarvamai/types/initialize_connection_data_model.py +5 -0
- sarvamai/types/initialize_connection_data_output_audio_bitrate.py +7 -0
- sarvamai/types/initialize_connection_data_speaker.py +28 -0
- sarvamai/types/initialize_connection_data_target_language_code.py +8 -0
- sarvamai/types/{task_file_details.py → ping_signal.py} +2 -3
- sarvamai/types/{file_signed_url_details.py → send_text.py} +4 -3
- sarvamai/types/{base_job_parameters.py → send_text_data.py} +3 -1
- {sarvamai-0.1.7a0.dist-info → sarvamai-0.1.8a0.dist-info}/METADATA +1 -1
- {sarvamai-0.1.7a0.dist-info → sarvamai-0.1.8a0.dist-info}/RECORD +38 -38
- sarvamai/requests/bulk_job_callback.py +0 -15
- sarvamai/requests/bulk_job_init_response_v_1.py +0 -27
- sarvamai/requests/file_signed_url_details.py +0 -10
- sarvamai/requests/files_download_response.py +0 -15
- sarvamai/requests/files_upload_response.py +0 -15
- sarvamai/requests/job_status_v_1.py +0 -70
- sarvamai/requests/speech_to_text_job_parameters.py +0 -32
- sarvamai/requests/task_detail_v_1.py +0 -15
- sarvamai/requests/task_file_details.py +0 -8
- sarvamai/speech_to_text_job/client.py +0 -454
- sarvamai/speech_to_text_job/raw_client.py +0 -1189
- sarvamai/types/bulk_job_init_response_v_1.py +0 -39
- sarvamai/types/files_upload_response.py +0 -25
- sarvamai/types/job_state.py +0 -5
- sarvamai/types/job_status_v_1.py +0 -80
- sarvamai/types/speech_to_text_job_parameters.py +0 -44
- sarvamai/types/storage_container_type.py +0 -5
- sarvamai/types/task_detail_v_1.py +0 -25
- sarvamai/types/task_state.py +0 -5
- /sarvamai/{speech_to_text_job → text_to_speech_streaming}/__init__.py +0 -0
- {sarvamai-0.1.7a0.dist-info → sarvamai-0.1.8a0.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
7
|
+
from .initialize_connection_data_model import InitializeConnectionDataModel
|
|
8
|
+
from .initialize_connection_data_output_audio_bitrate import InitializeConnectionDataOutputAudioBitrate
|
|
9
|
+
from .initialize_connection_data_speaker import InitializeConnectionDataSpeaker
|
|
10
|
+
from .initialize_connection_data_target_language_code import InitializeConnectionDataTargetLanguageCode
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class InitializeConnectionData(UniversalBaseModel):
|
|
14
|
+
target_language_code: InitializeConnectionDataTargetLanguageCode
|
|
15
|
+
speaker: InitializeConnectionDataSpeaker
|
|
16
|
+
pitch: typing.Optional[float] = None
|
|
17
|
+
pace: typing.Optional[float] = None
|
|
18
|
+
loudness: typing.Optional[float] = None
|
|
19
|
+
speech_sample_rate: typing.Optional[int] = None
|
|
20
|
+
enable_preprocessing: typing.Optional[bool] = None
|
|
21
|
+
model: InitializeConnectionDataModel
|
|
22
|
+
output_audio_codec: typing.Optional[typing.Literal["mp3"]] = None
|
|
23
|
+
output_audio_bitrate: typing.Optional[InitializeConnectionDataOutputAudioBitrate] = None
|
|
24
|
+
min_buffer_size: typing.Optional[int] = None
|
|
25
|
+
max_chunk_length: typing.Optional[int] = None
|
|
26
|
+
|
|
27
|
+
if IS_PYDANTIC_V2:
|
|
28
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
29
|
+
else:
|
|
30
|
+
|
|
31
|
+
class Config:
|
|
32
|
+
frozen = True
|
|
33
|
+
smart_union = True
|
|
34
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
InitializeConnectionDataSpeaker = typing.Union[
|
|
6
|
+
typing.Literal[
|
|
7
|
+
"meera",
|
|
8
|
+
"pavithra",
|
|
9
|
+
"maitreyi",
|
|
10
|
+
"arvind",
|
|
11
|
+
"amol",
|
|
12
|
+
"amartya",
|
|
13
|
+
"diya",
|
|
14
|
+
"neel",
|
|
15
|
+
"misha",
|
|
16
|
+
"vian",
|
|
17
|
+
"arjun",
|
|
18
|
+
"maya",
|
|
19
|
+
"anushka",
|
|
20
|
+
"abhilash",
|
|
21
|
+
"manisha",
|
|
22
|
+
"vidya",
|
|
23
|
+
"arya",
|
|
24
|
+
"karun",
|
|
25
|
+
"hitesh",
|
|
26
|
+
],
|
|
27
|
+
typing.Any,
|
|
28
|
+
]
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
InitializeConnectionDataTargetLanguageCode = typing.Union[
|
|
6
|
+
typing.Literal["bn-IN", "en-IN", "gu-IN", "hi-IN", "kn-IN", "ml-IN", "mr-IN", "od-IN", "pa-IN", "ta-IN", "te-IN"],
|
|
7
|
+
typing.Any,
|
|
8
|
+
]
|
|
@@ -6,9 +6,8 @@ import pydantic
|
|
|
6
6
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
class
|
|
10
|
-
|
|
11
|
-
file_id: str
|
|
9
|
+
class PingSignal(UniversalBaseModel):
|
|
10
|
+
type: typing.Literal["ping"] = "ping"
|
|
12
11
|
|
|
13
12
|
if IS_PYDANTIC_V2:
|
|
14
13
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
@@ -4,11 +4,12 @@ import typing
|
|
|
4
4
|
|
|
5
5
|
import pydantic
|
|
6
6
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
7
|
+
from .send_text_data import SendTextData
|
|
7
8
|
|
|
8
9
|
|
|
9
|
-
class
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
class SendText(UniversalBaseModel):
|
|
11
|
+
type: typing.Literal["text"] = "text"
|
|
12
|
+
data: SendTextData
|
|
12
13
|
|
|
13
14
|
if IS_PYDANTIC_V2:
|
|
14
15
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
@@ -6,7 +6,9 @@ import pydantic
|
|
|
6
6
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
class
|
|
9
|
+
class SendTextData(UniversalBaseModel):
|
|
10
|
+
text: str
|
|
11
|
+
|
|
10
12
|
if IS_PYDANTIC_V2:
|
|
11
13
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
12
14
|
else:
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
sarvamai/__init__.py,sha256=
|
|
1
|
+
sarvamai/__init__.py,sha256=QGXryUl1KmT9TS1UUl9cmad-6AUfGz2oBefVRhOSsiQ,8926
|
|
2
2
|
sarvamai/chat/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
|
|
3
3
|
sarvamai/chat/client.py,sha256=xOSj83Gr6Q7eY2qUeATiuXYQqBqWqSCQlIEopK5fKus,11022
|
|
4
4
|
sarvamai/chat/raw_client.py,sha256=A2kRuZcVWlJhyYCD7YKgqNkZEp3cYa1731KhRkhirU0,17885
|
|
5
|
-
sarvamai/client.py,sha256=
|
|
5
|
+
sarvamai/client.py,sha256=aI1sw5LVGMjgukgZLDlUmA17ecK1yGsQxH-W_JiCrco,7177
|
|
6
6
|
sarvamai/core/__init__.py,sha256=YE2CtXeASe1RAbaI39twKWYKCuT4tW5is9HWHhJjR_g,1653
|
|
7
7
|
sarvamai/core/api_error.py,sha256=44vPoTyWN59gonCIZMdzw7M1uspygiLnr3GNFOoVL2Q,614
|
|
8
|
-
sarvamai/core/client_wrapper.py,sha256
|
|
8
|
+
sarvamai/core/client_wrapper.py,sha256=-K4-iNvKgq7YqyqGnI4VHXuTEIcyA2kEOKnBhtqihk4,2078
|
|
9
9
|
sarvamai/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
|
|
10
10
|
sarvamai/core/events.py,sha256=j7VWXgMpOsjCXdzY22wIhI7Q-v5InZ4WchRzA88x_Sk,856
|
|
11
11
|
sarvamai/core/file.py,sha256=d4NNbX8XvXP32z8KpK2Xovv33nFfruIrpz0QWxlgpZk,2663
|
|
@@ -23,23 +23,23 @@ sarvamai/errors/__init__.py,sha256=EEGwHETz9DGVcwYvrxxvTpfqaG-tjF-SiYEe6ULeXt4,5
|
|
|
23
23
|
sarvamai/errors/bad_request_error.py,sha256=PnE3v3kETCXm9E3LiNcHLNtjPEUvpe98-r59q-kQb78,338
|
|
24
24
|
sarvamai/errors/forbidden_error.py,sha256=JhKThpM90vF0BEmaBn-8P_0NVYmgJ2BE9kvWmLxU_nA,337
|
|
25
25
|
sarvamai/errors/internal_server_error.py,sha256=t1-kpoDC2biEuoE-Ne8v1kuQswvsIEwt_xPPoBmGG00,342
|
|
26
|
-
sarvamai/errors/service_unavailable_error.py,sha256=
|
|
26
|
+
sarvamai/errors/service_unavailable_error.py,sha256=rD3aIecIJ-eGSmSJYPoSMt3-Datrd3NjQo-MIGKCKXM,378
|
|
27
27
|
sarvamai/errors/too_many_requests_error.py,sha256=Dl-_pfpboXJh-OtSbRaPQOB-UXvpVOElRDgjxbi4j7w,343
|
|
28
28
|
sarvamai/errors/unprocessable_entity_error.py,sha256=JqxtzIhvjkpQDqbT9Q-go1n-gyv9PsYqq0ng_ZYyBMo,347
|
|
29
29
|
sarvamai/play.py,sha256=4fh86zy8g8IPU2O8yPBY7QxXQOivv_nWQvPQsOa1arw,2183
|
|
30
30
|
sarvamai/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
31
|
-
sarvamai/requests/__init__.py,sha256=
|
|
31
|
+
sarvamai/requests/__init__.py,sha256=9o0Quh-d3Pg5ybS95fzgR4aA5IpJahRbOY-Y-ebvarw,4496
|
|
32
32
|
sarvamai/requests/audio_data.py,sha256=QI3SK5aiAg2yJ-m3l9CxOkONnH3CCKMFCl9kAdMs19o,410
|
|
33
33
|
sarvamai/requests/audio_message.py,sha256=ZBeogjGE6YFXXM-0g8zq9SoizDk21reR0YXSB-0fMjg,214
|
|
34
|
-
sarvamai/requests/
|
|
35
|
-
sarvamai/requests/
|
|
36
|
-
sarvamai/requests/bulk_job_init_response_v_1.py,sha256=qvi0lb0squV7PXiLbspspHMXjBefXqNThx-VTwbZHSQ,710
|
|
34
|
+
sarvamai/requests/audio_output.py,sha256=BnoX345rwoWgaMaj24u_19-SjmPV0xt7vlFEEDKRw20,280
|
|
35
|
+
sarvamai/requests/audio_output_data.py,sha256=v5s67mI1RNO20-C39lRXWpHgV13yOPXML1VrZHke9sY,349
|
|
37
36
|
sarvamai/requests/chat_completion_request_assistant_message.py,sha256=xI6nqqY2t4j56DGEAt2aasDnI7no_mxxCBk_ChxNQjg,247
|
|
38
37
|
sarvamai/requests/chat_completion_request_message.py,sha256=B5tOPGNdSaMOJRl0k26uuXaqvpTrftiu-99CDDBTnSI,736
|
|
39
38
|
sarvamai/requests/chat_completion_request_system_message.py,sha256=ZvjBuyL0oM7Vwd9bR_Yc7yGXUGLHYn9Np9jqEebiMRs,242
|
|
40
39
|
sarvamai/requests/chat_completion_request_user_message.py,sha256=IqYy7K-qF9oQ8AUIvuH06EsLL-Wn6QufPMPpSR-VNGI,238
|
|
41
40
|
sarvamai/requests/chat_completion_response_message.py,sha256=JFazj4zK-nj_wjdvNLDkcfIFxIlqw49Xf_P8o7d70aY,336
|
|
42
41
|
sarvamai/requests/choice.py,sha256=uulX4MZUoThEMcD3a80o_3V5YpnpqN8DfPaNZWVz-1o,867
|
|
42
|
+
sarvamai/requests/close_connection.py,sha256=p6_bsmzUCDRnIZN3cLN_UPXT7t-_22CYhVixi7pq90c,199
|
|
43
43
|
sarvamai/requests/completion_usage.py,sha256=LbZV-RxcxKdCAYqhCiaRtSFF3VwMJq71A989Z1rm-I8,428
|
|
44
44
|
sarvamai/requests/config_message.py,sha256=EpYioGvDhCXDMvGH7Q1F7448zJzoHmlkQ1owoNGbWAw,383
|
|
45
45
|
sarvamai/requests/create_chat_completion_response.py,sha256=TqS9u5_WVWMok_NreT4TeOsLJQeybPkbJm45Q0Zxw30,857
|
|
@@ -48,14 +48,15 @@ sarvamai/requests/diarized_transcript.py,sha256=X-znuJ45oqwXzVyJumBHSqVGLz6JnoYF
|
|
|
48
48
|
sarvamai/requests/error_data.py,sha256=u87qHVagiqyyowBgMDAPPLlZzr0Z5GXlOU7VIUzfQ8E,239
|
|
49
49
|
sarvamai/requests/error_details.py,sha256=By7cYfitQynAM1D5_3yFc22zXQJEceNgkhoyGWmg4zw,529
|
|
50
50
|
sarvamai/requests/error_message.py,sha256=-J21pfEJghsms4pNe55O_9qkODNd-BKLMt96AOztYUs,257
|
|
51
|
+
sarvamai/requests/error_response.py,sha256=A8j12JQ7JJkUcnt26k2M9uwXXkwyT-LNqG3BO3U8NIk,288
|
|
52
|
+
sarvamai/requests/error_response_data.py,sha256=l9tGTykaKZ8pKxdw9RKitpW49kKcs4aGibH7rKG2v7w,461
|
|
51
53
|
sarvamai/requests/events_data.py,sha256=3seSash8DysPUWX6mKPzoEzWZlsrK4Tann2GFSbQjZg,286
|
|
52
|
-
sarvamai/requests/
|
|
53
|
-
sarvamai/requests/
|
|
54
|
-
sarvamai/requests/files_request.py,sha256=VtmR-bfsOgYW_fYkreDCGkZl9uumxz-RFDBHebAQ2Yg,210
|
|
55
|
-
sarvamai/requests/files_upload_response.py,sha256=vXM35jRe_kSZ6ydSTq7MeZEkLpdeZN01n36YvdM8b8M,487
|
|
56
|
-
sarvamai/requests/job_status_v_1.py,sha256=uPki82pWAi4lo7GrJuot0qpXUq5M382d_PPRFGB0kxo,1269
|
|
54
|
+
sarvamai/requests/initialize_connection.py,sha256=QO4zyg2gEAeNRcxuew6Y5UW9l7OYG68sj_mL3c26GpA,317
|
|
55
|
+
sarvamai/requests/initialize_connection_data.py,sha256=Mctwqbtp2iPVSHWbXDWFrHNtOFhI5sEeGM5pjCmY_Qs,1278
|
|
57
56
|
sarvamai/requests/language_identification_response.py,sha256=BdS5U9Gic-71vb--ph6HGvd2hGNKDXERC7yrn8vFcvI,1098
|
|
58
|
-
sarvamai/requests/
|
|
57
|
+
sarvamai/requests/ping_signal.py,sha256=Auzf9pafJD9vQFFtMLM3iyLtIqsOjEzVd7Jt9q2LoKY,193
|
|
58
|
+
sarvamai/requests/send_text.py,sha256=DWzbNgeNN2xSIYgk2zEisgLqjwq5oleqJVHrtOnIqbE,267
|
|
59
|
+
sarvamai/requests/send_text_data.py,sha256=2jds-xd77u-YTgIWQsTUBKE-_7tsrFshXXuC_Ld4ULo,161
|
|
59
60
|
sarvamai/requests/speech_to_text_response.py,sha256=GS3jNmHDOxqNZ7cvftD62khUMSBIQUu6zEPdCqk8zJk,1041
|
|
60
61
|
sarvamai/requests/speech_to_text_response_data.py,sha256=69fYRdL0tCKpgKQqwzcM4T4Nf_lRxJFh-VCFe_tN964,364
|
|
61
62
|
sarvamai/requests/speech_to_text_streaming_response.py,sha256=cN5tKE9wOWuyBna4wmrf-0LfkOULMpRaJ7qjLuu76V0,348
|
|
@@ -65,8 +66,6 @@ sarvamai/requests/speech_to_text_translate_response_data.py,sha256=OmjunP9R2xert
|
|
|
65
66
|
sarvamai/requests/speech_to_text_translate_streaming_response.py,sha256=KTjYZ0_oLapuM5Iiq7UwejMsrL1TGgFAW4k5l17TkZs,385
|
|
66
67
|
sarvamai/requests/speech_to_text_translate_transcription_data.py,sha256=oAmW5ihTd301IJYN2u2KrZxB0j3EMacFBfvIhtOSjFI,595
|
|
67
68
|
sarvamai/requests/stop_configuration.py,sha256=Xmp8zyUpnN65pH5A7NqefckB8wk53_BBzOUrgRm2gXs,146
|
|
68
|
-
sarvamai/requests/task_detail_v_1.py,sha256=2rehl7dSDSgzaw13b9bODamhiN2uB-IK4cOksq8Vmqc,582
|
|
69
|
-
sarvamai/requests/task_file_details.py,sha256=yf6NVXymizG9wTsCGl-xolsxDA_nDOzM3qeabiqMs60,186
|
|
70
69
|
sarvamai/requests/text_to_speech_response.py,sha256=-FNMERV6zrwIH27htwBy3QiPY8WhbTmlmQ06RegYQaw,391
|
|
71
70
|
sarvamai/requests/timestamps_model.py,sha256=LkaYC5poipZe4r5-7Tp_Y058RXYWXwocn46GvGpZJzs,464
|
|
72
71
|
sarvamai/requests/transcription_metrics.py,sha256=FDclX2Z9Z3azrDXxtZW8xbkxxWMZQXEbaYMMheAAAdk,321
|
|
@@ -74,10 +73,7 @@ sarvamai/requests/translation_response.py,sha256=8iwQeZB1purHY757bIQI-n9QeVRBIta
|
|
|
74
73
|
sarvamai/requests/transliteration_response.py,sha256=KqRkqnegLmt7LjdVxjRePX6RoqaLm64KFGZ6q7mXyfw,426
|
|
75
74
|
sarvamai/speech_to_text/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
|
|
76
75
|
sarvamai/speech_to_text/client.py,sha256=E76V1BZ236AN37cvm7c-NTRTnDleiYQ4_hKHE3wfevY,11435
|
|
77
|
-
sarvamai/speech_to_text/raw_client.py,sha256=
|
|
78
|
-
sarvamai/speech_to_text_job/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
|
|
79
|
-
sarvamai/speech_to_text_job/client.py,sha256=kmYoK39CK9TlLwSRU3sLzTbP4QzqmHbk3ehC8oUASmA,12468
|
|
80
|
-
sarvamai/speech_to_text_job/raw_client.py,sha256=v14drcQLAmpqozRUNKmw1F9j3omieMPC8R88Th1BID8,48055
|
|
76
|
+
sarvamai/speech_to_text/raw_client.py,sha256=rencVGZ5cVX1eHhYoVMhcrlkqVmpI4aAGTrSC7kcYUI,25690
|
|
81
77
|
sarvamai/speech_to_text_streaming/__init__.py,sha256=q7QygMmZCHJ-4FMhhL_6XNV_dsqlIFRCO1iSxoyxaaY,437
|
|
82
78
|
sarvamai/speech_to_text_streaming/client.py,sha256=WdkzZxKMdnQ2hHv9hzJlfSNggRJLKFljRiC7695Jcog,8224
|
|
83
79
|
sarvamai/speech_to_text_streaming/raw_client.py,sha256=7zcgVw7CXA2TySkJKQkS-NdnJOMRudmV_m4NaigICN0,7405
|
|
@@ -101,18 +97,22 @@ sarvamai/text/raw_client.py,sha256=lQ7bV9aVqxjwEUHMPEZ4x0_Xs036_yFArMK9rnYT4ZI,4
|
|
|
101
97
|
sarvamai/text_to_speech/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
|
|
102
98
|
sarvamai/text_to_speech/client.py,sha256=aVvwdGTfgVUekALLpdyxKNsGUZQ2Ee2OZBLx6WP6g_E,8842
|
|
103
99
|
sarvamai/text_to_speech/raw_client.py,sha256=3Zu6HN_FOY683Vm-EN-OL7YAbLsftjJlFm5OyRGNtYc,14780
|
|
104
|
-
sarvamai/
|
|
100
|
+
sarvamai/text_to_speech_streaming/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
|
|
101
|
+
sarvamai/text_to_speech_streaming/client.py,sha256=7nxuvqTsn6uLditXNyUUcPMhIZUF_4Mnxzy1J5rNFTg,5379
|
|
102
|
+
sarvamai/text_to_speech_streaming/raw_client.py,sha256=7qcOPJIAK6YvPjsNSPl8IvD0abnwxYTWjS4XuQ6Ejh0,4560
|
|
103
|
+
sarvamai/text_to_speech_streaming/socket_client.py,sha256=fKGmayvIj3qnmnuDlz_QrPDN14CvrtgkGVh0k27yI68,6313
|
|
104
|
+
sarvamai/types/__init__.py,sha256=4Npc0DNOEokwBSpkoCiNyvtD5gCl9tTeFRsX6Q_gfDo,6445
|
|
105
105
|
sarvamai/types/audio_data.py,sha256=rgOukLkLNJ_HBBVE2g5dfEL2CWjRoGiMvCtpq0qTB1Y,829
|
|
106
106
|
sarvamai/types/audio_message.py,sha256=sB4EgkWkWJzipYXobkmM9AYZTTZtCpg_ySKssUeznUE,560
|
|
107
|
-
sarvamai/types/
|
|
108
|
-
sarvamai/types/
|
|
109
|
-
sarvamai/types/bulk_job_init_response_v_1.py,sha256=1iPzqVz6pN9zWWxthboPl2yFHOsewkqjlNwVmV0RTaE,1085
|
|
107
|
+
sarvamai/types/audio_output.py,sha256=Eq-YUZa1mSDwt7bax2c4Vv2gBlyM_JBJWzHhTAhFSko,621
|
|
108
|
+
sarvamai/types/audio_output_data.py,sha256=Og-yoeYzL--9G0-HATRe_M_XkKP6uLWuc1Qxbjte8LI,745
|
|
110
109
|
sarvamai/types/chat_completion_request_assistant_message.py,sha256=pFSONJ6CBsv3frcteid66SOKMkFwQ1UJs_e0XwwbKis,624
|
|
111
110
|
sarvamai/types/chat_completion_request_message.py,sha256=4ZfaNvaphnPdJqYSeSXMZwBhkrAqBz3aob6j-4Cklho,1638
|
|
112
111
|
sarvamai/types/chat_completion_request_system_message.py,sha256=E7YhTk1zr4u7dj_yylrf7_cyRrxpBssNBHhqxsb1b74,619
|
|
113
112
|
sarvamai/types/chat_completion_request_user_message.py,sha256=J3WhlrfOfCCe7ugmJIfP_L9st3OFtXkIjZTSuR8O9nQ,615
|
|
114
113
|
sarvamai/types/chat_completion_response_message.py,sha256=wz935eBnCkSIl0I0qMxBuH4vAUCso1aHDGReMW1VHGE,744
|
|
115
114
|
sarvamai/types/choice.py,sha256=uXBCsjWP9VK3XWQWZUeI4EnU10w0G9nAfKn2tJZvxko,1244
|
|
115
|
+
sarvamai/types/close_connection.py,sha256=bsPGGh7yYJv0tikBRXmEe6ZC1GsUJy5kwwt30kiiqK4,552
|
|
116
116
|
sarvamai/types/completion_usage.py,sha256=xYQGlQUbKqsksuV73H-1ajjfT5M7w47eLfdWXSlrI5M,843
|
|
117
117
|
sarvamai/types/config_message.py,sha256=sGrT-qYTRqLVfIo5nRUuRlqPtPVmiAkUAnaMtlmQYCU,778
|
|
118
118
|
sarvamai/types/create_chat_completion_response.py,sha256=4nEzeWzHGW1_BmRAtOuGsbRZ0ojNgnzJSMUFyYuYviw,1285
|
|
@@ -122,23 +122,27 @@ sarvamai/types/error_code.py,sha256=Ts_zcCTJiKoA1rAK9VaW9SfuQDk-DT3pd6KKwzz2udQ,
|
|
|
122
122
|
sarvamai/types/error_data.py,sha256=gdlrdKLkfgGoe-znCCfWTikKlf07iZy1l4lgPyZTPwE,635
|
|
123
123
|
sarvamai/types/error_details.py,sha256=Faggc5PWERfCN2d9E5JzsEMNq9XSnoPTEdgi0lL8ea0,935
|
|
124
124
|
sarvamai/types/error_message.py,sha256=i_vDykKyMlkWLhJCpMAeYI1NzRDFsW2CTU4-mzdBAfE,622
|
|
125
|
+
sarvamai/types/error_response.py,sha256=3m17Aj3GY_-mSY2lH-GkbuiyewTm-wNL9UQ1exLvXyQ,629
|
|
126
|
+
sarvamai/types/error_response_data.py,sha256=hncN_zmPg8kqSHjNciYLn2QeNqzqHxKiZDlKOvjKdwA,838
|
|
125
127
|
sarvamai/types/events_data.py,sha256=hDSOyODc8-lmpduJIQkps9kHlUZKYXGw3lETi8irHt0,681
|
|
126
|
-
sarvamai/types/file_signed_url_details.py,sha256=_Zc1NMHxB94mNDFfbEpXPK4Z0X3i_nSiWFDH1oEX4uo,620
|
|
127
|
-
sarvamai/types/files_download_response.py,sha256=JgclLnQl0g3MGlGRLclJjc4LbgRv3RU46tGtdUAwrio,808
|
|
128
|
-
sarvamai/types/files_request.py,sha256=Jh8xPjoOTjY7DOE2EieoRqtkWkYxz9j-BP8TvWxuRLc,549
|
|
129
|
-
sarvamai/types/files_upload_response.py,sha256=wRntZyh1-LGpo4-x_986Nv2A9rv9asDx93pqoQxNpTY,804
|
|
130
128
|
sarvamai/types/finish_reason.py,sha256=PBWtBNkX4FMaODmlUehpF6qLB5uH_zR-Mw3M4uhIB6U,209
|
|
131
129
|
sarvamai/types/format.py,sha256=57LicD0XLqW4D1QEnZWsWGifzRy1GV9P5utKPXLoxtg,144
|
|
132
|
-
sarvamai/types/
|
|
133
|
-
sarvamai/types/
|
|
130
|
+
sarvamai/types/initialize_connection.py,sha256=qL9vhyZL7fJxV1UFHtCmFMYaVgZkCWMkP4v-TCREAow,659
|
|
131
|
+
sarvamai/types/initialize_connection_data.py,sha256=yI-rM1tkh1mdQp0hUfLWOeHlmawyWaZav5awKcZESN8,1530
|
|
132
|
+
sarvamai/types/initialize_connection_data_model.py,sha256=be3UJGXGKU4X4qswVtAEJ2kR2DtBxoAecY2YnHNZfxQ,179
|
|
133
|
+
sarvamai/types/initialize_connection_data_output_audio_bitrate.py,sha256=Wl2b6KR_shf6FzsBr1RJxBeVduS6AtO8skwQqOaffFc,209
|
|
134
|
+
sarvamai/types/initialize_connection_data_speaker.py,sha256=TW-tEGVALD-67FqWLzudeWtFmUPKjZBOy7X2_pjg9Y4,507
|
|
135
|
+
sarvamai/types/initialize_connection_data_target_language_code.py,sha256=iEuRFQJPsXO6lCwbNOoB7BzvoLCPIXL7UbIOKOMIjPs,276
|
|
134
136
|
sarvamai/types/language_identification_response.py,sha256=jG4ZQ6KQHCiEDqC51OniOwiRdW14Fbz22bbTsUDp_kc,1483
|
|
135
137
|
sarvamai/types/numerals_format.py,sha256=xg3lYiHcnzyFwuwRcaIteJLH_Pz6pJ9n9kTlYPEnCBU,165
|
|
138
|
+
sarvamai/types/ping_signal.py,sha256=4X0E96-0Gf4VpJP3GDjzw4963LMxU0a_ykaknJwS_7o,545
|
|
136
139
|
sarvamai/types/reasoning_effort.py,sha256=_TBLn3rQgzJAdnKqV2g0PETbrSBZl0fPLfQ5ZE9H4Pc,164
|
|
137
140
|
sarvamai/types/response_type.py,sha256=yyk0QTIQlNa9W0Uoj_5_ey_Q3Bu8Jij5GkgR0Rt_WnU,163
|
|
138
141
|
sarvamai/types/role.py,sha256=3eY01zZQKB8BSD4cFDeVjz-o2qnHJKz1vnToLqbExxs,115
|
|
139
142
|
sarvamai/types/sarvam_model_ids.py,sha256=iYBMglf31KQ1iUZeAMQ-2PP9NDcyHRG7goz7O9VG8qg,124
|
|
143
|
+
sarvamai/types/send_text.py,sha256=kgST6V5NuURzgBpuiDi8fVwDg768ttDoeY9k1dSSb1Y,607
|
|
144
|
+
sarvamai/types/send_text_data.py,sha256=H8yfcvd4gvyN34RrZ9i4qQvieednNBhL7i7isX4asuY,519
|
|
140
145
|
sarvamai/types/speech_sample_rate.py,sha256=Hfi79KL2Y1W7OIvvrfWnt7EUvmU5i7bxYvXivrY_aUA,88
|
|
141
|
-
sarvamai/types/speech_to_text_job_parameters.py,sha256=J2DL2Q-Wzjk7vbPklbVWwn05uDfupCtQ97O32ttJa68,1438
|
|
142
146
|
sarvamai/types/speech_to_text_language.py,sha256=cq8FBOX0DfYB3v8jgNteQtHeJcqWqzKWJVyYGwwo_w0,279
|
|
143
147
|
sarvamai/types/speech_to_text_model.py,sha256=cYANeE-1Kjdpju97bLdQa8GuGqMBn0hVK4McFVqUGT0,208
|
|
144
148
|
sarvamai/types/speech_to_text_response.py,sha256=iWRGEJeHUFIOxeEhoCQu68njeA6lcqXbT2czV-O8Wx0,1438
|
|
@@ -153,10 +157,6 @@ sarvamai/types/speech_to_text_translate_streaming_response.py,sha256=J6h3AGdAJxp
|
|
|
153
157
|
sarvamai/types/speech_to_text_translate_transcription_data.py,sha256=-cZZm21um6erOzx18nAgBYKA3Qc3YzNADUCnfx9mD-k,996
|
|
154
158
|
sarvamai/types/spoken_form_numerals_format.py,sha256=soBly93wMkazIcp2GDM0Mf1MjY140Pe24hBlwNoWge0,169
|
|
155
159
|
sarvamai/types/stop_configuration.py,sha256=yA_q4s4BIrbl3FotZpg4ZcyL10C7gVI0s2dqvH32BNw,136
|
|
156
|
-
sarvamai/types/storage_container_type.py,sha256=DZXDiDj74lMmUq6jaZfIMW1zMXgoVdY6rs_FcyB9OGk,184
|
|
157
|
-
sarvamai/types/task_detail_v_1.py,sha256=Z-RotwB9BzegZqur--4HkCafyTcDvr0CosZ52St0Eeo,857
|
|
158
|
-
sarvamai/types/task_file_details.py,sha256=oJV7zaUVrbqqw-If-2_V1aLk28qW0ZbeIDtIpn5-xUM,544
|
|
159
|
-
sarvamai/types/task_state.py,sha256=fSrmD00Goi0J6s9hzqcFqz3Fkh37diBYpxnz4FkwHdU,182
|
|
160
160
|
sarvamai/types/text_to_speech_language.py,sha256=T5-rP93WyJwkdJTmNZuvNkkoVtgU0G25a8R2F3OwRZ4,254
|
|
161
161
|
sarvamai/types/text_to_speech_model.py,sha256=qRkpGCcfrLD45l499cBUcBgZDo_qKPZtFxA7wPbp1NQ,128
|
|
162
162
|
sarvamai/types/text_to_speech_response.py,sha256=Yzvwvwm65IR2vUzxZws9OLBW0GgB6bbmvjClqSuZzdg,742
|
|
@@ -174,6 +174,6 @@ sarvamai/types/transliterate_mode.py,sha256=1jSEMlGcoLkWuk12TgoOpSgwifa4rThGKZ1h
|
|
|
174
174
|
sarvamai/types/transliterate_source_language.py,sha256=bSY9wJszF0sg-Cgg6F-YcWC8ly1mIlj9rqa15-jBtx8,283
|
|
175
175
|
sarvamai/types/transliteration_response.py,sha256=yt-lzTbDeJ_ZL4I8kQa6oESxA9ebeJJY7LfFHpdEsmM,815
|
|
176
176
|
sarvamai/version.py,sha256=Qkp3Ee9YH-O9RTix90e0i7iNrFAGN-QDt2AFwGA4n8k,75
|
|
177
|
-
sarvamai-0.1.
|
|
178
|
-
sarvamai-0.1.
|
|
179
|
-
sarvamai-0.1.
|
|
177
|
+
sarvamai-0.1.8a0.dist-info/METADATA,sha256=8D7CKD_pDZ7ucOZvJrm_M6pcJBktpbEV1hbU5Dy9s-8,26759
|
|
178
|
+
sarvamai-0.1.8a0.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
|
179
|
+
sarvamai-0.1.8a0.dist-info/RECORD,,
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
import typing_extensions
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
class BulkJobCallbackParams(typing_extensions.TypedDict):
|
|
7
|
-
url: str
|
|
8
|
-
"""
|
|
9
|
-
Webhook url to call upon job completion
|
|
10
|
-
"""
|
|
11
|
-
|
|
12
|
-
auth_token: typing_extensions.NotRequired[str]
|
|
13
|
-
"""
|
|
14
|
-
Authorization token required for the callback Url
|
|
15
|
-
"""
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
import typing_extensions
|
|
4
|
-
from ..types.job_state import JobState
|
|
5
|
-
from ..types.storage_container_type import StorageContainerType
|
|
6
|
-
from .base_job_parameters import BaseJobParametersParams
|
|
7
|
-
from .bulk_job_callback import BulkJobCallbackParams
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class BulkJobInitResponseV1Params(typing_extensions.TypedDict):
|
|
11
|
-
job_id: str
|
|
12
|
-
"""
|
|
13
|
-
Job UUID.
|
|
14
|
-
"""
|
|
15
|
-
|
|
16
|
-
storage_container_type: StorageContainerType
|
|
17
|
-
"""
|
|
18
|
-
Storage Container Type
|
|
19
|
-
"""
|
|
20
|
-
|
|
21
|
-
job_parameters: BaseJobParametersParams
|
|
22
|
-
job_state: JobState
|
|
23
|
-
owner_id: str
|
|
24
|
-
callback: typing_extensions.NotRequired[BulkJobCallbackParams]
|
|
25
|
-
"""
|
|
26
|
-
Parameters for callback URL
|
|
27
|
-
"""
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
import typing
|
|
4
|
-
|
|
5
|
-
import typing_extensions
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
class FileSignedUrlDetailsParams(typing_extensions.TypedDict):
|
|
9
|
-
file_url: str
|
|
10
|
-
file_metadata: typing_extensions.NotRequired[typing.Dict[str, typing.Optional[typing.Any]]]
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
import typing
|
|
4
|
-
|
|
5
|
-
import typing_extensions
|
|
6
|
-
from ..types.job_state import JobState
|
|
7
|
-
from ..types.storage_container_type import StorageContainerType
|
|
8
|
-
from .file_signed_url_details import FileSignedUrlDetailsParams
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class FilesDownloadResponseParams(typing_extensions.TypedDict):
|
|
12
|
-
job_id: str
|
|
13
|
-
job_state: JobState
|
|
14
|
-
download_urls: typing.Dict[str, FileSignedUrlDetailsParams]
|
|
15
|
-
storage_container_type: StorageContainerType
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
import typing
|
|
4
|
-
|
|
5
|
-
import typing_extensions
|
|
6
|
-
from ..types.job_state import JobState
|
|
7
|
-
from ..types.storage_container_type import StorageContainerType
|
|
8
|
-
from .file_signed_url_details import FileSignedUrlDetailsParams
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class FilesUploadResponseParams(typing_extensions.TypedDict):
|
|
12
|
-
job_id: str
|
|
13
|
-
job_state: JobState
|
|
14
|
-
upload_urls: typing.Dict[str, FileSignedUrlDetailsParams]
|
|
15
|
-
storage_container_type: StorageContainerType
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
import typing
|
|
4
|
-
|
|
5
|
-
import typing_extensions
|
|
6
|
-
from ..types.job_state import JobState
|
|
7
|
-
from ..types.storage_container_type import StorageContainerType
|
|
8
|
-
from .task_detail_v_1 import TaskDetailV1Params
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class JobStatusV1Params(typing_extensions.TypedDict):
|
|
12
|
-
job_state: JobState
|
|
13
|
-
"""
|
|
14
|
-
Job State
|
|
15
|
-
"""
|
|
16
|
-
|
|
17
|
-
created_at: str
|
|
18
|
-
"""
|
|
19
|
-
Created At
|
|
20
|
-
"""
|
|
21
|
-
|
|
22
|
-
updated_at: str
|
|
23
|
-
"""
|
|
24
|
-
Updated At
|
|
25
|
-
"""
|
|
26
|
-
|
|
27
|
-
job_id: str
|
|
28
|
-
"""
|
|
29
|
-
Job Id
|
|
30
|
-
"""
|
|
31
|
-
|
|
32
|
-
total_files: typing_extensions.NotRequired[int]
|
|
33
|
-
"""
|
|
34
|
-
Total Files
|
|
35
|
-
"""
|
|
36
|
-
|
|
37
|
-
successful_files_count: typing_extensions.NotRequired[int]
|
|
38
|
-
"""
|
|
39
|
-
Success Count
|
|
40
|
-
"""
|
|
41
|
-
|
|
42
|
-
failed_files_count: typing_extensions.NotRequired[int]
|
|
43
|
-
"""
|
|
44
|
-
Failed Count
|
|
45
|
-
"""
|
|
46
|
-
|
|
47
|
-
owner_id: str
|
|
48
|
-
"""
|
|
49
|
-
Owner of the job
|
|
50
|
-
"""
|
|
51
|
-
|
|
52
|
-
storage_container_type: StorageContainerType
|
|
53
|
-
"""
|
|
54
|
-
Storage Container Type
|
|
55
|
-
"""
|
|
56
|
-
|
|
57
|
-
error_message: typing_extensions.NotRequired[str]
|
|
58
|
-
"""
|
|
59
|
-
Error Message
|
|
60
|
-
"""
|
|
61
|
-
|
|
62
|
-
job_details: typing_extensions.NotRequired[typing.Sequence[TaskDetailV1Params]]
|
|
63
|
-
"""
|
|
64
|
-
Job details at file level.
|
|
65
|
-
"""
|
|
66
|
-
|
|
67
|
-
num_internal_retries: typing_extensions.NotRequired[int]
|
|
68
|
-
"""
|
|
69
|
-
Number of internal retries
|
|
70
|
-
"""
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
import typing_extensions
|
|
4
|
-
from ..types.speech_to_text_model import SpeechToTextModel
|
|
5
|
-
from ..types.speech_to_text_translate_language import SpeechToTextTranslateLanguage
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
class SpeechToTextJobParametersParams(typing_extensions.TypedDict):
|
|
9
|
-
language_code: typing_extensions.NotRequired[SpeechToTextTranslateLanguage]
|
|
10
|
-
"""
|
|
11
|
-
Language code
|
|
12
|
-
"""
|
|
13
|
-
|
|
14
|
-
model: typing_extensions.NotRequired[SpeechToTextModel]
|
|
15
|
-
"""
|
|
16
|
-
Model to be used for speech to text
|
|
17
|
-
"""
|
|
18
|
-
|
|
19
|
-
with_timestamps: typing_extensions.NotRequired[bool]
|
|
20
|
-
"""
|
|
21
|
-
Whether to include timestamps in the response
|
|
22
|
-
"""
|
|
23
|
-
|
|
24
|
-
with_diarization: typing_extensions.NotRequired[bool]
|
|
25
|
-
"""
|
|
26
|
-
Enables speaker diarization, which identifies and separates different speakers in the audio. In beta mode
|
|
27
|
-
"""
|
|
28
|
-
|
|
29
|
-
num_speakers: typing_extensions.NotRequired[int]
|
|
30
|
-
"""
|
|
31
|
-
Number of speakers to be detected in the audio. This is used when with_diarization is true.
|
|
32
|
-
"""
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
import typing
|
|
4
|
-
|
|
5
|
-
import typing_extensions
|
|
6
|
-
from ..types.task_state import TaskState
|
|
7
|
-
from .task_file_details import TaskFileDetailsParams
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class TaskDetailV1Params(typing_extensions.TypedDict):
|
|
11
|
-
inputs: typing_extensions.NotRequired[typing.Sequence[TaskFileDetailsParams]]
|
|
12
|
-
outputs: typing_extensions.NotRequired[typing.Sequence[TaskFileDetailsParams]]
|
|
13
|
-
state: typing_extensions.NotRequired[TaskState]
|
|
14
|
-
error_message: typing_extensions.NotRequired[str]
|
|
15
|
-
exception_name: typing_extensions.NotRequired[str]
|