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/folder.py
ADDED
|
@@ -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 Folder(UniversalBaseModel):
|
|
10
|
+
team_id: int
|
|
11
|
+
name: str
|
|
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
|
camb/types/gender.py
ADDED
|
@@ -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 GetAudioSeparationResultOut(UniversalBaseModel):
|
|
10
|
+
foreground_audio_url: str
|
|
11
|
+
background_audio_url: str
|
|
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,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 .project_details import ProjectDetails
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class GetCreateProjectSetupResponse(UniversalBaseModel):
|
|
11
|
+
run_id: int
|
|
12
|
+
project_details: ProjectDetails
|
|
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,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
|
+
|
|
8
|
+
|
|
9
|
+
class GetProbeStreamIn(UniversalBaseModel):
|
|
10
|
+
url: str
|
|
11
|
+
passphrase: typing.Optional[str] = None
|
|
12
|
+
stream_id: typing.Optional[str] = None
|
|
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,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
|
+
from .audio_stream import AudioStream
|
|
8
|
+
from .data_stream import DataStream
|
|
9
|
+
from .video_stream import VideoStream
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class GetProbeStreamOut(UniversalBaseModel):
|
|
13
|
+
video_streams: typing.List[VideoStream]
|
|
14
|
+
audio_streams: typing.List[AudioStream]
|
|
15
|
+
data_streams: typing.List[DataStream]
|
|
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,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 .story_details import StoryDetails
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class GetSetupStoryResultResponse(UniversalBaseModel):
|
|
11
|
+
run_id: int
|
|
12
|
+
story_details: StoryDetails
|
|
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,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 GetTextToVoiceResultOut(UniversalBaseModel):
|
|
10
|
+
previews: typing.List[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 GetTtsResultOutFileUrl(UniversalBaseModel):
|
|
10
|
+
output_url: 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,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
|
+
from .validation_error import ValidationError
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class HttpValidationError(UniversalBaseModel):
|
|
11
|
+
detail: typing.Optional[typing.List[ValidationError]] = 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,154 @@
|
|
|
1
|
+
from enum import Enum
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class Languages(int, Enum):
|
|
5
|
+
EN_US = 1
|
|
6
|
+
AF_ZA = 2
|
|
7
|
+
AM_ET = 3
|
|
8
|
+
AR_AE = 4
|
|
9
|
+
AR_BH = 5
|
|
10
|
+
AR_DZ = 6
|
|
11
|
+
AR_EG = 7
|
|
12
|
+
AR_IQ = 8
|
|
13
|
+
AR_JO = 9
|
|
14
|
+
AR_KW = 10
|
|
15
|
+
AR_LB = 11
|
|
16
|
+
AR_LY = 12
|
|
17
|
+
AR_MA = 13
|
|
18
|
+
AR_OM = 14
|
|
19
|
+
AR_QA = 15
|
|
20
|
+
AR_SA = 16
|
|
21
|
+
AR_SY = 17
|
|
22
|
+
AR_TN = 18
|
|
23
|
+
AR_YE = 19
|
|
24
|
+
AZ_AZ = 20
|
|
25
|
+
BG_BG = 21
|
|
26
|
+
BN_BD = 22
|
|
27
|
+
BN_IN = 23
|
|
28
|
+
BS_BA = 24
|
|
29
|
+
CA_ES = 25
|
|
30
|
+
CS_CZ = 26
|
|
31
|
+
CY_GB = 27
|
|
32
|
+
DA_DK = 28
|
|
33
|
+
DE_AT = 29
|
|
34
|
+
DE_CH = 30
|
|
35
|
+
DE_DE = 31
|
|
36
|
+
EL_GR = 32
|
|
37
|
+
EN_AU = 33
|
|
38
|
+
EN_CA = 34
|
|
39
|
+
EN_GB = 35
|
|
40
|
+
EN_HK = 36
|
|
41
|
+
EN_IE = 37
|
|
42
|
+
EN_IN = 38
|
|
43
|
+
EN_KE = 39
|
|
44
|
+
EN_NG = 40
|
|
45
|
+
EN_NZ = 41
|
|
46
|
+
EN_PH = 42
|
|
47
|
+
EN_SG = 43
|
|
48
|
+
EN_TZ = 44
|
|
49
|
+
EN_ZA = 45
|
|
50
|
+
ES_AR = 46
|
|
51
|
+
ES_BO = 47
|
|
52
|
+
ES_CL = 48
|
|
53
|
+
ES_CO = 49
|
|
54
|
+
ES_CR = 50
|
|
55
|
+
ES_CU = 51
|
|
56
|
+
ES_DO = 52
|
|
57
|
+
ES_EC = 53
|
|
58
|
+
ES_ES = 54
|
|
59
|
+
ES_GQ = 55
|
|
60
|
+
ES_GT = 56
|
|
61
|
+
ES_HN = 57
|
|
62
|
+
ES_MX = 58
|
|
63
|
+
ES_NI = 59
|
|
64
|
+
ES_PA = 60
|
|
65
|
+
ES_PE = 61
|
|
66
|
+
ES_PR = 62
|
|
67
|
+
ES_PY = 63
|
|
68
|
+
ES_SV = 64
|
|
69
|
+
ES_US = 65
|
|
70
|
+
ES_UY = 66
|
|
71
|
+
ES_VE = 67
|
|
72
|
+
ET_EE = 68
|
|
73
|
+
EU_ES = 69
|
|
74
|
+
FA_IR = 70
|
|
75
|
+
FI_FI = 71
|
|
76
|
+
FIL_PH = 72
|
|
77
|
+
FR_BE = 73
|
|
78
|
+
FR_CA = 74
|
|
79
|
+
FR_CH = 75
|
|
80
|
+
FR_FR = 76
|
|
81
|
+
GA_IE = 77
|
|
82
|
+
GL_ES = 78
|
|
83
|
+
GU_IN = 79
|
|
84
|
+
HE_IL = 80
|
|
85
|
+
HI_IN = 81
|
|
86
|
+
HR_HR = 82
|
|
87
|
+
HU_HU = 83
|
|
88
|
+
HY_AM = 84
|
|
89
|
+
ID_ID = 85
|
|
90
|
+
IS_IS = 86
|
|
91
|
+
IT_IT = 87
|
|
92
|
+
JA_JP = 88
|
|
93
|
+
JV_ID = 89
|
|
94
|
+
KA_GE = 90
|
|
95
|
+
KK_KZ = 91
|
|
96
|
+
KM_KH = 92
|
|
97
|
+
KN_IN = 93
|
|
98
|
+
KO_KR = 94
|
|
99
|
+
LO_LA = 95
|
|
100
|
+
LT_LT = 96
|
|
101
|
+
LV_LV = 97
|
|
102
|
+
MK_MK = 98
|
|
103
|
+
ML_IN = 99
|
|
104
|
+
MN_MN = 100
|
|
105
|
+
MR_IN = 101
|
|
106
|
+
MS_MY = 102
|
|
107
|
+
MT_MT = 103
|
|
108
|
+
MY_MM = 104
|
|
109
|
+
NB_NO = 105
|
|
110
|
+
NE_NP = 106
|
|
111
|
+
NL_BE = 107
|
|
112
|
+
NL_NL = 108
|
|
113
|
+
PL_PL = 109
|
|
114
|
+
PS_AF = 110
|
|
115
|
+
PT_BR = 111
|
|
116
|
+
PT_PT = 112
|
|
117
|
+
RO_RO = 113
|
|
118
|
+
RU_RU = 114
|
|
119
|
+
SI_LK = 115
|
|
120
|
+
SK_SK = 116
|
|
121
|
+
SL_SI = 117
|
|
122
|
+
SO_SO = 118
|
|
123
|
+
SQ_AL = 119
|
|
124
|
+
SR_RS = 120
|
|
125
|
+
SU_ID = 121
|
|
126
|
+
SV_SE = 122
|
|
127
|
+
SW_KE = 123
|
|
128
|
+
SW_TZ = 124
|
|
129
|
+
TA_IN = 125
|
|
130
|
+
TA_LK = 126
|
|
131
|
+
TA_MY = 127
|
|
132
|
+
TA_SG = 128
|
|
133
|
+
TE_IN = 129
|
|
134
|
+
TH_TH = 130
|
|
135
|
+
TR_TR = 131
|
|
136
|
+
UK_UA = 132
|
|
137
|
+
UR_IN = 133
|
|
138
|
+
UR_PK = 134
|
|
139
|
+
UZ_UZ = 135
|
|
140
|
+
VI_VN = 136
|
|
141
|
+
ZH_CN = 139
|
|
142
|
+
ZH_CN_HENAN = 140
|
|
143
|
+
ZH_CN_LIAONING = 141
|
|
144
|
+
ZH_CN_SHAANXI = 142
|
|
145
|
+
ZH_CN_SHANDONG = 143
|
|
146
|
+
ZH_CN_SICHUAN = 144
|
|
147
|
+
ZH_HK = 145
|
|
148
|
+
ZH_TW = 146
|
|
149
|
+
ZU_ZA = 147
|
|
150
|
+
PA_IN = 148
|
|
151
|
+
|
|
152
|
+
SA_IN = 149
|
|
153
|
+
AR_XA = 150
|
|
154
|
+
TL_PH = 151
|
|
@@ -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
|
+
|
|
8
|
+
|
|
9
|
+
class LanguagePydanticModel(UniversalBaseModel):
|
|
10
|
+
id: int
|
|
11
|
+
language: str
|
|
12
|
+
short_name: str
|
|
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
|
camb/types/languages.py
ADDED
|
@@ -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 OrchestratorPipelineCallResult(UniversalBaseModel):
|
|
10
|
+
task_id: typing.Optional[str] = None
|
|
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,25 @@
|
|
|
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 .orchestrator_pipeline_result_exception_reason import OrchestratorPipelineResultExceptionReason
|
|
8
|
+
from .orchestrator_pipeline_result_message import OrchestratorPipelineResultMessage
|
|
9
|
+
from .task_status import TaskStatus
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class OrchestratorPipelineResult(UniversalBaseModel):
|
|
13
|
+
status: TaskStatus
|
|
14
|
+
run_id: typing.Optional[int] = None
|
|
15
|
+
exception_reason: typing.Optional[OrchestratorPipelineResultExceptionReason] = None
|
|
16
|
+
message: typing.Optional[OrchestratorPipelineResultMessage] = None
|
|
17
|
+
|
|
18
|
+
if IS_PYDANTIC_V2:
|
|
19
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
20
|
+
else:
|
|
21
|
+
|
|
22
|
+
class Config:
|
|
23
|
+
frozen = True
|
|
24
|
+
smart_union = True
|
|
25
|
+
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
|
+
OutputFormat = typing.Union[
|
|
6
|
+
typing.Literal[
|
|
7
|
+
"wav", "flac", "adts", "mp3", "pcm_s16le", "pcm_s16be", "pcm_s32be", "pcm_s32le", "pcm_f32le", "pcm_f32be"
|
|
8
|
+
],
|
|
9
|
+
typing.Any,
|
|
10
|
+
]
|
|
@@ -0,0 +1,37 @@
|
|
|
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 OverdubConfig(UniversalBaseModel):
|
|
10
|
+
original_audio_gain: typing.Optional[float] = pydantic.Field(default=None)
|
|
11
|
+
"""
|
|
12
|
+
Proportion of the original audio (0.0 to 1.0).
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
background_audio_gain: typing.Optional[float] = pydantic.Field(default=None)
|
|
16
|
+
"""
|
|
17
|
+
Proportion of the background audio (0.0 to 1.0).
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
fade_time: typing.Optional[float] = pydantic.Field(default=None)
|
|
21
|
+
"""
|
|
22
|
+
Cross-fade duration in seconds (0.0 to 5.0).
|
|
23
|
+
"""
|
|
24
|
+
|
|
25
|
+
fallback_audio_gain: typing.Optional[float] = pydantic.Field(default=None)
|
|
26
|
+
"""
|
|
27
|
+
Proportion of the fallback audio (0.0 to 1.0) (for streaming only).
|
|
28
|
+
"""
|
|
29
|
+
|
|
30
|
+
if IS_PYDANTIC_V2:
|
|
31
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
32
|
+
else:
|
|
33
|
+
|
|
34
|
+
class Config:
|
|
35
|
+
frozen = True
|
|
36
|
+
smart_union = True
|
|
37
|
+
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 .languages import Languages
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class ProjectDetails(UniversalBaseModel):
|
|
12
|
+
project_name: str
|
|
13
|
+
project_description: typing.Optional[str] = None
|
|
14
|
+
created_at: dt.datetime
|
|
15
|
+
source_language: Languages
|
|
16
|
+
target_languages: typing.List[Languages]
|
|
17
|
+
duration: typing.Optional[float] = None
|
|
18
|
+
folder_id: typing.Optional[int] = None
|
|
19
|
+
studio_url: str
|
|
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 RunIDsRequestPayload(UniversalBaseModel):
|
|
10
|
+
run_ids: typing.List[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,30 @@
|
|
|
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 .languages import Languages
|
|
8
|
+
from .stream_category import StreamCategory
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class SourceStream(UniversalBaseModel):
|
|
12
|
+
language: Languages
|
|
13
|
+
url: str
|
|
14
|
+
category: typing.Optional[StreamCategory] = None
|
|
15
|
+
passphrase: typing.Optional[str] = None
|
|
16
|
+
streamid: typing.Optional[str] = None
|
|
17
|
+
number_of_streams: typing.Optional[int] = None
|
|
18
|
+
audio_stream: typing.Optional[int] = None
|
|
19
|
+
background_audio_stream: typing.Optional[int] = None
|
|
20
|
+
latency: typing.Optional[int] = None
|
|
21
|
+
relay_input: typing.Optional[bool] = None
|
|
22
|
+
|
|
23
|
+
if IS_PYDANTIC_V2:
|
|
24
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
25
|
+
else:
|
|
26
|
+
|
|
27
|
+
class Config:
|
|
28
|
+
frozen = True
|
|
29
|
+
smart_union = True
|
|
30
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,27 @@
|
|
|
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 .languages import Languages
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class StoryDetails(UniversalBaseModel):
|
|
12
|
+
story_title: str
|
|
13
|
+
story_description: typing.Optional[str] = None
|
|
14
|
+
created_at: dt.datetime
|
|
15
|
+
source_language: Languages
|
|
16
|
+
target_languages: typing.Optional[typing.List[Languages]] = None
|
|
17
|
+
folder_id: typing.Optional[int] = None
|
|
18
|
+
studio_url: str
|
|
19
|
+
|
|
20
|
+
if IS_PYDANTIC_V2:
|
|
21
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
22
|
+
else:
|
|
23
|
+
|
|
24
|
+
class Config:
|
|
25
|
+
frozen = True
|
|
26
|
+
smart_union = True
|
|
27
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,38 @@
|
|
|
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 StreamTtsInferenceOptions(UniversalBaseModel):
|
|
10
|
+
"""
|
|
11
|
+
Advanced options for controlling the TTS inference process.
|
|
12
|
+
|
|
13
|
+
These options are only supported for the MARS-8 family of speech models.
|
|
14
|
+
|
|
15
|
+
Attributes:
|
|
16
|
+
stability: A value between 0.0 and 1.0 that controls the stability of
|
|
17
|
+
the output audio.
|
|
18
|
+
temperature: A value between 0.01 and 4.0 that controls the randomness
|
|
19
|
+
of the output. Higher values mean more randomness.
|
|
20
|
+
inference_steps: The number of steps for the diffusion model. A value
|
|
21
|
+
between 1 and 1000.
|
|
22
|
+
speaker_similarity: A value between 0.0 and 1.0 that controls how
|
|
23
|
+
similar the output should be to the reference speaker.
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
stability: typing.Optional[float] = None
|
|
27
|
+
temperature: typing.Optional[float] = None
|
|
28
|
+
inference_steps: typing.Optional[int] = None
|
|
29
|
+
speaker_similarity: typing.Optional[float] = None
|
|
30
|
+
|
|
31
|
+
if IS_PYDANTIC_V2:
|
|
32
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
33
|
+
else:
|
|
34
|
+
|
|
35
|
+
class Config:
|
|
36
|
+
frozen = True
|
|
37
|
+
smart_union = True
|
|
38
|
+
extra = pydantic.Extra.allow
|