syncsdk 0.2.5__tar.gz → 0.2.7__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.
Files changed (70) hide show
  1. {syncsdk-0.2.5 → syncsdk-0.2.7}/PKG-INFO +1 -1
  2. {syncsdk-0.2.5 → syncsdk-0.2.7}/pyproject.toml +1 -1
  3. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/__init__.py +4 -0
  4. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/common/__init__.py +4 -0
  5. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/common/types/__init__.py +4 -0
  6. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/common/types/active_speaker.py +15 -0
  7. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/common/types/eleven_labs.py +13 -1
  8. syncsdk-0.2.7/src/sync/common/types/emotion.py +5 -0
  9. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/common/types/generation_options.py +12 -0
  10. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/common/types/model.py +1 -1
  11. syncsdk-0.2.7/src/sync/common/types/model_mode.py +5 -0
  12. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/common/types/video.py +2 -2
  13. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/core/client_wrapper.py +2 -2
  14. {syncsdk-0.2.5 → syncsdk-0.2.7}/README.md +0 -0
  15. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/batch/__init__.py +0 -0
  16. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/batch/client.py +0 -0
  17. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/batch/raw_client.py +0 -0
  18. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/client.py +0 -0
  19. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/common/errors/__init__.py +0 -0
  20. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/common/errors/bad_request_error.py +0 -0
  21. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/common/errors/internal_server_error.py +0 -0
  22. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/common/errors/not_found_error.py +0 -0
  23. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/common/errors/payment_required_error.py +0 -0
  24. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/common/errors/too_many_requests_error.py +0 -0
  25. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/common/errors/unauthorized_error.py +0 -0
  26. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/common/types/audio.py +0 -0
  27. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/common/types/batch_id.py +0 -0
  28. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/common/types/batch_metrics.py +0 -0
  29. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/common/types/batch_response.py +0 -0
  30. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/common/types/batch_status.py +0 -0
  31. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/common/types/create_batch_response.py +0 -0
  32. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/common/types/create_generation_dto.py +0 -0
  33. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/common/types/estimated_generation_cost.py +0 -0
  34. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/common/types/generation.py +0 -0
  35. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/common/types/generation_error.py +0 -0
  36. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/common/types/generation_error_message.py +0 -0
  37. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/common/types/generation_id.py +0 -0
  38. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/common/types/generation_segment.py +0 -0
  39. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/common/types/generation_status.py +0 -0
  40. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/common/types/input.py +0 -0
  41. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/common/types/segment_audio_input.py +0 -0
  42. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/common/types/segment_frames.py +0 -0
  43. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/common/types/segment_secs.py +0 -0
  44. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/common/types/sync_mode.py +0 -0
  45. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/common/types/tts.py +0 -0
  46. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/common/types/tts_provider_config.py +0 -0
  47. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/common/types/validation_response.py +0 -0
  48. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/core/__init__.py +0 -0
  49. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/core/api_error.py +0 -0
  50. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/core/datetime_utils.py +0 -0
  51. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/core/file.py +0 -0
  52. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/core/http_client.py +0 -0
  53. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/core/http_response.py +0 -0
  54. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/core/jsonable_encoder.py +0 -0
  55. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/core/pydantic_utilities.py +0 -0
  56. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/core/query_encoder.py +0 -0
  57. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/core/remove_none_from_dict.py +0 -0
  58. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/core/request_options.py +0 -0
  59. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/core/serialization.py +0 -0
  60. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/core/unchecked_base_model.py +0 -0
  61. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/environment.py +0 -0
  62. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/generations/__init__.py +0 -0
  63. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/generations/client.py +0 -0
  64. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/generations/raw_client.py +0 -0
  65. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/py.typed +0 -0
  66. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/version.py +0 -0
  67. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/webhooks/__init__.py +0 -0
  68. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/webhooks/types/__init__.py +0 -0
  69. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/webhooks/types/generation_notification.py +0 -0
  70. {syncsdk-0.2.5 → syncsdk-0.2.7}/src/sync/webhooks/types/webhook_status.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: syncsdk
3
- Version: 0.2.5
3
+ Version: 0.2.7
4
4
  Summary:
5
5
  Requires-Python: >=3.8,<4.0
6
6
  Classifier: Intended Audience :: Developers
@@ -3,7 +3,7 @@ name = "syncsdk"
3
3
 
