syncsdk 0.2.4__tar.gz → 0.2.6__tar.gz
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.
- {syncsdk-0.2.4 → syncsdk-0.2.6}/PKG-INFO +1 -1
- {syncsdk-0.2.4 → syncsdk-0.2.6}/pyproject.toml +1 -1
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/__init__.py +4 -0
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/common/__init__.py +4 -0
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/common/types/__init__.py +4 -0
- syncsdk-0.2.6/src/sync/common/types/emotion.py +5 -0
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/common/types/generation.py +6 -0
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/common/types/generation_options.py +12 -0
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/common/types/generation_segment.py +5 -3
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/common/types/model.py +1 -1
- syncsdk-0.2.6/src/sync/common/types/model_mode.py +5 -0
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/common/types/segment_audio_input.py +6 -2
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/common/types/video.py +2 -2
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/core/client_wrapper.py +2 -2
- {syncsdk-0.2.4 → syncsdk-0.2.6}/README.md +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/batch/__init__.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/batch/client.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/batch/raw_client.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/client.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/common/errors/__init__.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/common/errors/bad_request_error.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/common/errors/internal_server_error.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/common/errors/not_found_error.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/common/errors/payment_required_error.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/common/errors/too_many_requests_error.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/common/errors/unauthorized_error.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/common/types/active_speaker.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/common/types/audio.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/common/types/batch_id.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/common/types/batch_metrics.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/common/types/batch_response.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/common/types/batch_status.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/common/types/create_batch_response.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/common/types/create_generation_dto.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/common/types/eleven_labs.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/common/types/estimated_generation_cost.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/common/types/generation_error.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/common/types/generation_error_message.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/common/types/generation_id.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/common/types/generation_status.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/common/types/input.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/common/types/segment_frames.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/common/types/segment_secs.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/common/types/sync_mode.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/common/types/tts.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/common/types/tts_provider_config.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/common/types/validation_response.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/core/__init__.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/core/api_error.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/core/datetime_utils.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/core/file.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/core/http_client.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/core/http_response.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/core/jsonable_encoder.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/core/pydantic_utilities.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/core/query_encoder.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/core/remove_none_from_dict.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/core/request_options.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/core/serialization.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/core/unchecked_base_model.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/environment.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/generations/__init__.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/generations/client.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/generations/raw_client.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/py.typed +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/version.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/webhooks/__init__.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/webhooks/types/__init__.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/webhooks/types/generation_notification.py +0 -0
- {syncsdk-0.2.4 → syncsdk-0.2.6}/src/sync/webhooks/types/webhook_status.py +0 -0
|
@@ -13,6 +13,7 @@ from .common import (
|
|
|
13
13
|
CreateBatchResponse,
|
|
14
14
|
CreateGenerationDto,
|
|
15
15
|
ElevenLabs,
|
|
16
|
+
Emotion,
|
|
16
17
|
EstimatedGenerationCost,
|
|
17
18
|
Generation,
|
|
18
19
|
GenerationError,
|
|
@@ -24,6 +25,7 @@ from .common import (
|
|
|
24
25
|
Input,
|
|
25
26
|
InternalServerError,
|
|
26
27
|
Model,
|
|
28
|
+
ModelMode,
|
|
27
29
|
NotFoundError,
|
|
28
30
|
PaymentRequiredError,
|
|
29
31
|
SegmentAudioInput,
|
|
@@ -53,6 +55,7 @@ __all__ = [
|
|
|
53
55
|
"CreateBatchResponse",
|
|
54
56
|
"CreateGenerationDto",
|
|
55
57
|
"ElevenLabs",
|
|
58
|
+
"Emotion",
|
|
56
59
|
"EstimatedGenerationCost",
|
|
57
60
|
"Generation",
|
|
58
61
|
"GenerationError",
|
|
@@ -65,6 +68,7 @@ __all__ = [
|
|
|
65
68
|
"Input",
|
|
66
69
|
"InternalServerError",
|
|
67
70
|
"Model",
|
|
71
|
+
"ModelMode",
|
|
68
72
|
"NotFoundError",
|
|
69
73
|
"PaymentRequiredError",
|
|
70
74
|
"SegmentAudioInput",
|
|
@@ -10,6 +10,7 @@ from .types import (
|
|
|
10
10
|
CreateBatchResponse,
|
|
11
11
|
CreateGenerationDto,
|
|
12
12
|
ElevenLabs,
|
|
13
|
+
Emotion,
|
|
13
14
|
EstimatedGenerationCost,
|
|
14
15
|
Generation,
|
|
15
16
|
GenerationError,
|
|
@@ -20,6 +21,7 @@ from .types import (
|
|
|
20
21
|
GenerationStatus,
|
|
21
22
|
Input,
|
|
22
23
|
Model,
|
|
24
|
+
ModelMode,
|
|
23
25
|
SegmentAudioInput,
|
|
24
26
|
SegmentFrames,
|
|
25
27
|
SegmentSecs,
|
|
@@ -49,6 +51,7 @@ __all__ = [
|
|
|
49
51
|
"CreateBatchResponse",
|
|
50
52
|
"CreateGenerationDto",
|
|
51
53
|
"ElevenLabs",
|
|
54
|
+
"Emotion",
|
|
52
55
|
"EstimatedGenerationCost",
|
|
53
56
|
"Generation",
|
|
54
57
|
"GenerationError",
|
|
@@ -60,6 +63,7 @@ __all__ = [
|
|
|
60
63
|
"Input",
|
|
61
64
|
"InternalServerError",
|
|
62
65
|
"Model",
|
|
66
|
+
"ModelMode",
|
|
63
67
|
"NotFoundError",
|
|
64
68
|
"PaymentRequiredError",
|
|
65
69
|
"SegmentAudioInput",
|
|
@@ -9,6 +9,7 @@ from .batch_status import BatchStatus
|
|
|
9
9
|
from .create_batch_response import CreateBatchResponse
|
|
10
10
|
from .create_generation_dto import CreateGenerationDto
|
|
11
11
|
from .eleven_labs import ElevenLabs
|
|
12
|
+
from .emotion import Emotion
|
|
12
13
|
from .estimated_generation_cost import EstimatedGenerationCost
|
|
13
14
|
from .generation import Generation
|
|
14
15
|
from .generation_error import GenerationError
|
|
@@ -19,6 +20,7 @@ from .generation_segment import GenerationSegment
|
|
|
19
20
|
from .generation_status import GenerationStatus
|
|
20
21
|
from .input import Input
|
|
21
22
|
from .model import Model
|
|
23
|
+
from .model_mode import ModelMode
|
|
22
24
|
from .segment_audio_input import SegmentAudioInput
|
|
23
25
|
from .segment_frames import SegmentFrames
|
|
24
26
|
from .segment_secs import SegmentSecs
|
|
@@ -38,6 +40,7 @@ __all__ = [
|
|
|
38
40
|
"CreateBatchResponse",
|
|
39
41
|
"CreateGenerationDto",
|
|
40
42
|
"ElevenLabs",
|
|
43
|
+
"Emotion",
|
|
41
44
|
"EstimatedGenerationCost",
|
|
42
45
|
"Generation",
|
|
43
46
|
"GenerationError",
|
|
@@ -48,6 +51,7 @@ __all__ = [
|
|
|
48
51
|
"GenerationStatus",
|
|
49
52
|
"Input",
|
|
50
53
|
"Model",
|
|
54
|
+
"ModelMode",
|
|
51
55
|
"SegmentAudioInput",
|
|
52
56
|
"SegmentFrames",
|
|
53
57
|
"SegmentSecs",
|
|
@@ -10,6 +10,7 @@ from .generation_id import GenerationId
|
|
|
10
10
|
from .input import Input
|
|
11
11
|
from .model import Model
|
|
12
12
|
from .generation_options import GenerationOptions
|
|
13
|
+
from .generation_segment import GenerationSegment
|
|
13
14
|
from .generation_status import GenerationStatus
|
|
14
15
|
from ...core.pydantic_utilities import IS_PYDANTIC_V2
|
|
15
16
|
|
|
@@ -60,6 +61,11 @@ class Generation(UncheckedBaseModel):
|
|
|
60
61
|
The URL of the output media.
|
|
61
62
|
"""
|
|
62
63
|
|
|
64
|
+
segments: typing.Optional[typing.List[GenerationSegment]] = pydantic.Field(default=None)
|
|
65
|
+
"""
|
|
66
|
+
The segments of the generation.
|
|
67
|
+
"""
|
|
68
|
+
|
|
63
69
|
segment_output_url: typing_extensions.Annotated[typing.Optional[str], FieldMetadata(alias="segmentOutputUrl")] = (
|
|
64
70
|
pydantic.Field(default=None)
|
|
65
71
|
)
|
|
@@ -4,6 +4,8 @@ from ...core.unchecked_base_model import UncheckedBaseModel
|
|
|
4
4
|
import typing
|
|
5
5
|
from .sync_mode import SyncMode
|
|
6
6
|
import pydantic
|
|
7
|
+
from .model_mode import ModelMode
|
|
8
|
+
from .emotion import Emotion
|
|
7
9
|
from .active_speaker import ActiveSpeaker
|
|
8
10
|
from ...core.pydantic_utilities import IS_PYDANTIC_V2
|
|
9
11
|
|
|
@@ -14,6 +16,16 @@ class GenerationOptions(UncheckedBaseModel):
|
|
|
14
16
|
Defines how to handle duration mismatches between video and audio inputs. See the [Media Content Tips](/compatibility-and-tips/media-content-tips#sync-mode-options) guide for a brief overview, or the SyncMode enum below for detailed explanations of each option.
|
|
15
17
|
"""
|
|
16
18
|
|
|
19
|
+
model_mode: typing.Optional[ModelMode] = pydantic.Field(default=None)
|
|
20
|
+
"""
|
|
21
|
+
edit region for the model. only works with react-1. defaults to face, which affects lipsync + emotions in the face region. Available options are lips/face/head. When head is selected, model generates natural talking head movements along with emotions + lipsync.
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
prompt: typing.Optional[Emotion] = pydantic.Field(default=None)
|
|
25
|
+
"""
|
|
26
|
+
emotion prompt for the generation. only works for react-1 model. Only single word emotions are supported at the moment.
|
|
27
|
+
"""
|
|
28
|
+
|
|
17
29
|
temperature: typing.Optional[float] = pydantic.Field(default=None)
|
|
18
30
|
"""
|
|
19
31
|
option to control how expressive lipsync can be. 0 -> least expressive, 1 -> most expressive. default:0.5
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
3
|
from ...core.unchecked_base_model import UncheckedBaseModel
|
|
4
|
+
import typing_extensions
|
|
5
|
+
from ...core.serialization import FieldMetadata
|
|
4
6
|
import pydantic
|
|
5
7
|
from .segment_audio_input import SegmentAudioInput
|
|
6
8
|
from ...core.pydantic_utilities import IS_PYDANTIC_V2
|
|
@@ -12,17 +14,17 @@ class GenerationSegment(UncheckedBaseModel):
|
|
|
12
14
|
Defines a video segment with its corresponding audio input. Used for multi-segment lipsync generations where different audio tracks can be applied to different video segments.
|
|
13
15
|
"""
|
|
14
16
|
|
|
15
|
-
start_time: float = pydantic.Field()
|
|
17
|
+
start_time: typing_extensions.Annotated[float, FieldMetadata(alias="startTime")] = pydantic.Field()
|
|
16
18
|
"""
|
|
17
19
|
Segment start time in seconds
|
|
18
20
|
"""
|
|
19
21
|
|
|
20
|
-
end_time: float = pydantic.Field()
|
|
22
|
+
end_time: typing_extensions.Annotated[float, FieldMetadata(alias="endTime")] = pydantic.Field()
|
|
21
23
|
"""
|
|
22
24
|
Segment end time in seconds
|
|
23
25
|
"""
|
|
24
26
|
|
|
25
|
-
audio_input: SegmentAudioInput = pydantic.Field()
|
|
27
|
+
audio_input: typing_extensions.Annotated[SegmentAudioInput, FieldMetadata(alias="audioInput")] = pydantic.Field()
|
|
26
28
|
"""
|
|
27
29
|
Audio configuration for this segment
|
|
28
30
|
"""
|
|
@@ -18,12 +18,16 @@ class SegmentAudioInput(UncheckedBaseModel):
|
|
|
18
18
|
Reference ID of the audio/text-to-speech input to use for this segment
|
|
19
19
|
"""
|
|
20
20
|
|
|
21
|
-
start_time: typing.Optional[float] = pydantic.Field(
|
|
21
|
+
start_time: typing_extensions.Annotated[typing.Optional[float], FieldMetadata(alias="startTime")] = pydantic.Field(
|
|
22
|
+
default=None
|
|
23
|
+
)
|
|
22
24
|
"""
|
|
23
25
|
Optional start time (in seconds) to crop the referenced audio. When specified, end_time must also be provided.
|
|
24
26
|
"""
|
|
25
27
|
|
|
26
|
-
end_time: typing.Optional[float] = pydantic.Field(
|
|
28
|
+
end_time: typing_extensions.Annotated[typing.Optional[float], FieldMetadata(alias="endTime")] = pydantic.Field(
|
|
29
|
+
default=None
|
|
30
|
+
)
|
|
27
31
|
"""
|
|
28
32
|
Optional end time (in seconds) to crop the referenced audio. When specified, start_time must also be provided.
|
|
29
33
|
"""
|
|
@@ -17,12 +17,12 @@ class Video(UncheckedBaseModel):
|
|
|
17
17
|
|
|
18
18
|
segments_secs: typing.Optional[SegmentSecs] = pydantic.Field(default=None)
|
|
19
19
|
"""
|
|
20
|
-
[DEPRECATED] Use the top-level segments array instead for multi-segment support.
|
|
20
|
+
[DEPRECATED] Use the top-level [segments](/api-reference/api/generate-api/create#request.body.segments) array instead for multi-segment support.
|
|
21
21
|
"""
|
|
22
22
|
|
|
23
23
|
segments_frames: typing.Optional[SegmentFrames] = pydantic.Field(default=None)
|
|
24
24
|
"""
|
|
25
|
-
[DEPRECATED] Use the top-level segments array instead for multi-segment support.
|
|
25
|
+
[DEPRECATED] Use the top-level [segments](/api-reference/api/generate-api/create#request.body.segments) array instead for multi-segment support. frames 100 and 200 of the video
|
|
26
26
|
"""
|
|
27
27
|
|
|
28
28
|
if IS_PYDANTIC_V2:
|
|
@@ -14,10 +14,10 @@ class BaseClientWrapper:
|
|
|
14
14
|
|
|
15
15
|
def get_headers(self) -> typing.Dict[str, str]:
|
|
16
16
|
headers: typing.Dict[str, str] = {
|
|
17
|
-
"User-Agent": "syncsdk/0.2.
|
|
17
|
+
"User-Agent": "syncsdk/0.2.6",
|
|
18
18
|
"X-Fern-Language": "Python",
|
|
19
19
|
"X-Fern-SDK-Name": "syncsdk",
|
|
20
|
-
"X-Fern-SDK-Version": "0.2.
|
|
20
|
+
"X-Fern-SDK-Version": "0.2.6",
|
|
21
21
|
}
|
|
22
22
|
headers["x-api-key"] = self.api_key
|
|
23
23
|
return headers
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|