camb-sdk 1.5.4__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.
- camb/__init__.py +335 -0
- camb/audio_separation/__init__.py +4 -0
- camb/audio_separation/client.py +406 -0
- camb/audio_separation/raw_client.py +534 -0
- camb/client.py +717 -0
- camb/core/__init__.py +105 -0
- camb/core/api_error.py +23 -0
- camb/core/client_wrapper.py +113 -0
- camb/core/datetime_utils.py +28 -0
- camb/core/file.py +67 -0
- camb/core/force_multipart.py +18 -0
- camb/core/http_client.py +663 -0
- camb/core/http_response.py +55 -0
- camb/core/http_sse/__init__.py +42 -0
- camb/core/http_sse/_api.py +112 -0
- camb/core/http_sse/_decoders.py +61 -0
- camb/core/http_sse/_exceptions.py +7 -0
- camb/core/http_sse/_models.py +17 -0
- camb/core/jsonable_encoder.py +100 -0
- camb/core/pydantic_utilities.py +260 -0
- camb/core/query_encoder.py +58 -0
- camb/core/remove_none_from_dict.py +11 -0
- camb/core/request_options.py +35 -0
- camb/core/serialization.py +276 -0
- camb/deprecated_streaming/__init__.py +4 -0
- camb/deprecated_streaming/client.py +532 -0
- camb/deprecated_streaming/raw_client.py +639 -0
- camb/dictionaries/__init__.py +4 -0
- camb/dictionaries/client.py +785 -0
- camb/dictionaries/raw_client.py +1048 -0
- camb/dub/__init__.py +49 -0
- camb/dub/client.py +846 -0
- camb/dub/raw_client.py +1194 -0
- camb/dub/types/__init__.py +53 -0
- camb/dub/types/dubbed_output_in_alt_format_request_payload_output_format.py +8 -0
- camb/dub/types/get_dubbed_output_in_alt_format_dub_alt_format_run_id_language_post_response.py +9 -0
- camb/dub/types/get_dubbed_run_info_dub_result_run_id_get_response.py +7 -0
- camb/dub/types/get_dubbing_runs_results_dubbing_results_post_response_value.py +7 -0
- camb/environment.py +7 -0
- camb/errors/__init__.py +34 -0
- camb/errors/unprocessable_entity_error.py +11 -0
- camb/folders/__init__.py +4 -0
- camb/folders/client.py +213 -0
- camb/folders/raw_client.py +278 -0
- camb/languages/__init__.py +4 -0
- camb/languages/client.py +168 -0
- camb/languages/raw_client.py +223 -0
- camb/project_setup/__init__.py +4 -0
- camb/project_setup/client.py +537 -0
- camb/project_setup/raw_client.py +655 -0
- camb/py.typed +0 -0
- camb/raw_client.py +236 -0
- camb/story/__init__.py +37 -0
- camb/story/client.py +579 -0
- camb/story/raw_client.py +743 -0
- camb/story/types/__init__.py +38 -0
- camb/story/types/create_story_story_post_response.py +8 -0
- camb/story/types/setup_story_story_setup_post_response.py +8 -0
- camb/streaming/__init__.py +4 -0
- camb/streaming/client.py +645 -0
- camb/streaming/raw_client.py +796 -0
- camb/text_to_audio/__init__.py +4 -0
- camb/text_to_audio/client.py +469 -0
- camb/text_to_audio/raw_client.py +610 -0
- camb/text_to_speech/__init__.py +49 -0
- camb/text_to_speech/baseten.py +214 -0
- camb/text_to_speech/client.py +742 -0
- camb/text_to_speech/raw_client.py +995 -0
- camb/text_to_speech/types/__init__.py +47 -0
- camb/text_to_speech/types/create_stream_tts_request_payload_language.py +71 -0
- camb/text_to_speech/types/create_stream_tts_request_payload_speech_model.py +7 -0
- camb/text_to_speech/types/get_tts_results_tts_results_post_response_value.py +7 -0
- camb/text_to_speech/types/get_tts_run_info_tts_result_run_id_get_response.py +7 -0
- camb/text_to_voice/__init__.py +4 -0
- camb/text_to_voice/client.py +329 -0
- camb/text_to_voice/raw_client.py +405 -0
- camb/transcription/__init__.py +4 -0
- camb/transcription/client.py +465 -0
- camb/transcription/raw_client.py +587 -0
- camb/translated_story/__init__.py +4 -0
- camb/translated_story/client.py +309 -0
- camb/translated_story/raw_client.py +381 -0
- camb/translated_tts/__init__.py +4 -0
- camb/translated_tts/client.py +313 -0
- camb/translated_tts/raw_client.py +357 -0
- camb/translation/__init__.py +4 -0
- camb/translation/client.py +631 -0
- camb/translation/raw_client.py +787 -0
- camb/types/__init__.py +236 -0
- camb/types/add_target_language_out.py +20 -0
- camb/types/audio_output_type.py +5 -0
- camb/types/audio_stream.py +31 -0
- camb/types/config_stream.py +22 -0
- camb/types/config_stream_pipeline.py +28 -0
- camb/types/create_custom_voice_out.py +19 -0
- camb/types/create_project_setup_out.py +19 -0
- camb/types/create_stream_out.py +22 -0
- camb/types/create_stream_request_payload.py +70 -0
- camb/types/create_translated_tts_out.py +19 -0
- camb/types/create_tts_out.py +19 -0
- camb/types/data_stream.py +24 -0
- camb/types/demixing_option.py +10 -0
- camb/types/dictionary_term.py +21 -0
- camb/types/dictionary_with_terms.py +28 -0
- camb/types/dubbing_result.py +22 -0
- camb/types/exception_reasons.py +30 -0
- camb/types/folder.py +20 -0
- camb/types/formalities.py +3 -0
- camb/types/gender.py +3 -0
- camb/types/get_audio_separation_result_out.py +20 -0
- camb/types/get_create_project_setup_response.py +21 -0
- camb/types/get_probe_stream_in.py +21 -0
- camb/types/get_probe_stream_out.py +24 -0
- camb/types/get_setup_story_result_response.py +21 -0
- camb/types/get_text_to_voice_result_out.py +19 -0
- camb/types/get_tts_result_out_file_url.py +19 -0
- camb/types/http_validation_error.py +20 -0
- camb/types/language_enums.py +154 -0
- camb/types/language_pydantic_model.py +21 -0
- camb/types/languages.py +3 -0
- camb/types/orchestrator_pipeline_call_result.py +19 -0
- camb/types/orchestrator_pipeline_result.py +25 -0
- camb/types/orchestrator_pipeline_result_exception_reason.py +7 -0
- camb/types/orchestrator_pipeline_result_message.py +5 -0
- camb/types/output_format.py +10 -0
- camb/types/overdub_config.py +37 -0
- camb/types/project_details.py +28 -0
- camb/types/revoicing_option.py +5 -0
- camb/types/run_i_ds_request_payload.py +19 -0
- camb/types/segmenting_option.py +5 -0
- camb/types/source_stream.py +30 -0
- camb/types/story_details.py +27 -0
- camb/types/stream_category.py +3 -0
- camb/types/stream_tts_inference_options.py +38 -0
- camb/types/stream_tts_output_configuration.py +33 -0
- camb/types/stream_tts_voice_settings.py +28 -0
- camb/types/stream_type.py +3 -0
- camb/types/stream_url_for_languages.py +21 -0
- camb/types/target_stream.py +34 -0
- camb/types/task_status.py +5 -0
- camb/types/term_translation_input.py +21 -0
- camb/types/term_translation_output.py +20 -0
- camb/types/text_to_audio_result.py +19 -0
- camb/types/text_to_audio_type.py +5 -0
- camb/types/transcribing_option.py +5 -0
- camb/types/transcript.py +22 -0
- camb/types/transcript_data_type.py +5 -0
- camb/types/transcript_file_format.py +5 -0
- camb/types/transcription_result.py +20 -0
- camb/types/translating_option.py +5 -0
- camb/types/translation_result.py +19 -0
- camb/types/tts_provider.py +3 -0
- camb/types/validation_error.py +22 -0
- camb/types/validation_error_loc_item.py +5 -0
- camb/types/video_output_type_without_avi.py +5 -0
- camb/types/video_stream.py +28 -0
- camb/types/voice.py +28 -0
- camb/voice_cloning/__init__.py +34 -0
- camb/voice_cloning/client.py +265 -0
- camb/voice_cloning/raw_client.py +320 -0
- camb/voice_cloning/types/__init__.py +36 -0
- camb/voice_cloning/types/list_voices_list_voices_get_response_item.py +7 -0
- camb_sdk-1.5.4.dist-info/METADATA +282 -0
- camb_sdk-1.5.4.dist-info/RECORD +167 -0
- camb_sdk-1.5.4.dist-info/WHEEL +5 -0
- camb_sdk-1.5.4.dist-info/licenses/LICENSE +21 -0
- camb_sdk-1.5.4.dist-info/top_level.txt +1 -0
camb/types/__init__.py
ADDED
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
# isort: skip_file
|
|
4
|
+
|
|
5
|
+
import typing
|
|
6
|
+
from importlib import import_module
|
|
7
|
+
|
|
8
|
+
if typing.TYPE_CHECKING:
|
|
9
|
+
from .add_target_language_out import AddTargetLanguageOut
|
|
10
|
+
from .audio_output_type import AudioOutputType
|
|
11
|
+
from .audio_stream import AudioStream
|
|
12
|
+
from .config_stream import ConfigStream
|
|
13
|
+
from .config_stream_pipeline import ConfigStreamPipeline
|
|
14
|
+
from .create_custom_voice_out import CreateCustomVoiceOut
|
|
15
|
+
from .create_project_setup_out import CreateProjectSetupOut
|
|
16
|
+
from .create_stream_out import CreateStreamOut
|
|
17
|
+
from .create_stream_request_payload import CreateStreamRequestPayload
|
|
18
|
+
from .create_translated_tts_out import CreateTranslatedTtsOut
|
|
19
|
+
from .create_tts_out import CreateTtsOut
|
|
20
|
+
from .data_stream import DataStream
|
|
21
|
+
from .demixing_option import DemixingOption
|
|
22
|
+
from .dictionary_term import DictionaryTerm
|
|
23
|
+
from .dictionary_with_terms import DictionaryWithTerms
|
|
24
|
+
from .dubbing_result import DubbingResult
|
|
25
|
+
from .exception_reasons import ExceptionReasons
|
|
26
|
+
from .folder import Folder
|
|
27
|
+
from .formalities import Formalities
|
|
28
|
+
from .gender import Gender
|
|
29
|
+
from .get_audio_separation_result_out import GetAudioSeparationResultOut
|
|
30
|
+
from .get_create_project_setup_response import GetCreateProjectSetupResponse
|
|
31
|
+
from .get_probe_stream_in import GetProbeStreamIn
|
|
32
|
+
from .get_probe_stream_out import GetProbeStreamOut
|
|
33
|
+
from .get_setup_story_result_response import GetSetupStoryResultResponse
|
|
34
|
+
from .get_text_to_voice_result_out import GetTextToVoiceResultOut
|
|
35
|
+
from .get_tts_result_out_file_url import GetTtsResultOutFileUrl
|
|
36
|
+
from .http_validation_error import HttpValidationError
|
|
37
|
+
from .language_pydantic_model import LanguagePydanticModel
|
|
38
|
+
from .languages import Languages
|
|
39
|
+
from .orchestrator_pipeline_call_result import OrchestratorPipelineCallResult
|
|
40
|
+
from .orchestrator_pipeline_result import OrchestratorPipelineResult
|
|
41
|
+
from .orchestrator_pipeline_result_exception_reason import OrchestratorPipelineResultExceptionReason
|
|
42
|
+
from .orchestrator_pipeline_result_message import OrchestratorPipelineResultMessage
|
|
43
|
+
from .output_format import OutputFormat
|
|
44
|
+
from .overdub_config import OverdubConfig
|
|
45
|
+
from .project_details import ProjectDetails
|
|
46
|
+
from .revoicing_option import RevoicingOption
|
|
47
|
+
from .run_i_ds_request_payload import RunIDsRequestPayload
|
|
48
|
+
from .segmenting_option import SegmentingOption
|
|
49
|
+
from .source_stream import SourceStream
|
|
50
|
+
from .story_details import StoryDetails
|
|
51
|
+
from .stream_category import StreamCategory
|
|
52
|
+
from .stream_tts_inference_options import StreamTtsInferenceOptions
|
|
53
|
+
from .stream_tts_output_configuration import StreamTtsOutputConfiguration
|
|
54
|
+
from .stream_tts_voice_settings import StreamTtsVoiceSettings
|
|
55
|
+
from .stream_type import StreamType
|
|
56
|
+
from .stream_url_for_languages import StreamUrlForLanguages
|
|
57
|
+
from .target_stream import TargetStream
|
|
58
|
+
from .task_status import TaskStatus
|
|
59
|
+
from .term_translation_input import TermTranslationInput
|
|
60
|
+
from .term_translation_output import TermTranslationOutput
|
|
61
|
+
from .text_to_audio_result import TextToAudioResult
|
|
62
|
+
from .text_to_audio_type import TextToAudioType
|
|
63
|
+
from .transcribing_option import TranscribingOption
|
|
64
|
+
from .transcript import Transcript
|
|
65
|
+
from .transcript_data_type import TranscriptDataType
|
|
66
|
+
from .transcript_file_format import TranscriptFileFormat
|
|
67
|
+
from .transcription_result import TranscriptionResult
|
|
68
|
+
from .translating_option import TranslatingOption
|
|
69
|
+
from .translation_result import TranslationResult
|
|
70
|
+
from .tts_provider import TtsProvider
|
|
71
|
+
from .validation_error import ValidationError
|
|
72
|
+
from .validation_error_loc_item import ValidationErrorLocItem
|
|
73
|
+
from .video_output_type_without_avi import VideoOutputTypeWithoutAvi
|
|
74
|
+
from .video_stream import VideoStream
|
|
75
|
+
from .voice import Voice
|
|
76
|
+
_dynamic_imports: typing.Dict[str, str] = {
|
|
77
|
+
"AddTargetLanguageOut": ".add_target_language_out",
|
|
78
|
+
"AudioOutputType": ".audio_output_type",
|
|
79
|
+
"AudioStream": ".audio_stream",
|
|
80
|
+
"ConfigStream": ".config_stream",
|
|
81
|
+
"ConfigStreamPipeline": ".config_stream_pipeline",
|
|
82
|
+
"CreateCustomVoiceOut": ".create_custom_voice_out",
|
|
83
|
+
"CreateProjectSetupOut": ".create_project_setup_out",
|
|
84
|
+
"CreateStreamOut": ".create_stream_out",
|
|
85
|
+
"CreateStreamRequestPayload": ".create_stream_request_payload",
|
|
86
|
+
"CreateTranslatedTtsOut": ".create_translated_tts_out",
|
|
87
|
+
"CreateTtsOut": ".create_tts_out",
|
|
88
|
+
"DataStream": ".data_stream",
|
|
89
|
+
"DemixingOption": ".demixing_option",
|
|
90
|
+
"DictionaryTerm": ".dictionary_term",
|
|
91
|
+
"DictionaryWithTerms": ".dictionary_with_terms",
|
|
92
|
+
"DubbingResult": ".dubbing_result",
|
|
93
|
+
"ExceptionReasons": ".exception_reasons",
|
|
94
|
+
"Folder": ".folder",
|
|
95
|
+
"Formalities": ".formalities",
|
|
96
|
+
"Gender": ".gender",
|
|
97
|
+
"GetAudioSeparationResultOut": ".get_audio_separation_result_out",
|
|
98
|
+
"GetCreateProjectSetupResponse": ".get_create_project_setup_response",
|
|
99
|
+
"GetProbeStreamIn": ".get_probe_stream_in",
|
|
100
|
+
"GetProbeStreamOut": ".get_probe_stream_out",
|
|
101
|
+
"GetSetupStoryResultResponse": ".get_setup_story_result_response",
|
|
102
|
+
"GetTextToVoiceResultOut": ".get_text_to_voice_result_out",
|
|
103
|
+
"GetTtsResultOutFileUrl": ".get_tts_result_out_file_url",
|
|
104
|
+
"HttpValidationError": ".http_validation_error",
|
|
105
|
+
"LanguagePydanticModel": ".language_pydantic_model",
|
|
106
|
+
"Languages": ".languages",
|
|
107
|
+
"OrchestratorPipelineCallResult": ".orchestrator_pipeline_call_result",
|
|
108
|
+
"OrchestratorPipelineResult": ".orchestrator_pipeline_result",
|
|
109
|
+
"OrchestratorPipelineResultExceptionReason": ".orchestrator_pipeline_result_exception_reason",
|
|
110
|
+
"OrchestratorPipelineResultMessage": ".orchestrator_pipeline_result_message",
|
|
111
|
+
"OutputFormat": ".output_format",
|
|
112
|
+
"OverdubConfig": ".overdub_config",
|
|
113
|
+
"ProjectDetails": ".project_details",
|
|
114
|
+
"RevoicingOption": ".revoicing_option",
|
|
115
|
+
"RunIDsRequestPayload": ".run_i_ds_request_payload",
|
|
116
|
+
"SegmentingOption": ".segmenting_option",
|
|
117
|
+
"SourceStream": ".source_stream",
|
|
118
|
+
"StoryDetails": ".story_details",
|
|
119
|
+
"StreamCategory": ".stream_category",
|
|
120
|
+
"StreamTtsInferenceOptions": ".stream_tts_inference_options",
|
|
121
|
+
"StreamTtsOutputConfiguration": ".stream_tts_output_configuration",
|
|
122
|
+
"StreamTtsVoiceSettings": ".stream_tts_voice_settings",
|
|
123
|
+
"StreamType": ".stream_type",
|
|
124
|
+
"StreamUrlForLanguages": ".stream_url_for_languages",
|
|
125
|
+
"TargetStream": ".target_stream",
|
|
126
|
+
"TaskStatus": ".task_status",
|
|
127
|
+
"TermTranslationInput": ".term_translation_input",
|
|
128
|
+
"TermTranslationOutput": ".term_translation_output",
|
|
129
|
+
"TextToAudioResult": ".text_to_audio_result",
|
|
130
|
+
"TextToAudioType": ".text_to_audio_type",
|
|
131
|
+
"TranscribingOption": ".transcribing_option",
|
|
132
|
+
"Transcript": ".transcript",
|
|
133
|
+
"TranscriptDataType": ".transcript_data_type",
|
|
134
|
+
"TranscriptFileFormat": ".transcript_file_format",
|
|
135
|
+
"TranscriptionResult": ".transcription_result",
|
|
136
|
+
"TranslatingOption": ".translating_option",
|
|
137
|
+
"TranslationResult": ".translation_result",
|
|
138
|
+
"TtsProvider": ".tts_provider",
|
|
139
|
+
"ValidationError": ".validation_error",
|
|
140
|
+
"ValidationErrorLocItem": ".validation_error_loc_item",
|
|
141
|
+
"VideoOutputTypeWithoutAvi": ".video_output_type_without_avi",
|
|
142
|
+
"VideoStream": ".video_stream",
|
|
143
|
+
"Voice": ".voice",
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
def __getattr__(attr_name: str) -> typing.Any:
|
|
148
|
+
module_name = _dynamic_imports.get(attr_name)
|
|
149
|
+
if module_name is None:
|
|
150
|
+
raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}")
|
|
151
|
+
try:
|
|
152
|
+
module = import_module(module_name, __package__)
|
|
153
|
+
if module_name == f".{attr_name}":
|
|
154
|
+
return module
|
|
155
|
+
else:
|
|
156
|
+
return getattr(module, attr_name)
|
|
157
|
+
except ImportError as e:
|
|
158
|
+
raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e
|
|
159
|
+
except AttributeError as e:
|
|
160
|
+
raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
def __dir__():
|
|
164
|
+
lazy_attrs = list(_dynamic_imports.keys())
|
|
165
|
+
return sorted(lazy_attrs)
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
__all__ = [
|
|
169
|
+
"AddTargetLanguageOut",
|
|
170
|
+
"AudioOutputType",
|
|
171
|
+
"AudioStream",
|
|
172
|
+
"ConfigStream",
|
|
173
|
+
"ConfigStreamPipeline",
|
|
174
|
+
"CreateCustomVoiceOut",
|
|
175
|
+
"CreateProjectSetupOut",
|
|
176
|
+
"CreateStreamOut",
|
|
177
|
+
"CreateStreamRequestPayload",
|
|
178
|
+
"CreateTranslatedTtsOut",
|
|
179
|
+
"CreateTtsOut",
|
|
180
|
+
"DataStream",
|
|
181
|
+
"DemixingOption",
|
|
182
|
+
"DictionaryTerm",
|
|
183
|
+
"DictionaryWithTerms",
|
|
184
|
+
"DubbingResult",
|
|
185
|
+
"ExceptionReasons",
|
|
186
|
+
"Folder",
|
|
187
|
+
"Formalities",
|
|
188
|
+
"Gender",
|
|
189
|
+
"GetAudioSeparationResultOut",
|
|
190
|
+
"GetCreateProjectSetupResponse",
|
|
191
|
+
"GetProbeStreamIn",
|
|
192
|
+
"GetProbeStreamOut",
|
|
193
|
+
"GetSetupStoryResultResponse",
|
|
194
|
+
"GetTextToVoiceResultOut",
|
|
195
|
+
"GetTtsResultOutFileUrl",
|
|
196
|
+
"HttpValidationError",
|
|
197
|
+
"LanguagePydanticModel",
|
|
198
|
+
"Languages",
|
|
199
|
+
"OrchestratorPipelineCallResult",
|
|
200
|
+
"OrchestratorPipelineResult",
|
|
201
|
+
"OrchestratorPipelineResultExceptionReason",
|
|
202
|
+
"OrchestratorPipelineResultMessage",
|
|
203
|
+
"OutputFormat",
|
|
204
|
+
"OverdubConfig",
|
|
205
|
+
"ProjectDetails",
|
|
206
|
+
"RevoicingOption",
|
|
207
|
+
"RunIDsRequestPayload",
|
|
208
|
+
"SegmentingOption",
|
|
209
|
+
"SourceStream",
|
|
210
|
+
"StoryDetails",
|
|
211
|
+
"StreamCategory",
|
|
212
|
+
"StreamTtsInferenceOptions",
|
|
213
|
+
"StreamTtsOutputConfiguration",
|
|
214
|
+
"StreamTtsVoiceSettings",
|
|
215
|
+
"StreamType",
|
|
216
|
+
"StreamUrlForLanguages",
|
|
217
|
+
"TargetStream",
|
|
218
|
+
"TaskStatus",
|
|
219
|
+
"TermTranslationInput",
|
|
220
|
+
"TermTranslationOutput",
|
|
221
|
+
"TextToAudioResult",
|
|
222
|
+
"TextToAudioType",
|
|
223
|
+
"TranscribingOption",
|
|
224
|
+
"Transcript",
|
|
225
|
+
"TranscriptDataType",
|
|
226
|
+
"TranscriptFileFormat",
|
|
227
|
+
"TranscriptionResult",
|
|
228
|
+
"TranslatingOption",
|
|
229
|
+
"TranslationResult",
|
|
230
|
+
"TtsProvider",
|
|
231
|
+
"ValidationError",
|
|
232
|
+
"ValidationErrorLocItem",
|
|
233
|
+
"VideoOutputTypeWithoutAvi",
|
|
234
|
+
"VideoStream",
|
|
235
|
+
"Voice",
|
|
236
|
+
]
|
|
@@ -0,0 +1,20 @@
|
|
|
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 AddTargetLanguageOut(UniversalBaseModel):
|
|
10
|
+
message: str
|
|
11
|
+
task_id: typing.Optional[str] = None
|
|
12
|
+
|
|
13
|
+
if IS_PYDANTIC_V2:
|
|
14
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
15
|
+
else:
|
|
16
|
+
|
|
17
|
+
class Config:
|
|
18
|
+
frozen = True
|
|
19
|
+
smart_union = True
|
|
20
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,31 @@
|
|
|
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 AudioStream(UniversalBaseModel):
|
|
10
|
+
index: int
|
|
11
|
+
codec_name: str
|
|
12
|
+
codec_long_name: str
|
|
13
|
+
codec_tag_string: typing.Optional[str] = None
|
|
14
|
+
codec_tag: typing.Optional[str] = None
|
|
15
|
+
profile: typing.Optional[str] = None
|
|
16
|
+
sample_fmt: str
|
|
17
|
+
sample_rate: int
|
|
18
|
+
channels: int
|
|
19
|
+
channel_layout: typing.Optional[str] = None
|
|
20
|
+
id: typing.Optional[str] = None
|
|
21
|
+
bit_rate: typing.Optional[int] = None
|
|
22
|
+
tags: typing.Optional[typing.Dict[str, typing.Any]] = None
|
|
23
|
+
|
|
24
|
+
if IS_PYDANTIC_V2:
|
|
25
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
26
|
+
else:
|
|
27
|
+
|
|
28
|
+
class Config:
|
|
29
|
+
frozen = True
|
|
30
|
+
smart_union = True
|
|
31
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,22 @@
|
|
|
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 .config_stream_pipeline import ConfigStreamPipeline
|
|
8
|
+
from .overdub_config import OverdubConfig
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class ConfigStream(UniversalBaseModel):
|
|
12
|
+
pipeline: typing.Optional[ConfigStreamPipeline] = None
|
|
13
|
+
mixing: typing.Optional[OverdubConfig] = None
|
|
14
|
+
|
|
15
|
+
if IS_PYDANTIC_V2:
|
|
16
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
17
|
+
else:
|
|
18
|
+
|
|
19
|
+
class Config:
|
|
20
|
+
frozen = True
|
|
21
|
+
smart_union = True
|
|
22
|
+
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
|
+
import pydantic
|
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
7
|
+
from .demixing_option import DemixingOption
|
|
8
|
+
from .revoicing_option import RevoicingOption
|
|
9
|
+
from .segmenting_option import SegmentingOption
|
|
10
|
+
from .transcribing_option import TranscribingOption
|
|
11
|
+
from .translating_option import TranslatingOption
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class ConfigStreamPipeline(UniversalBaseModel):
|
|
15
|
+
demixing: typing.Optional[DemixingOption] = None
|
|
16
|
+
segmenting: typing.Optional[SegmentingOption] = None
|
|
17
|
+
transcribing: typing.Optional[TranscribingOption] = None
|
|
18
|
+
translating: typing.Optional[TranslatingOption] = None
|
|
19
|
+
revoicing: typing.Optional[RevoicingOption] = None
|
|
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,19 @@
|
|
|
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 CreateCustomVoiceOut(UniversalBaseModel):
|
|
10
|
+
voice_id: int
|
|
11
|
+
|
|
12
|
+
if IS_PYDANTIC_V2:
|
|
13
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
14
|
+
else:
|
|
15
|
+
|
|
16
|
+
class Config:
|
|
17
|
+
frozen = True
|
|
18
|
+
smart_union = True
|
|
19
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,19 @@
|
|
|
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 CreateProjectSetupOut(UniversalBaseModel):
|
|
10
|
+
task_id: str
|
|
11
|
+
|
|
12
|
+
if IS_PYDANTIC_V2:
|
|
13
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
14
|
+
else:
|
|
15
|
+
|
|
16
|
+
class Config:
|
|
17
|
+
frozen = True
|
|
18
|
+
smart_union = True
|
|
19
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,22 @@
|
|
|
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 .stream_url_for_languages import StreamUrlForLanguages
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class CreateStreamOut(UniversalBaseModel):
|
|
11
|
+
stream_id: int
|
|
12
|
+
stream_url_for_languages: typing.List[StreamUrlForLanguages]
|
|
13
|
+
task_id: str
|
|
14
|
+
|
|
15
|
+
if IS_PYDANTIC_V2:
|
|
16
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
17
|
+
else:
|
|
18
|
+
|
|
19
|
+
class Config:
|
|
20
|
+
frozen = True
|
|
21
|
+
smart_union = True
|
|
22
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import datetime as dt
|
|
4
|
+
import typing
|
|
5
|
+
|
|
6
|
+
import pydantic
|
|
7
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
8
|
+
from .config_stream import ConfigStream
|
|
9
|
+
from .source_stream import SourceStream
|
|
10
|
+
from .target_stream import TargetStream
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class CreateStreamRequestPayload(UniversalBaseModel):
|
|
14
|
+
name: typing.Optional[str] = pydantic.Field(default=None)
|
|
15
|
+
"""
|
|
16
|
+
The name of the stream.
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
description: typing.Optional[str] = pydantic.Field(default=None)
|
|
20
|
+
"""
|
|
21
|
+
The description of the stream.
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
initial_delay: typing.Optional[int] = pydantic.Field(default=None)
|
|
25
|
+
"""
|
|
26
|
+
The initial delay in seconds before starting the stream creation process.
|
|
27
|
+
"""
|
|
28
|
+
|
|
29
|
+
timeout_in_mins: typing.Optional[int] = pydantic.Field(default=None)
|
|
30
|
+
"""
|
|
31
|
+
The maximum duration in minutes for the stream creation process before timing out.
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
voices: typing.List[int] = pydantic.Field()
|
|
35
|
+
"""
|
|
36
|
+
List of voice identifiers to be used in the stream.
|
|
37
|
+
"""
|
|
38
|
+
|
|
39
|
+
dictionaries: typing.List[int] = pydantic.Field()
|
|
40
|
+
"""
|
|
41
|
+
List of dictionary identifiers to be used in the stream.
|
|
42
|
+
"""
|
|
43
|
+
|
|
44
|
+
config: ConfigStream = pydantic.Field()
|
|
45
|
+
"""
|
|
46
|
+
The shared configuration for the streaming pipeline.
|
|
47
|
+
"""
|
|
48
|
+
|
|
49
|
+
source_stream: SourceStream = pydantic.Field()
|
|
50
|
+
"""
|
|
51
|
+
The source stream configuration details.
|
|
52
|
+
"""
|
|
53
|
+
|
|
54
|
+
target_streams: typing.List[TargetStream] = pydantic.Field()
|
|
55
|
+
"""
|
|
56
|
+
List of target stream configurations.
|
|
57
|
+
"""
|
|
58
|
+
|
|
59
|
+
start_time: typing.Optional[dt.datetime] = None
|
|
60
|
+
end_time: typing.Optional[dt.datetime] = None
|
|
61
|
+
timezone: typing.Optional[str] = None
|
|
62
|
+
|
|
63
|
+
if IS_PYDANTIC_V2:
|
|
64
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
65
|
+
else:
|
|
66
|
+
|
|
67
|
+
class Config:
|
|
68
|
+
frozen = True
|
|
69
|
+
smart_union = True
|
|
70
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,19 @@
|
|
|
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 CreateTranslatedTtsOut(UniversalBaseModel):
|
|
10
|
+
task_id: str
|
|
11
|
+
|
|
12
|
+
if IS_PYDANTIC_V2:
|
|
13
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
14
|
+
else:
|
|
15
|
+
|
|
16
|
+
class Config:
|
|
17
|
+
frozen = True
|
|
18
|
+
smart_union = True
|
|
19
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,19 @@
|
|
|
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 CreateTtsOut(UniversalBaseModel):
|
|
10
|
+
task_id: str
|
|
11
|
+
|
|
12
|
+
if IS_PYDANTIC_V2:
|
|
13
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
14
|
+
else:
|
|
15
|
+
|
|
16
|
+
class Config:
|
|
17
|
+
frozen = True
|
|
18
|
+
smart_union = True
|
|
19
|
+
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 DataStream(UniversalBaseModel):
|
|
10
|
+
index: int
|
|
11
|
+
codec_name: typing.Optional[str] = None
|
|
12
|
+
codec_long_name: typing.Optional[str] = None
|
|
13
|
+
codec_tag_string: typing.Optional[str] = None
|
|
14
|
+
codec_tag: typing.Optional[str] = None
|
|
15
|
+
id: typing.Optional[str] = None
|
|
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,10 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
DemixingOption = typing.Union[
|
|
6
|
+
typing.Literal[
|
|
7
|
+
"none", "pick_left_channel", "pick_right_channel", "pick_center_channel", "best_model", "fast_model"
|
|
8
|
+
],
|
|
9
|
+
typing.Any,
|
|
10
|
+
]
|
|
@@ -0,0 +1,21 @@
|
|
|
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 .term_translation_output import TermTranslationOutput
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class DictionaryTerm(UniversalBaseModel):
|
|
11
|
+
id: int
|
|
12
|
+
term_translations: typing.List[TermTranslationOutput]
|
|
13
|
+
|
|
14
|
+
if IS_PYDANTIC_V2:
|
|
15
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
16
|
+
else:
|
|
17
|
+
|
|
18
|
+
class Config:
|
|
19
|
+
frozen = True
|
|
20
|
+
smart_union = True
|
|
21
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import datetime as dt
|
|
4
|
+
import typing
|
|
5
|
+
|
|
6
|
+
import pydantic
|
|
7
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
8
|
+
from .dictionary_term import DictionaryTerm
|
|
9
|
+
from .languages import Languages
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class DictionaryWithTerms(UniversalBaseModel):
|
|
13
|
+
id: int
|
|
14
|
+
name: str
|
|
15
|
+
description: typing.Optional[str] = None
|
|
16
|
+
created_at: typing.Optional[dt.datetime] = None
|
|
17
|
+
last_edited_at: typing.Optional[dt.datetime] = None
|
|
18
|
+
dictionary_terms: typing.Optional[typing.List[DictionaryTerm]] = None
|
|
19
|
+
languages: typing.Optional[typing.List[Languages]] = None
|
|
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,22 @@
|
|
|
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 .transcript import Transcript
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class DubbingResult(UniversalBaseModel):
|
|
11
|
+
audio_url: str
|
|
12
|
+
transcript: typing.List[Transcript]
|
|
13
|
+
video_url: typing.Optional[str] = None
|
|
14
|
+
|
|
15
|
+
if IS_PYDANTIC_V2:
|
|
16
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
17
|
+
else:
|
|
18
|
+
|
|
19
|
+
class Config:
|
|
20
|
+
frozen = True
|
|
21
|
+
smart_union = True
|
|
22
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
ExceptionReasons = typing.Union[
|
|
6
|
+
typing.Literal[
|
|
7
|
+
"HARMFUL_CONTENT_DETECTED",
|
|
8
|
+
"VOICE_CONVERSION_ERROR",
|
|
9
|
+
"PROCESSING_ERROR",
|
|
10
|
+
"SOURCE_TOO_LONG",
|
|
11
|
+
"SOURCE_TOO_LARGE",
|
|
12
|
+
"SOURCE_TYPE_NOT_SUPPORTED",
|
|
13
|
+
"ERROR_DOWNLOADING_SOURCE",
|
|
14
|
+
"TOO_MANY_GDRIVE_REQUESTS",
|
|
15
|
+
"SOURCE_BLOCKED_IN_REGION",
|
|
16
|
+
"SOURCE_IS_AGE_RESTRICTED",
|
|
17
|
+
"SOURCE_NOT_FOUND",
|
|
18
|
+
"MISMATCHED_SOURCE_CODEC",
|
|
19
|
+
"CONTENT_DOES_NOT_MATCH_EXTENSION",
|
|
20
|
+
"INVALID_SOURCE_DATA",
|
|
21
|
+
"VIDEO_DOES_NOT_HAVE_AUDIO_STREAMS",
|
|
22
|
+
"MASTERING_OUT_OF_RANGE",
|
|
23
|
+
"INVALID_AUDIO_TRACKS_SELECTION",
|
|
24
|
+
"PAYMENT_REQUIRED",
|
|
25
|
+
"FORBIDDEN",
|
|
26
|
+
"INTERNAL_ERROR",
|
|
27
|
+
"NONE",
|
|
28
|
+
],
|
|
29
|
+
typing.Any,
|
|
30
|
+
]
|