4
4
  [tool.poetry]
5
5
  name = "syncsdk"
6
- version = "0.2.5"
6
+ version = "0.2.7"
7
7
  description = ""
8
8
  readme = "README.md"
9
9
  authors = []
@@ -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",
@@ -16,6 +16,21 @@ class ActiveSpeaker(UncheckedBaseModel):
16
16
  Whether to automatically detect and apply generation to the active speaker
17
17
  """
18
18
 
19
+ frame_number: typing.Optional[int] = pydantic.Field(default=None)
20
+ """
21
+ Frame index that corresponds to the provided coordinates for manual speaker selection
22
+ """
23
+
24
+ coordinates: typing.Optional[typing.List[int]] = pydantic.Field(default=None)
25
+ """
26
+ Reference point [x, y] on the speaker's face in the specified frame_number
27
+ """
28
+
29
+ bounding_boxes: typing.Optional[typing.List[typing.Optional[typing.List[int]]]] = pydantic.Field(default=None)
30
+ """
31
+ Per-frame array of bounding boxes [x1, y1, x2, y2] for the detected face, or null if no box for that frame. Use instead of frame_number + coordinates when you already have detection data.
32
+ """
33
+
19
34
  if IS_PYDANTIC_V2:
20
35
  model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
21
36
  else:
@@ -12,7 +12,7 @@ class ElevenLabs(UncheckedBaseModel):
12
12
  name: typing.Literal["elevenlabs"] = "elevenlabs"
13
13
  voice_id: typing_extensions.Annotated[str, FieldMetadata(alias="voiceId")] = pydantic.Field()
14
14
  """
15
- id of the voice to be used for generation
15
+ sync voice id (copied from cloned voices in the Studio) or ElevenLabs voice ID. Required.
16
16
  """
17
17
 
18
18
  script: str = pydantic.Field()
@@ -20,6 +20,18 @@ class ElevenLabs(UncheckedBaseModel):
20
20
  script to be used for generation
21
21
  """
22
22
 
23
+ stability: typing.Optional[float] = pydantic.Field(default=None)
24
+ """
25
+ determines how stable the voice is and the randomness between each generation. lower values introduce broader emotional range for the voice. higher values can result in a monotonous voice with limited emotion.
26
+ """
27
+
28
+ similarity_boost: typing_extensions.Annotated[typing.Optional[float], FieldMetadata(alias="similarityBoost")] = (
29
+ pydantic.Field(default=None)
30
+ )
31
+ """
32
+ determines how closely the ai should adhere to the original voice when attempting to replicate it.
33
+ """
34
+
23
35
  if IS_PYDANTIC_V2:
24
36
  model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
25
37
  else:
@@ -0,0 +1,5 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+
5
+ Emotion = typing.Union[typing.Literal["happy", "sad", "angry", "disgusted", "surprised", "neutral"], typing.Any]
@@ -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
@@ -2,4 +2,4 @@
2
2
 
3
3
  import typing
4
4
 
5
- Model = typing.Union[typing.Literal["lipsync-2", "lipsync-1.9.0-beta", "lipsync-2-pro"], typing.Any]
5
+ Model = typing.Union[typing.Literal["lipsync-2", "lipsync-1.9.0-beta", "lipsync-2-pro", "react-1"], typing.Any]
@@ -0,0 +1,5 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+
5
+ ModelMode = typing.Union[typing.Literal["lips", "face", "head"], typing.Any]
@@ -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. Start time and end time (in seconds) of the video segment to apply generation to. Configured as a list of lists, where each inner list contains the start time and end time of the segment. Currently only one segment is supported. ex: [[10.5, 20.5]] will lipsync only the segment between 10.5 and 20.5 seconds of the video.
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. Start frame and end frame of the video segment to apply generation to. Configured as a list of lists, where each inner list contains the start frame and end frame of the segment. Currently only one segment is supported. ex: [[100, 200]] will lipsync only the segment between frames 100 and 200 of the video
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.5",
17
+ "User-Agent": "syncsdk/0.2.7",
18
18
  "X-Fern-Language": "Python",
19
19
  "X-Fern-SDK-Name": "syncsdk",
20
- "X-Fern-SDK-Version": "0.2.5",
20
+ "X-Fern-SDK-Version": "0.2.7",
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