sarvamai 0.1.7a0__py3-none-any.whl → 0.1.8__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 +48 -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/configure_connection.py +18 -0
- sarvamai/requests/configure_connection_data.py +83 -0
- sarvamai/requests/error_response.py +11 -0
- sarvamai/requests/error_response_data.py +18 -0
- sarvamai/requests/flush_signal.py +14 -0
- sarvamai/requests/ping_signal.py +14 -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 +153 -0
- sarvamai/text_to_speech_streaming/raw_client.py +130 -0
- sarvamai/text_to_speech_streaming/socket_client.py +309 -0
- sarvamai/types/__init__.py +26 -28
- sarvamai/types/{files_request.py → audio_output.py} +4 -3
- sarvamai/types/{bulk_job_callback.py → audio_output_data.py} +5 -5
- sarvamai/types/configure_connection.py +28 -0
- sarvamai/types/configure_connection_data.py +93 -0
- sarvamai/types/configure_connection_data_output_audio_bitrate.py +7 -0
- sarvamai/types/configure_connection_data_speaker.py +7 -0
- sarvamai/types/configure_connection_data_target_language_code.py +8 -0
- sarvamai/types/{file_signed_url_details.py → error_response.py} +4 -3
- sarvamai/types/{files_download_response.py → error_response_data.py} +11 -8
- sarvamai/types/flush_signal.py +24 -0
- sarvamai/types/ping_signal.py +24 -0
- sarvamai/types/{task_file_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.8.dist-info}/METADATA +1 -1
- {sarvamai-0.1.7a0.dist-info → sarvamai-0.1.8.dist-info}/RECORD +37 -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_request.py +0 -10
- 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.8.dist-info}/WHEEL +0 -0
sarvamai/types/__init__.py
CHANGED
|
@@ -4,9 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
from .audio_data import AudioData
|
|
6
6
|
from .audio_message import AudioMessage
|
|
7
|
-
from .
|
|
8
|
-
from .
|
|
9
|
-
from .bulk_job_init_response_v_1 import BulkJobInitResponseV1
|
|
7
|
+
from .audio_output import AudioOutput
|
|
8
|
+
from .audio_output_data import AudioOutputData
|
|
10
9
|
from .chat_completion_request_assistant_message import ChatCompletionRequestAssistantMessage
|
|
11
10
|
from .chat_completion_request_message import (
|
|
12
11
|
ChatCompletionRequestMessage,
|
|
@@ -20,6 +19,11 @@ from .chat_completion_response_message import ChatCompletionResponseMessage
|
|
|
20
19
|
from .choice import Choice
|
|
21
20
|
from .completion_usage import CompletionUsage
|
|
22
21
|
from .config_message import ConfigMessage
|
|
22
|
+
from .configure_connection import ConfigureConnection
|
|
23
|
+
from .configure_connection_data import ConfigureConnectionData
|
|
24
|
+
from .configure_connection_data_output_audio_bitrate import ConfigureConnectionDataOutputAudioBitrate
|
|
25
|
+
from .configure_connection_data_speaker import ConfigureConnectionDataSpeaker
|
|
26
|
+
from .configure_connection_data_target_language_code import ConfigureConnectionDataTargetLanguageCode
|
|
23
27
|
from .create_chat_completion_response import CreateChatCompletionResponse
|
|
24
28
|
from .diarized_entry import DiarizedEntry
|
|
25
29
|
from .diarized_transcript import DiarizedTranscript
|
|
@@ -27,23 +31,22 @@ from .error_code import ErrorCode
|
|
|
27
31
|
from .error_data import ErrorData
|
|
28
32
|
from .error_details import ErrorDetails
|
|
29
33
|
from .error_message import ErrorMessage
|
|
34
|
+
from .error_response import ErrorResponse
|
|
35
|
+
from .error_response_data import ErrorResponseData
|
|
30
36
|
from .events_data import EventsData
|
|
31
|
-
from .file_signed_url_details import FileSignedUrlDetails
|
|
32
|
-
from .files_download_response import FilesDownloadResponse
|
|
33
|
-
from .files_request import FilesRequest
|
|
34
|
-
from .files_upload_response import FilesUploadResponse
|
|
35
37
|
from .finish_reason import FinishReason
|
|
38
|
+
from .flush_signal import FlushSignal
|
|
36
39
|
from .format import Format
|
|
37
|
-
from .job_state import JobState
|
|
38
|
-
from .job_status_v_1 import JobStatusV1
|
|
39
40
|
from .language_identification_response import LanguageIdentificationResponse
|
|
40
41
|
from .numerals_format import NumeralsFormat
|
|
42
|
+
from .ping_signal import PingSignal
|
|
41
43
|
from .reasoning_effort import ReasoningEffort
|
|
42
44
|
from .response_type import ResponseType
|
|
43
45
|
from .role import Role
|
|
44
46
|
from .sarvam_model_ids import SarvamModelIds
|
|
47
|
+
from .send_text import SendText
|
|
48
|
+
from .send_text_data import SendTextData
|
|
45
49
|
from .speech_sample_rate import SpeechSampleRate
|
|
46
|
-
from .speech_to_text_job_parameters import SpeechToTextJobParameters
|
|
47
50
|
from .speech_to_text_language import SpeechToTextLanguage
|
|
48
51
|
from .speech_to_text_model import SpeechToTextModel
|
|
49
52
|
from .speech_to_text_response import SpeechToTextResponse
|
|
@@ -58,10 +61,6 @@ from .speech_to_text_translate_streaming_response import SpeechToTextTranslateSt
|
|
|
58
61
|
from .speech_to_text_translate_transcription_data import SpeechToTextTranslateTranscriptionData
|
|
59
62
|
from .spoken_form_numerals_format import SpokenFormNumeralsFormat
|
|
60
63
|
from .stop_configuration import StopConfiguration
|
|
61
|
-
from .storage_container_type import StorageContainerType
|
|
62
|
-
from .task_detail_v_1 import TaskDetailV1
|
|
63
|
-
from .task_file_details import TaskFileDetails
|
|
64
|
-
from .task_state import TaskState
|
|
65
64
|
from .text_to_speech_language import TextToSpeechLanguage
|
|
66
65
|
from .text_to_speech_model import TextToSpeechModel
|
|
67
66
|
from .text_to_speech_response import TextToSpeechResponse
|
|
@@ -82,9 +81,8 @@ from .transliteration_response import TransliterationResponse
|
|
|
82
81
|
__all__ = [
|
|
83
82
|
"AudioData",
|
|
84
83
|
"AudioMessage",
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"BulkJobInitResponseV1",
|
|
84
|
+
"AudioOutput",
|
|
85
|
+
"AudioOutputData",
|
|
88
86
|
"ChatCompletionRequestAssistantMessage",
|
|
89
87
|
"ChatCompletionRequestMessage",
|
|
90
88
|
"ChatCompletionRequestMessage_Assistant",
|
|
@@ -96,6 +94,11 @@ __all__ = [
|
|
|
96
94
|
"Choice",
|
|
97
95
|
"CompletionUsage",
|
|
98
96
|
"ConfigMessage",
|
|
97
|
+
"ConfigureConnection",
|
|
98
|
+
"ConfigureConnectionData",
|
|
99
|
+
"ConfigureConnectionDataOutputAudioBitrate",
|
|
100
|
+
"ConfigureConnectionDataSpeaker",
|
|
101
|
+
"ConfigureConnectionDataTargetLanguageCode",
|
|
99
102
|
"CreateChatCompletionResponse",
|
|
100
103
|
"DiarizedEntry",
|
|
101
104
|
"DiarizedTranscript",
|
|
@@ -103,23 +106,22 @@ __all__ = [
|
|
|
103
106
|
"ErrorData",
|
|
104
107
|
"ErrorDetails",
|
|
105
108
|
"ErrorMessage",
|
|
109
|
+
"ErrorResponse",
|
|
110
|
+
"ErrorResponseData",
|
|
106
111
|
"EventsData",
|
|
107
|
-
"FileSignedUrlDetails",
|
|
108
|
-
"FilesDownloadResponse",
|
|
109
|
-
"FilesRequest",
|
|
110
|
-
"FilesUploadResponse",
|
|
111
112
|
"FinishReason",
|
|
113
|
+
"FlushSignal",
|
|
112
114
|
"Format",
|
|
113
|
-
"JobState",
|
|
114
|
-
"JobStatusV1",
|
|
115
115
|
"LanguageIdentificationResponse",
|
|
116
116
|
"NumeralsFormat",
|
|
117
|
+
"PingSignal",
|
|
117
118
|
"ReasoningEffort",
|
|
118
119
|
"ResponseType",
|
|
119
120
|
"Role",
|
|
120
121
|
"SarvamModelIds",
|
|
122
|
+
"SendText",
|
|
123
|
+
"SendTextData",
|
|
121
124
|
"SpeechSampleRate",
|
|
122
|
-
"SpeechToTextJobParameters",
|
|
123
125
|
"SpeechToTextLanguage",
|
|
124
126
|
"SpeechToTextModel",
|
|
125
127
|
"SpeechToTextResponse",
|
|
@@ -134,10 +136,6 @@ __all__ = [
|
|
|
134
136
|
"SpeechToTextTranslateTranscriptionData",
|
|
135
137
|
"SpokenFormNumeralsFormat",
|
|
136
138
|
"StopConfiguration",
|
|
137
|
-
"StorageContainerType",
|
|
138
|
-
"TaskDetailV1",
|
|
139
|
-
"TaskFileDetails",
|
|
140
|
-
"TaskState",
|
|
141
139
|
"TextToSpeechLanguage",
|
|
142
140
|
"TextToSpeechModel",
|
|
143
141
|
"TextToSpeechResponse",
|
|
@@ -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 .audio_output_data import AudioOutputData
|
|
7
8
|
|
|
8
9
|
|
|
9
|
-
class
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
class AudioOutput(UniversalBaseModel):
|
|
11
|
+
type: typing.Literal["audio"] = "audio"
|
|
12
|
+
data: AudioOutputData
|
|
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,15 +6,15 @@ import pydantic
|
|
|
6
6
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
class
|
|
10
|
-
|
|
9
|
+
class AudioOutputData(UniversalBaseModel):
|
|
10
|
+
content_type: str = pydantic.Field()
|
|
11
11
|
"""
|
|
12
|
-
|
|
12
|
+
MIME type of the audio content (e.g., 'audio/mp3', 'audio/wav')
|
|
13
13
|
"""
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
audio: str = pydantic.Field()
|
|
16
16
|
"""
|
|
17
|
-
|
|
17
|
+
Base64-encoded audio data ready for playback or download
|
|
18
18
|
"""
|
|
19
19
|
|
|
20
20
|
if IS_PYDANTIC_V2:
|
|
@@ -0,0 +1,28 @@
|
|
|
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 .configure_connection_data import ConfigureConnectionData
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class ConfigureConnection(UniversalBaseModel):
|
|
11
|
+
"""
|
|
12
|
+
Configuration message required as the first message after establishing the WebSocket connection.
|
|
13
|
+
This initializes TTS parameters and can be updated at any time during the WebSocket lifecycle
|
|
14
|
+
by sending a new config message. When a config update is sent, any text currently in the buffer
|
|
15
|
+
will be automatically flushed and processed before applying the new configuration.
|
|
16
|
+
"""
|
|
17
|
+
|
|
18
|
+
type: typing.Literal["config"] = "config"
|
|
19
|
+
data: ConfigureConnectionData
|
|
20
|
+
|
|
21
|
+
if IS_PYDANTIC_V2:
|
|
22
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
23
|
+
else:
|
|
24
|
+
|
|
25
|
+
class Config:
|
|
26
|
+
frozen = True
|
|
27
|
+
smart_union = True
|
|
28
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,93 @@
|
|
|
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 .configure_connection_data_output_audio_bitrate import ConfigureConnectionDataOutputAudioBitrate
|
|
8
|
+
from .configure_connection_data_speaker import ConfigureConnectionDataSpeaker
|
|
9
|
+
from .configure_connection_data_target_language_code import ConfigureConnectionDataTargetLanguageCode
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class ConfigureConnectionData(UniversalBaseModel):
|
|
13
|
+
target_language_code: ConfigureConnectionDataTargetLanguageCode = pydantic.Field()
|
|
14
|
+
"""
|
|
15
|
+
The language of the text is BCP-47 format
|
|
16
|
+
"""
|
|
17
|
+
|
|
18
|
+
speaker: ConfigureConnectionDataSpeaker = pydantic.Field()
|
|
19
|
+
"""
|
|
20
|
+
The speaker voice to be used for the output audio.
|
|
21
|
+
|
|
22
|
+
**Default:** Anushka
|
|
23
|
+
|
|
24
|
+
**Model Compatibility (Speakers compatible with respective model):**
|
|
25
|
+
- **bulbul:v2:**
|
|
26
|
+
- Female: Anushka, Manisha, Vidya, Arya
|
|
27
|
+
- Male: Abhilash, Karun, Hitesh
|
|
28
|
+
|
|
29
|
+
**Note:** Speaker selection must match the chosen model version.
|
|
30
|
+
"""
|
|
31
|
+
|
|
32
|
+
pitch: typing.Optional[float] = pydantic.Field(default=None)
|
|
33
|
+
"""
|
|
34
|
+
Controls the pitch of the audio. Lower values result in a deeper voice,
|
|
35
|
+
while higher values make it sharper. The suitable range is between -0.75
|
|
36
|
+
and 0.75. Default is 0.0.
|
|
37
|
+
"""
|
|
38
|
+
|
|
39
|
+
pace: typing.Optional[float] = pydantic.Field(default=None)
|
|
40
|
+
"""
|
|
41
|
+
Controls the speed of the audio. Lower values result in slower speech,
|
|
42
|
+
while higher values make it faster. The suitable range is between 0.5
|
|
43
|
+
and 2.0. Default is 1.0.
|
|
44
|
+
"""
|
|
45
|
+
|
|
46
|
+
loudness: typing.Optional[float] = pydantic.Field(default=None)
|
|
47
|
+
"""
|
|
48
|
+
Controls the loudness of the audio. Lower values result in quieter audio,
|
|
49
|
+
while higher values make it louder. The suitable range is between 0.3
|
|
50
|
+
and 3.0. Default is 1.0.
|
|
51
|
+
"""
|
|
52
|
+
|
|
53
|
+
speech_sample_rate: typing.Optional[int] = pydantic.Field(default=None)
|
|
54
|
+
"""
|
|
55
|
+
Specifies the sample rate of the output audio. Supported values are
|
|
56
|
+
8000, 16000, 22050, 24000 Hz. If not provided, the default is 22050 Hz.
|
|
57
|
+
"""
|
|
58
|
+
|
|
59
|
+
enable_preprocessing: typing.Optional[bool] = pydantic.Field(default=None)
|
|
60
|
+
"""
|
|
61
|
+
Controls whether normalization of English words and numeric entities
|
|
62
|
+
(e.g., numbers, dates) is performed. Set to true for better handling
|
|
63
|
+
of mixed-language text. Default is false.
|
|
64
|
+
"""
|
|
65
|
+
|
|
66
|
+
output_audio_codec: typing.Optional[typing.Literal["mp3"]] = pydantic.Field(default=None)
|
|
67
|
+
"""
|
|
68
|
+
Audio codec (currently supports MP3 only, optimized for real-time playback)
|
|
69
|
+
"""
|
|
70
|
+
|
|
71
|
+
output_audio_bitrate: typing.Optional[ConfigureConnectionDataOutputAudioBitrate] = pydantic.Field(default=None)
|
|
72
|
+
"""
|
|
73
|
+
Audio bitrate (choose from 5 supported bitrate options)
|
|
74
|
+
"""
|
|
75
|
+
|
|
76
|
+
min_buffer_size: typing.Optional[int] = pydantic.Field(default=None)
|
|
77
|
+
"""
|
|
78
|
+
Minimum character length that triggers buffer flushing for TTS model processing
|
|
79
|
+
"""
|
|
80
|
+
|
|
81
|
+
max_chunk_length: typing.Optional[int] = pydantic.Field(default=None)
|
|
82
|
+
"""
|
|
83
|
+
Maximum length for sentence splitting (adjust based on content length)
|
|
84
|
+
"""
|
|
85
|
+
|
|
86
|
+
if IS_PYDANTIC_V2:
|
|
87
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
88
|
+
else:
|
|
89
|
+
|
|
90
|
+
class Config:
|
|
91
|
+
frozen = True
|
|
92
|
+
smart_union = True
|
|
93
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
ConfigureConnectionDataTargetLanguageCode = 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
|
+
]
|
|
@@ -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 .error_response_data import ErrorResponseData
|
|
7
8
|
|
|
8
9
|
|
|
9
|
-
class
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
class ErrorResponse(UniversalBaseModel):
|
|
11
|
+
type: typing.Literal["error"] = "error"
|
|
12
|
+
data: ErrorResponseData
|
|
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
|
|
@@ -4,16 +4,19 @@ import typing
|
|
|
4
4
|
|
|
5
5
|
import pydantic
|
|
6
6
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
7
|
-
from .file_signed_url_details import FileSignedUrlDetails
|
|
8
|
-
from .job_state import JobState
|
|
9
|
-
from .storage_container_type import StorageContainerType
|
|
10
7
|
|
|
11
8
|
|
|
12
|
-
class
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
9
|
+
class ErrorResponseData(UniversalBaseModel):
|
|
10
|
+
message: str
|
|
11
|
+
code: typing.Optional[int] = pydantic.Field(default=None)
|
|
12
|
+
"""
|
|
13
|
+
Optional error code for programmatic error handling
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
details: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = pydantic.Field(default=None)
|
|
17
|
+
"""
|
|
18
|
+
Additional error details and context information
|
|
19
|
+
"""
|
|
17
20
|
|
|
18
21
|
if IS_PYDANTIC_V2:
|
|
19
22
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
|
|
8
|
+
|
|
9
|
+
class FlushSignal(UniversalBaseModel):
|
|
10
|
+
"""
|
|
11
|
+
Forces the text buffer to process immediately, regardless of the min_buffer_size threshold.
|
|
12
|
+
Use this when you need to process remaining text that hasn't reached the minimum buffer size.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
type: typing.Literal["flush"] = "flush"
|
|
16
|
+
|
|
17
|
+
if IS_PYDANTIC_V2:
|
|
18
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
19
|
+
else:
|
|
20
|
+
|
|
21
|
+
class Config:
|
|
22
|
+
frozen = True
|
|
23
|
+
smart_union = True
|
|
24
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
|
|
8
|
+
|
|
9
|
+
class PingSignal(UniversalBaseModel):
|
|
10
|
+
"""
|
|
11
|
+
Send ping signal to keep the WebSocket connection alive. The connection automatically
|
|
12
|
+
closes after one minute of inactivity.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
type: typing.Literal["ping"] = "ping"
|
|
16
|
+
|
|
17
|
+
if IS_PYDANTIC_V2:
|
|
18
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
19
|
+
else:
|
|
20
|
+
|
|
21
|
+
class Config:
|
|
22
|
+
frozen = True
|
|
23
|
+
smart_union = True
|
|
24
|
+
extra = pydantic.Extra.allow
|
|
@@ -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=xkQNmsHue7UaEN7PgNfH2ExBGBdyszDgg5omMkSnZMM,8824
|
|
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=2BWGUPFDSTrq1O8iXwnBBOfRfd75F4lrWJ8XXfOVXss,2074
|
|
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,17 +23,16 @@ 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=AYpixS_3RLRqMW4U2OfeACJjD3u3NnethhdYr_V-P9M,4478
|
|
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
|
|
@@ -42,20 +41,22 @@ sarvamai/requests/chat_completion_response_message.py,sha256=JFazj4zK-nj_wjdvNLD
|
|
|
42
41
|
sarvamai/requests/choice.py,sha256=uulX4MZUoThEMcD3a80o_3V5YpnpqN8DfPaNZWVz-1o,867
|
|
43
42
|
sarvamai/requests/completion_usage.py,sha256=LbZV-RxcxKdCAYqhCiaRtSFF3VwMJq71A989Z1rm-I8,428
|
|
44
43
|
sarvamai/requests/config_message.py,sha256=EpYioGvDhCXDMvGH7Q1F7448zJzoHmlkQ1owoNGbWAw,383
|
|
44
|
+
sarvamai/requests/configure_connection.py,sha256=a-foQtLxArL4CulvKEdeebbRqmS1GRmko3MZdnHVPEk,716
|
|
45
|
+
sarvamai/requests/configure_connection_data.py,sha256=Niil2OrVBzQEtmWFn1JC-StLVp6WzzRIsu2i_M_8_44,2908
|
|
45
46
|
sarvamai/requests/create_chat_completion_response.py,sha256=TqS9u5_WVWMok_NreT4TeOsLJQeybPkbJm45Q0Zxw30,857
|
|
46
47
|
sarvamai/requests/diarized_entry.py,sha256=gbXB4D_r5_Q8gs1arRKjxPeFcYg16dVDLcg2VhxmKQA,462
|
|
47
48
|
sarvamai/requests/diarized_transcript.py,sha256=X-znuJ45oqwXzVyJumBHSqVGLz6JnoYFZmluQlEpEAw,323
|
|
48
49
|
sarvamai/requests/error_data.py,sha256=u87qHVagiqyyowBgMDAPPLlZzr0Z5GXlOU7VIUzfQ8E,239
|
|
49
50
|
sarvamai/requests/error_details.py,sha256=By7cYfitQynAM1D5_3yFc22zXQJEceNgkhoyGWmg4zw,529
|
|
50
51
|
sarvamai/requests/error_message.py,sha256=-J21pfEJghsms4pNe55O_9qkODNd-BKLMt96AOztYUs,257
|
|
52
|
+
sarvamai/requests/error_response.py,sha256=A8j12JQ7JJkUcnt26k2M9uwXXkwyT-LNqG3BO3U8NIk,288
|
|
53
|
+
sarvamai/requests/error_response_data.py,sha256=l9tGTykaKZ8pKxdw9RKitpW49kKcs4aGibH7rKG2v7w,461
|
|
51
54
|
sarvamai/requests/events_data.py,sha256=3seSash8DysPUWX6mKPzoEzWZlsrK4Tann2GFSbQjZg,286
|
|
52
|
-
sarvamai/requests/
|
|
53
|
-
sarvamai/requests/files_download_response.py,sha256=lQg7yVJtiMvt4OR0WcDbaL9jCi77wY9iFJ0StFsTTZY,491
|
|
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
|
|
55
|
+
sarvamai/requests/flush_signal.py,sha256=Aj_PzphMNcHMMOaxvTi1uQ5y36ZTtKEsUGCprbWIOvw,406
|
|
57
56
|
sarvamai/requests/language_identification_response.py,sha256=BdS5U9Gic-71vb--ph6HGvd2hGNKDXERC7yrn8vFcvI,1098
|
|
58
|
-
sarvamai/requests/
|
|
57
|
+
sarvamai/requests/ping_signal.py,sha256=TSgmfz2k4X1L6TzvX8u2SKZ6XQY3bSf7nPZf8mUViaM,343
|
|
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,12 +97,15 @@ 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=geTF5xy-batzO12XVt0sPw_XJCi7-m2sDFK_B7SL7qc,6088
|
|
102
|
+
sarvamai/text_to_speech_streaming/raw_client.py,sha256=asOcNw1WAViOiXDVWH4sxWSXGVoLwAOh9vUtq_xralA,5269
|
|
103
|
+
sarvamai/text_to_speech_streaming/socket_client.py,sha256=NEcijnvjuNcWfzqpBi-xWsXVkL0NPq6EGAkEjnaq9hw,13909
|
|
104
|
+
sarvamai/types/__init__.py,sha256=cEfGVQMYlbz13iS9v83_CB9160Cky4JOImmxM30fGhg,6305
|
|
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
|
|
@@ -115,6 +114,11 @@ sarvamai/types/chat_completion_response_message.py,sha256=wz935eBnCkSIl0I0qMxBuH
|
|
|
115
114
|
sarvamai/types/choice.py,sha256=uXBCsjWP9VK3XWQWZUeI4EnU10w0G9nAfKn2tJZvxko,1244
|
|
116
115
|
sarvamai/types/completion_usage.py,sha256=xYQGlQUbKqsksuV73H-1ajjfT5M7w47eLfdWXSlrI5M,843
|
|
117
116
|
sarvamai/types/config_message.py,sha256=sGrT-qYTRqLVfIo5nRUuRlqPtPVmiAkUAnaMtlmQYCU,778
|
|
117
|
+
sarvamai/types/configure_connection.py,sha256=SnSNk02gQqP8e4VB4y88jjeFQ4ClpImjGLn2ANI8cZ4,1058
|
|
118
|
+
sarvamai/types/configure_connection_data.py,sha256=brMO-Z1TDq3oTJ22m1icBkkmnd9k67p_DzecnMcqNko,3421
|
|
119
|
+
sarvamai/types/configure_connection_data_output_audio_bitrate.py,sha256=h00YvKLxsZC8L3__rH4XH53nN_GY40UElW1EjysCwUs,208
|
|
120
|
+
sarvamai/types/configure_connection_data_speaker.py,sha256=SzyAiK5LynXwb9KniaO2qoOLY-II3-PMZbRuIsQ9shw,230
|
|
121
|
+
sarvamai/types/configure_connection_data_target_language_code.py,sha256=jrU1EblAtDYbybUO1KUkHhevmlSBj2AQxX13ii3QhAQ,275
|
|
118
122
|
sarvamai/types/create_chat_completion_response.py,sha256=4nEzeWzHGW1_BmRAtOuGsbRZ0ojNgnzJSMUFyYuYviw,1285
|
|
119
123
|
sarvamai/types/diarized_entry.py,sha256=kf9DLrcoMHZdTKNCAaF0z46q_iAe7CE-DFP4CNrZGTw,896
|
|
120
124
|
sarvamai/types/diarized_transcript.py,sha256=a491XmALLE7AQcByaaOYTew0BZoFTlewEMHLMJyj-Js,669
|
|
@@ -122,23 +126,22 @@ sarvamai/types/error_code.py,sha256=Ts_zcCTJiKoA1rAK9VaW9SfuQDk-DT3pd6KKwzz2udQ,
|
|
|
122
126
|
sarvamai/types/error_data.py,sha256=gdlrdKLkfgGoe-znCCfWTikKlf07iZy1l4lgPyZTPwE,635
|
|
123
127
|
sarvamai/types/error_details.py,sha256=Faggc5PWERfCN2d9E5JzsEMNq9XSnoPTEdgi0lL8ea0,935
|
|
124
128
|
sarvamai/types/error_message.py,sha256=i_vDykKyMlkWLhJCpMAeYI1NzRDFsW2CTU4-mzdBAfE,622
|
|
129
|
+
sarvamai/types/error_response.py,sha256=3m17Aj3GY_-mSY2lH-GkbuiyewTm-wNL9UQ1exLvXyQ,629
|
|
130
|
+
sarvamai/types/error_response_data.py,sha256=hncN_zmPg8kqSHjNciYLn2QeNqzqHxKiZDlKOvjKdwA,838
|
|
125
131
|
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
132
|
sarvamai/types/finish_reason.py,sha256=PBWtBNkX4FMaODmlUehpF6qLB5uH_zR-Mw3M4uhIB6U,209
|
|
133
|
+
sarvamai/types/flush_signal.py,sha256=N7MJWb658KoxRpFN9cIbyQGY45zZcg8YCou3E1v--9o,759
|
|
131
134
|
sarvamai/types/format.py,sha256=57LicD0XLqW4D1QEnZWsWGifzRy1GV9P5utKPXLoxtg,144
|
|
132
|
-
sarvamai/types/job_state.py,sha256=H6Zph2mIcjsd3upEDt1VzIEORkEpnIDs0kH8BvIyrow,189
|
|
133
|
-
sarvamai/types/job_status_v_1.py,sha256=i1xopAptPVbGGIUcjKWgjAzSKwLVy6y4oGVEYcOA1P0,1798
|
|
134
135
|
sarvamai/types/language_identification_response.py,sha256=jG4ZQ6KQHCiEDqC51OniOwiRdW14Fbz22bbTsUDp_kc,1483
|
|
135
136
|
sarvamai/types/numerals_format.py,sha256=xg3lYiHcnzyFwuwRcaIteJLH_Pz6pJ9n9kTlYPEnCBU,165
|
|
137
|
+
sarvamai/types/ping_signal.py,sha256=cE53FRIXlc8bSo18z6jlAnOh6DhZEMX36huWEX6X3-A,695
|
|
136
138
|
sarvamai/types/reasoning_effort.py,sha256=_TBLn3rQgzJAdnKqV2g0PETbrSBZl0fPLfQ5ZE9H4Pc,164
|
|
137
139
|
sarvamai/types/response_type.py,sha256=yyk0QTIQlNa9W0Uoj_5_ey_Q3Bu8Jij5GkgR0Rt_WnU,163
|
|
138
140
|
sarvamai/types/role.py,sha256=3eY01zZQKB8BSD4cFDeVjz-o2qnHJKz1vnToLqbExxs,115
|
|
139
141
|
sarvamai/types/sarvam_model_ids.py,sha256=iYBMglf31KQ1iUZeAMQ-2PP9NDcyHRG7goz7O9VG8qg,124
|
|
142
|
+
sarvamai/types/send_text.py,sha256=kgST6V5NuURzgBpuiDi8fVwDg768ttDoeY9k1dSSb1Y,607
|
|
143
|
+
sarvamai/types/send_text_data.py,sha256=H8yfcvd4gvyN34RrZ9i4qQvieednNBhL7i7isX4asuY,519
|
|
140
144
|
sarvamai/types/speech_sample_rate.py,sha256=Hfi79KL2Y1W7OIvvrfWnt7EUvmU5i7bxYvXivrY_aUA,88
|
|
141
|
-
sarvamai/types/speech_to_text_job_parameters.py,sha256=J2DL2Q-Wzjk7vbPklbVWwn05uDfupCtQ97O32ttJa68,1438
|
|
142
145
|
sarvamai/types/speech_to_text_language.py,sha256=cq8FBOX0DfYB3v8jgNteQtHeJcqWqzKWJVyYGwwo_w0,279
|
|
143
146
|
sarvamai/types/speech_to_text_model.py,sha256=cYANeE-1Kjdpju97bLdQa8GuGqMBn0hVK4McFVqUGT0,208
|
|
144
147
|
sarvamai/types/speech_to_text_response.py,sha256=iWRGEJeHUFIOxeEhoCQu68njeA6lcqXbT2czV-O8Wx0,1438
|
|
@@ -153,10 +156,6 @@ sarvamai/types/speech_to_text_translate_streaming_response.py,sha256=J6h3AGdAJxp
|
|
|
153
156
|
sarvamai/types/speech_to_text_translate_transcription_data.py,sha256=-cZZm21um6erOzx18nAgBYKA3Qc3YzNADUCnfx9mD-k,996
|
|
154
157
|
sarvamai/types/spoken_form_numerals_format.py,sha256=soBly93wMkazIcp2GDM0Mf1MjY140Pe24hBlwNoWge0,169
|
|
155
158
|
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
159
|
sarvamai/types/text_to_speech_language.py,sha256=T5-rP93WyJwkdJTmNZuvNkkoVtgU0G25a8R2F3OwRZ4,254
|
|
161
160
|
sarvamai/types/text_to_speech_model.py,sha256=qRkpGCcfrLD45l499cBUcBgZDo_qKPZtFxA7wPbp1NQ,128
|
|
162
161
|
sarvamai/types/text_to_speech_response.py,sha256=Yzvwvwm65IR2vUzxZws9OLBW0GgB6bbmvjClqSuZzdg,742
|
|
@@ -174,6 +173,6 @@ sarvamai/types/transliterate_mode.py,sha256=1jSEMlGcoLkWuk12TgoOpSgwifa4rThGKZ1h
|
|
|
174
173
|
sarvamai/types/transliterate_source_language.py,sha256=bSY9wJszF0sg-Cgg6F-YcWC8ly1mIlj9rqa15-jBtx8,283
|
|
175
174
|
sarvamai/types/transliteration_response.py,sha256=yt-lzTbDeJ_ZL4I8kQa6oESxA9ebeJJY7LfFHpdEsmM,815
|
|
176
175
|
sarvamai/version.py,sha256=Qkp3Ee9YH-O9RTix90e0i7iNrFAGN-QDt2AFwGA4n8k,75
|
|
177
|
-
sarvamai-0.1.
|
|
178
|
-
sarvamai-0.1.
|
|
179
|
-
sarvamai-0.1.
|
|
176
|
+
sarvamai-0.1.8.dist-info/METADATA,sha256=i7I9T96vDS0Dp-XJdCsBZ_VuM0QtRNHDyLKTKybS7so,26757
|
|
177
|
+
sarvamai-0.1.8.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
|
178
|
+
sarvamai-0.1.8.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
|
-
"""
|