sarvamai 0.1.11a2__py3-none-any.whl → 0.1.11a4__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 +6 -0
- sarvamai/client.py +3 -0
- sarvamai/core/client_wrapper.py +2 -2
- sarvamai/requests/__init__.py +2 -0
- sarvamai/requests/speech_to_text_translate_job_parameters.py +28 -0
- sarvamai/speech_to_text_job/client.py +60 -2
- sarvamai/speech_to_text_job/job.py +5 -1
- sarvamai/speech_to_text_translate_job/__init__.py +4 -0
- sarvamai/speech_to_text_translate_job/client.py +591 -0
- sarvamai/speech_to_text_translate_job/job.py +479 -0
- sarvamai/speech_to_text_translate_job/raw_client.py +1241 -0
- sarvamai/types/__init__.py +2 -0
- sarvamai/types/speech_to_text_translate_job_parameters.py +40 -0
- {sarvamai-0.1.11a2.dist-info → sarvamai-0.1.11a4.dist-info}/METADATA +1 -1
- {sarvamai-0.1.11a2.dist-info → sarvamai-0.1.11a4.dist-info}/RECORD +16 -10
- {sarvamai-0.1.11a2.dist-info → sarvamai-0.1.11a4.dist-info}/WHEEL +0 -0
sarvamai/types/__init__.py
CHANGED
|
@@ -63,6 +63,7 @@ from .speech_to_text_response import SpeechToTextResponse
|
|
|
63
63
|
from .speech_to_text_response_data import SpeechToTextResponseData
|
|
64
64
|
from .speech_to_text_streaming_response import SpeechToTextStreamingResponse
|
|
65
65
|
from .speech_to_text_transcription_data import SpeechToTextTranscriptionData
|
|
66
|
+
from .speech_to_text_translate_job_parameters import SpeechToTextTranslateJobParameters
|
|
66
67
|
from .speech_to_text_translate_language import SpeechToTextTranslateLanguage
|
|
67
68
|
from .speech_to_text_translate_model import SpeechToTextTranslateModel
|
|
68
69
|
from .speech_to_text_translate_response import SpeechToTextTranslateResponse
|
|
@@ -153,6 +154,7 @@ __all__ = [
|
|
|
153
154
|
"SpeechToTextResponseData",
|
|
154
155
|
"SpeechToTextStreamingResponse",
|
|
155
156
|
"SpeechToTextTranscriptionData",
|
|
157
|
+
"SpeechToTextTranslateJobParameters",
|
|
156
158
|
"SpeechToTextTranslateLanguage",
|
|
157
159
|
"SpeechToTextTranslateModel",
|
|
158
160
|
"SpeechToTextTranslateResponse",
|
|
@@ -0,0 +1,40 @@
|
|
|
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 .speech_to_text_translate_model import SpeechToTextTranslateModel
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class SpeechToTextTranslateJobParameters(UniversalBaseModel):
|
|
11
|
+
prompt: typing.Optional[str] = pydantic.Field(default=None)
|
|
12
|
+
"""
|
|
13
|
+
Prompt to assist the transcription
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
model: typing.Optional[SpeechToTextTranslateModel] = pydantic.Field(default=None)
|
|
17
|
+
"""
|
|
18
|
+
Model to be used for converting speech to text in target language
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
with_diarization: typing.Optional[bool] = pydantic.Field(default=None)
|
|
22
|
+
"""
|
|
23
|
+
Enables speaker diarization, which identifies and separates different speakers in the audio.
|
|
24
|
+
When set to true, the API will provide speaker-specific segments in the response.
|
|
25
|
+
Note: This parameter is currently in Beta mode.
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
num_speakers: typing.Optional[int] = pydantic.Field(default=None)
|
|
29
|
+
"""
|
|
30
|
+
Number of speakers to be detected in the audio. This is used when with_diarization is set to true.
|
|
31
|
+
"""
|
|
32
|
+
|
|
33
|
+
if IS_PYDANTIC_V2:
|
|
34
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
35
|
+
else:
|
|
36
|
+
|
|
37
|
+
class Config:
|
|
38
|
+
frozen = True
|
|
39
|
+
smart_union = True
|
|
40
|
+
extra = pydantic.Extra.allow
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
sarvamai/__init__.py,sha256=
|
|
1
|
+
sarvamai/__init__.py,sha256=wq1a7uiqmB-87ii_Ye7Jif3sV1nvrdA0JF7M5e_FvVI,10564
|
|
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=J30X_os1lPf8Wml0KDFEf6p8VGHhgF_lf3nw1T2D3qo,8207
|
|
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=hrajpQ6l5V75Gh-LTTto9CVMNhVeMdjT0JRb0ChnSJA,2570
|
|
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
|
|
@@ -28,7 +28,7 @@ sarvamai/errors/too_many_requests_error.py,sha256=Dl-_pfpboXJh-OtSbRaPQOB-UXvpVO
|
|
|
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=NUwWK2r35t3wgDeukSf0pOtbrUzPBh6bMyK1oxxwQzw,5598
|
|
32
32
|
sarvamai/requests/audio_data.py,sha256=QI3SK5aiAg2yJ-m3l9CxOkONnH3CCKMFCl9kAdMs19o,410
|
|
33
33
|
sarvamai/requests/audio_message.py,sha256=ZBeogjGE6YFXXM-0g8zq9SoizDk21reR0YXSB-0fMjg,214
|
|
34
34
|
sarvamai/requests/audio_output.py,sha256=BnoX345rwoWgaMaj24u_19-SjmPV0xt7vlFEEDKRw20,280
|
|
@@ -70,6 +70,7 @@ sarvamai/requests/speech_to_text_response.py,sha256=GS3jNmHDOxqNZ7cvftD62khUMSBI
|
|
|
70
70
|
sarvamai/requests/speech_to_text_response_data.py,sha256=69fYRdL0tCKpgKQqwzcM4T4Nf_lRxJFh-VCFe_tN964,364
|
|
71
71
|
sarvamai/requests/speech_to_text_streaming_response.py,sha256=cN5tKE9wOWuyBna4wmrf-0LfkOULMpRaJ7qjLuu76V0,348
|
|
72
72
|
sarvamai/requests/speech_to_text_transcription_data.py,sha256=Vc65hXDq65d14cP-fDJm151bi7XEKgPItNGt1UL6cOY,877
|
|
73
|
+
sarvamai/requests/speech_to_text_translate_job_parameters.py,sha256=Cco38i8IhX00S2eW3MhLekqUFMS7hZW2AwbpWyCAgpU,990
|
|
73
74
|
sarvamai/requests/speech_to_text_translate_response.py,sha256=xLV2F37PkGR0erRDfTBEPWvywR8eVSL9JbH5a0C9wkY,893
|
|
74
75
|
sarvamai/requests/speech_to_text_translate_response_data.py,sha256=OmjunP9R2xertJKn4fmpyzjDdj1_B_Yh6ZjH1eOlR-Q,407
|
|
75
76
|
sarvamai/requests/speech_to_text_translate_streaming_response.py,sha256=KTjYZ0_oLapuM5Iiq7UwejMsrL1TGgFAW4k5l17TkZs,385
|
|
@@ -86,8 +87,8 @@ sarvamai/speech_to_text/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUz
|
|
|
86
87
|
sarvamai/speech_to_text/client.py,sha256=lp2G2fI9SUbeOBBE1S5tjcp-Xb8wIhAuVadLKwXveh8,11003
|
|
87
88
|
sarvamai/speech_to_text/raw_client.py,sha256=A_56vEVeJdyttVJRiFxTMJ4n-s4l_PS8rI1DiLZlOmc,25331
|
|
88
89
|
sarvamai/speech_to_text_job/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
|
|
89
|
-
sarvamai/speech_to_text_job/client.py,sha256=
|
|
90
|
-
sarvamai/speech_to_text_job/job.py,sha256=
|
|
90
|
+
sarvamai/speech_to_text_job/client.py,sha256=2GyB6hdB6P9U3CLMacW3OfaUOebHTsz7cKshUJvJmis,16049
|
|
91
|
+
sarvamai/speech_to_text_job/job.py,sha256=LD47DCehRg5vHF8mc9C-gcVPiXRE-vpVMT8gGlrzK04,13923
|
|
91
92
|
sarvamai/speech_to_text_job/raw_client.py,sha256=v14drcQLAmpqozRUNKmw1F9j3omieMPC8R88Th1BID8,48055
|
|
92
93
|
sarvamai/speech_to_text_streaming/__init__.py,sha256=q7QygMmZCHJ-4FMhhL_6XNV_dsqlIFRCO1iSxoyxaaY,437
|
|
93
94
|
sarvamai/speech_to_text_streaming/client.py,sha256=WdkzZxKMdnQ2hHv9hzJlfSNggRJLKFljRiC7695Jcog,8224
|
|
@@ -98,6 +99,10 @@ sarvamai/speech_to_text_streaming/types/speech_to_text_streaming_high_vad_sensit
|
|
|
98
99
|
sarvamai/speech_to_text_streaming/types/speech_to_text_streaming_language_code.py,sha256=LxgEifmgWTCFZn9U-f-TWKxRPng3a2J26Zt526QrA0Y,267
|
|
99
100
|
sarvamai/speech_to_text_streaming/types/speech_to_text_streaming_model.py,sha256=b6F4ymgz4got6KVDqrweYvkET8itze63wUwWyjqDlO4,180
|
|
100
101
|
sarvamai/speech_to_text_streaming/types/speech_to_text_streaming_vad_signals.py,sha256=8wiFOB7WDMbYCcMTYgNFJaIjEytYeXpJLwr_O_mH0TI,172
|
|
102
|
+
sarvamai/speech_to_text_translate_job/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
|
|
103
|
+
sarvamai/speech_to_text_translate_job/client.py,sha256=OEhndYTyoX3eSH64H_I1nGDXzH8VGn79IjfL253bjfc,17055
|
|
104
|
+
sarvamai/speech_to_text_translate_job/job.py,sha256=-DRzK4ZI3Jupf4H3GUX1ShIqDSTxGb59lIYGY9cQa7U,14109
|
|
105
|
+
sarvamai/speech_to_text_translate_job/raw_client.py,sha256=g-xk7H8ZwjmPSuJSgblVSH7kqGh_5wAkYUy5PdwTm-U,49362
|
|
101
106
|
sarvamai/speech_to_text_translate_streaming/__init__.py,sha256=_hmlce1Zs1grylysZhBUdtKfkaUROwVydtwz6l-1qqg,411
|
|
102
107
|
sarvamai/speech_to_text_translate_streaming/client.py,sha256=TnHCcspbbYFaimcEk8km3QNrNkm8JlX7e2ydpeHL9EE,8068
|
|
103
108
|
sarvamai/speech_to_text_translate_streaming/raw_client.py,sha256=_TlUro1NwWc1dAvC0SHcOoTnsnAqRRXxzxKHxw8BGTs,7177
|
|
@@ -116,7 +121,7 @@ sarvamai/text_to_speech_streaming/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7
|
|
|
116
121
|
sarvamai/text_to_speech_streaming/client.py,sha256=geTF5xy-batzO12XVt0sPw_XJCi7-m2sDFK_B7SL7qc,6088
|
|
117
122
|
sarvamai/text_to_speech_streaming/raw_client.py,sha256=asOcNw1WAViOiXDVWH4sxWSXGVoLwAOh9vUtq_xralA,5269
|
|
118
123
|
sarvamai/text_to_speech_streaming/socket_client.py,sha256=NEcijnvjuNcWfzqpBi-xWsXVkL0NPq6EGAkEjnaq9hw,13909
|
|
119
|
-
sarvamai/types/__init__.py,sha256=
|
|
124
|
+
sarvamai/types/__init__.py,sha256=_tcONO157t6xm41llByU9FzSYWCQO2gExsqKZOz0HpQ,7681
|
|
120
125
|
sarvamai/types/audio_data.py,sha256=rgOukLkLNJ_HBBVE2g5dfEL2CWjRoGiMvCtpq0qTB1Y,829
|
|
121
126
|
sarvamai/types/audio_message.py,sha256=sB4EgkWkWJzipYXobkmM9AYZTTZtCpg_ySKssUeznUE,560
|
|
122
127
|
sarvamai/types/audio_output.py,sha256=Eq-YUZa1mSDwt7bax2c4Vv2gBlyM_JBJWzHhTAhFSko,621
|
|
@@ -173,6 +178,7 @@ sarvamai/types/speech_to_text_response.py,sha256=iWRGEJeHUFIOxeEhoCQu68njeA6lcqX
|
|
|
173
178
|
sarvamai/types/speech_to_text_response_data.py,sha256=gbxZTBSjbN3ZIa10K6tWPYtymcpnQTFIaUnXkOmsmD4,322
|
|
174
179
|
sarvamai/types/speech_to_text_streaming_response.py,sha256=z6tVAHbVK9lC3w3lac__LEUfO8AAzEilkeGlaLskTtc,687
|
|
175
180
|
sarvamai/types/speech_to_text_transcription_data.py,sha256=EqwPAPSi98PwARaTj-ufzFUSHyN-NPoPla5vi_KERrU,1297
|
|
181
|
+
sarvamai/types/speech_to_text_translate_job_parameters.py,sha256=fvfcyzIyT0DtcRYePDvglHH-wAhGbsi3H5G4i5nuWT8,1409
|
|
176
182
|
sarvamai/types/speech_to_text_translate_language.py,sha256=yikNM-roIumVG-eqBWss93wLGudZdLPwd0i3VcXH5zo,263
|
|
177
183
|
sarvamai/types/speech_to_text_translate_model.py,sha256=hxKnhnelhH5Ah8QO5SymTJMnDw_WWAhGDJnutoNk3qw,213
|
|
178
184
|
sarvamai/types/speech_to_text_translate_response.py,sha256=Z5Na7IQW2ok3TP21xd-jKkwioplEKfonNIMhoJQKkVw,1278
|
|
@@ -203,6 +209,6 @@ sarvamai/types/transliterate_mode.py,sha256=1jSEMlGcoLkWuk12TgoOpSgwifa4rThGKZ1h
|
|
|
203
209
|
sarvamai/types/transliterate_source_language.py,sha256=bSY9wJszF0sg-Cgg6F-YcWC8ly1mIlj9rqa15-jBtx8,283
|
|
204
210
|
sarvamai/types/transliteration_response.py,sha256=yt-lzTbDeJ_ZL4I8kQa6oESxA9ebeJJY7LfFHpdEsmM,815
|
|
205
211
|
sarvamai/version.py,sha256=Qkp3Ee9YH-O9RTix90e0i7iNrFAGN-QDt2AFwGA4n8k,75
|
|
206
|
-
sarvamai-0.1.
|
|
207
|
-
sarvamai-0.1.
|
|
208
|
-
sarvamai-0.1.
|
|
212
|
+
sarvamai-0.1.11a4.dist-info/METADATA,sha256=kKN4qLVn9eNtoqS7EPqAbFu9RSnJvp0RmHteEY8XvJs,26753
|
|
213
|
+
sarvamai-0.1.11a4.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
|
214
|
+
sarvamai-0.1.11a4.dist-info/RECORD,,
|
|
File without changes
|