syllable-sdk 0.38.20__py3-none-any.whl → 0.38.22__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.
- syllable_sdk/_version.py +2 -2
- syllable_sdk/language_groups.py +59 -20
- syllable_sdk/models/__init__.py +64 -0
- syllable_sdk/models/channelservices.py +1 -0
- syllable_sdk/models/languagegroupcreaterequest.py +2 -2
- syllable_sdk/models/languagegroupproperties.py +1 -1
- syllable_sdk/models/languagegroupresponse.py +6 -6
- syllable_sdk/models/languagegroupupdaterequest.py +2 -2
- syllable_sdk/models/languagesamplecreaterequest.py +95 -0
- syllable_sdk/models/listresponse_voicegroupresponse_.py +74 -0
- syllable_sdk/models/organizationchannelconfig.py +18 -2
- syllable_sdk/models/voice_groups_deleteop.py +21 -0
- syllable_sdk/models/voice_groups_get_by_idop.py +16 -0
- syllable_sdk/models/voice_groups_listop.py +140 -0
- syllable_sdk/models/voicegroupcreaterequest.py +73 -0
- syllable_sdk/models/voicegroupproperties.py +14 -0
- syllable_sdk/models/voicegroupresponse.py +111 -0
- syllable_sdk/models/voicegroupupdaterequest.py +83 -0
- syllable_sdk/sdk.py +3 -0
- syllable_sdk/voice_groups.py +1174 -0
- {syllable_sdk-0.38.20.dist-info → syllable_sdk-0.38.22.dist-info}/METADATA +17 -8
- {syllable_sdk-0.38.20.dist-info → syllable_sdk-0.38.22.dist-info}/RECORD +23 -13
- {syllable_sdk-0.38.20.dist-info → syllable_sdk-0.38.22.dist-info}/WHEEL +0 -0
syllable_sdk/_version.py
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import importlib.metadata
|
|
4
4
|
|
|
5
5
|
__title__: str = "syllable-sdk"
|
|
6
|
-
__version__: str = "0.38.
|
|
6
|
+
__version__: str = "0.38.22"
|
|
7
7
|
__openapi_doc_version__: str = "0.0.2"
|
|
8
8
|
__gen_version__: str = "2.723.11"
|
|
9
|
-
__user_agent__: str = "speakeasy-sdk/python 0.38.
|
|
9
|
+
__user_agent__: str = "speakeasy-sdk/python 0.38.22 2.723.11 0.0.2 syllable-sdk"
|
|
10
10
|
|
|
11
11
|
try:
|
|
12
12
|
if __package__ is not None:
|
syllable_sdk/language_groups.py
CHANGED
|
@@ -8,11 +8,15 @@ from syllable_sdk.types import BaseModel, OptionalNullable, UNSET
|
|
|
8
8
|
from syllable_sdk.utils import get_security_from_env
|
|
9
9
|
from syllable_sdk.utils.unmarshal_json_response import unmarshal_json_response
|
|
10
10
|
from typing import Any, List, Mapping, Optional, Union, cast
|
|
11
|
+
from typing_extensions import deprecated
|
|
11
12
|
|
|
12
13
|
|
|
13
14
|
class LanguageGroups(BaseSDK):
|
|
14
15
|
r"""Operations related to language groups. A language group is a collection of language, voice, and DTMF configuration that can be linked to an agent to define the languages and voices it supports. For more information, see [Console docs](https://docs.syllable.ai/Resources/LanguageGroups)."""
|
|
15
16
|
|
|
17
|
+
@deprecated(
|
|
18
|
+
"warning: ** DEPRECATED ** - This will be removed in a future release, please migrate away from it as soon as possible."
|
|
19
|
+
)
|
|
16
20
|
def list(
|
|
17
21
|
self,
|
|
18
22
|
*,
|
|
@@ -32,7 +36,7 @@ class LanguageGroups(BaseSDK):
|
|
|
32
36
|
) -> models.ListResponseLanguageGroupResponse:
|
|
33
37
|
r"""List Language Groups
|
|
34
38
|
|
|
35
|
-
|
|
39
|
+
Deprecated alias for `GET /api/v1/voice_groups/`.
|
|
36
40
|
|
|
37
41
|
:param page: The page number from which to start (0-based)
|
|
38
42
|
:param limit: The maximum number of items to return
|
|
@@ -128,6 +132,9 @@ class LanguageGroups(BaseSDK):
|
|
|
128
132
|
|
|
129
133
|
raise errors.APIError("Unexpected response received", http_res)
|
|
130
134
|
|
|
135
|
+
@deprecated(
|
|
136
|
+
"warning: ** DEPRECATED ** - This will be removed in a future release, please migrate away from it as soon as possible."
|
|
137
|
+
)
|
|
131
138
|
async def list_async(
|
|
132
139
|
self,
|
|
133
140
|
*,
|
|
@@ -147,7 +154,7 @@ class LanguageGroups(BaseSDK):
|
|
|
147
154
|
) -> models.ListResponseLanguageGroupResponse:
|
|
148
155
|
r"""List Language Groups
|
|
149
156
|
|
|
150
|
-
|
|
157
|
+
Deprecated alias for `GET /api/v1/voice_groups/`.
|
|
151
158
|
|
|
152
159
|
:param page: The page number from which to start (0-based)
|
|
153
160
|
:param limit: The maximum number of items to return
|
|
@@ -243,6 +250,9 @@ class LanguageGroups(BaseSDK):
|
|
|
243
250
|
|
|
244
251
|
raise errors.APIError("Unexpected response received", http_res)
|
|
245
252
|
|
|
253
|
+
@deprecated(
|
|
254
|
+
"warning: ** DEPRECATED ** - This will be removed in a future release, please migrate away from it as soon as possible."
|
|
255
|
+
)
|
|
246
256
|
def create(
|
|
247
257
|
self,
|
|
248
258
|
*,
|
|
@@ -257,7 +267,7 @@ class LanguageGroups(BaseSDK):
|
|
|
257
267
|
) -> models.LanguageGroupResponse:
|
|
258
268
|
r"""Create Language Group
|
|
259
269
|
|
|
260
|
-
|
|
270
|
+
Deprecated alias for `POST /api/v1/voice_groups/`.
|
|
261
271
|
|
|
262
272
|
:param request: The request object to send.
|
|
263
273
|
:param retries: Override the default retry configuration for this method
|
|
@@ -338,6 +348,9 @@ class LanguageGroups(BaseSDK):
|
|
|
338
348
|
|
|
339
349
|
raise errors.APIError("Unexpected response received", http_res)
|
|
340
350
|
|
|
351
|
+
@deprecated(
|
|
352
|
+
"warning: ** DEPRECATED ** - This will be removed in a future release, please migrate away from it as soon as possible."
|
|
353
|
+
)
|
|
341
354
|
async def create_async(
|
|
342
355
|
self,
|
|
343
356
|
*,
|
|
@@ -352,7 +365,7 @@ class LanguageGroups(BaseSDK):
|
|
|
352
365
|
) -> models.LanguageGroupResponse:
|
|
353
366
|
r"""Create Language Group
|
|
354
367
|
|
|
355
|
-
|
|
368
|
+
Deprecated alias for `POST /api/v1/voice_groups/`.
|
|
356
369
|
|
|
357
370
|
:param request: The request object to send.
|
|
358
371
|
:param retries: Override the default retry configuration for this method
|
|
@@ -433,6 +446,9 @@ class LanguageGroups(BaseSDK):
|
|
|
433
446
|
|
|
434
447
|
raise errors.APIError("Unexpected response received", http_res)
|
|
435
448
|
|
|
449
|
+
@deprecated(
|
|
450
|
+
"warning: ** DEPRECATED ** - This will be removed in a future release, please migrate away from it as soon as possible."
|
|
451
|
+
)
|
|
436
452
|
def update(
|
|
437
453
|
self,
|
|
438
454
|
*,
|
|
@@ -447,7 +463,7 @@ class LanguageGroups(BaseSDK):
|
|
|
447
463
|
) -> models.LanguageGroupResponse:
|
|
448
464
|
r"""Update Language Group
|
|
449
465
|
|
|
450
|
-
|
|
466
|
+
Deprecated alias for `PUT /api/v1/voice_groups/`.
|
|
451
467
|
|
|
452
468
|
:param request: The request object to send.
|
|
453
469
|
:param retries: Override the default retry configuration for this method
|
|
@@ -528,6 +544,9 @@ class LanguageGroups(BaseSDK):
|
|
|
528
544
|
|
|
529
545
|
raise errors.APIError("Unexpected response received", http_res)
|
|
530
546
|
|
|
547
|
+
@deprecated(
|
|
548
|
+
"warning: ** DEPRECATED ** - This will be removed in a future release, please migrate away from it as soon as possible."
|
|
549
|
+
)
|
|
531
550
|
async def update_async(
|
|
532
551
|
self,
|
|
533
552
|
*,
|
|
@@ -542,7 +561,7 @@ class LanguageGroups(BaseSDK):
|
|
|
542
561
|
) -> models.LanguageGroupResponse:
|
|
543
562
|
r"""Update Language Group
|
|
544
563
|
|
|
545
|
-
|
|
564
|
+
Deprecated alias for `PUT /api/v1/voice_groups/`.
|
|
546
565
|
|
|
547
566
|
:param request: The request object to send.
|
|
548
567
|
:param retries: Override the default retry configuration for this method
|
|
@@ -623,6 +642,9 @@ class LanguageGroups(BaseSDK):
|
|
|
623
642
|
|
|
624
643
|
raise errors.APIError("Unexpected response received", http_res)
|
|
625
644
|
|
|
645
|
+
@deprecated(
|
|
646
|
+
"warning: ** DEPRECATED ** - This will be removed in a future release, please migrate away from it as soon as possible."
|
|
647
|
+
)
|
|
626
648
|
def get_by_id(
|
|
627
649
|
self,
|
|
628
650
|
*,
|
|
@@ -634,7 +656,7 @@ class LanguageGroups(BaseSDK):
|
|
|
634
656
|
) -> models.LanguageGroupResponse:
|
|
635
657
|
r"""Get Language Group
|
|
636
658
|
|
|
637
|
-
|
|
659
|
+
Deprecated alias for `GET /api/v1/voice_groups/{voice_group_id}`.
|
|
638
660
|
|
|
639
661
|
:param language_group_id:
|
|
640
662
|
:param retries: Override the default retry configuration for this method
|
|
@@ -712,6 +734,9 @@ class LanguageGroups(BaseSDK):
|
|
|
712
734
|
|
|
713
735
|
raise errors.APIError("Unexpected response received", http_res)
|
|
714
736
|
|
|
737
|
+
@deprecated(
|
|
738
|
+
"warning: ** DEPRECATED ** - This will be removed in a future release, please migrate away from it as soon as possible."
|
|
739
|
+
)
|
|
715
740
|
async def get_by_id_async(
|
|
716
741
|
self,
|
|
717
742
|
*,
|
|
@@ -723,7 +748,7 @@ class LanguageGroups(BaseSDK):
|
|
|
723
748
|
) -> models.LanguageGroupResponse:
|
|
724
749
|
r"""Get Language Group
|
|
725
750
|
|
|
726
|
-
|
|
751
|
+
Deprecated alias for `GET /api/v1/voice_groups/{voice_group_id}`.
|
|
727
752
|
|
|
728
753
|
:param language_group_id:
|
|
729
754
|
:param retries: Override the default retry configuration for this method
|
|
@@ -801,6 +826,9 @@ class LanguageGroups(BaseSDK):
|
|
|
801
826
|
|
|
802
827
|
raise errors.APIError("Unexpected response received", http_res)
|
|
803
828
|
|
|
829
|
+
@deprecated(
|
|
830
|
+
"warning: ** DEPRECATED ** - This will be removed in a future release, please migrate away from it as soon as possible."
|
|
831
|
+
)
|
|
804
832
|
def delete(
|
|
805
833
|
self,
|
|
806
834
|
*,
|
|
@@ -813,7 +841,7 @@ class LanguageGroups(BaseSDK):
|
|
|
813
841
|
) -> Any:
|
|
814
842
|
r"""Delete Language Group
|
|
815
843
|
|
|
816
|
-
|
|
844
|
+
Deprecated alias for `DELETE /api/v1/voice_groups/{voice_group_id}`.
|
|
817
845
|
|
|
818
846
|
:param language_group_id:
|
|
819
847
|
:param reason:
|
|
@@ -893,6 +921,9 @@ class LanguageGroups(BaseSDK):
|
|
|
893
921
|
|
|
894
922
|
raise errors.APIError("Unexpected response received", http_res)
|
|
895
923
|
|
|
924
|
+
@deprecated(
|
|
925
|
+
"warning: ** DEPRECATED ** - This will be removed in a future release, please migrate away from it as soon as possible."
|
|
926
|
+
)
|
|
896
927
|
async def delete_async(
|
|
897
928
|
self,
|
|
898
929
|
*,
|
|
@@ -905,7 +936,7 @@ class LanguageGroups(BaseSDK):
|
|
|
905
936
|
) -> Any:
|
|
906
937
|
r"""Delete Language Group
|
|
907
938
|
|
|
908
|
-
|
|
939
|
+
Deprecated alias for `DELETE /api/v1/voice_groups/{voice_group_id}`.
|
|
909
940
|
|
|
910
941
|
:param language_group_id:
|
|
911
942
|
:param reason:
|
|
@@ -985,11 +1016,15 @@ class LanguageGroups(BaseSDK):
|
|
|
985
1016
|
|
|
986
1017
|
raise errors.APIError("Unexpected response received", http_res)
|
|
987
1018
|
|
|
1019
|
+
@deprecated(
|
|
1020
|
+
"warning: ** DEPRECATED ** - This will be removed in a future release, please migrate away from it as soon as possible."
|
|
1021
|
+
)
|
|
988
1022
|
def language_groups_create_voice_sample(
|
|
989
1023
|
self,
|
|
990
1024
|
*,
|
|
991
1025
|
request: Union[
|
|
992
|
-
models.
|
|
1026
|
+
models.LanguageSampleCreateRequest,
|
|
1027
|
+
models.LanguageSampleCreateRequestTypedDict,
|
|
993
1028
|
],
|
|
994
1029
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
995
1030
|
server_url: Optional[str] = None,
|
|
@@ -998,7 +1033,7 @@ class LanguageGroups(BaseSDK):
|
|
|
998
1033
|
) -> httpx.Response:
|
|
999
1034
|
r"""Create Voice Sample
|
|
1000
1035
|
|
|
1001
|
-
|
|
1036
|
+
Deprecated alias for `POST /api/v1/voice_groups/voices/sample`.
|
|
1002
1037
|
|
|
1003
1038
|
:param request: The request object to send.
|
|
1004
1039
|
:param retries: Override the default retry configuration for this method
|
|
@@ -1017,8 +1052,8 @@ class LanguageGroups(BaseSDK):
|
|
|
1017
1052
|
base_url = self._get_url(base_url, url_variables)
|
|
1018
1053
|
|
|
1019
1054
|
if not isinstance(request, BaseModel):
|
|
1020
|
-
request = utils.unmarshal(request, models.
|
|
1021
|
-
request = cast(models.
|
|
1055
|
+
request = utils.unmarshal(request, models.LanguageSampleCreateRequest)
|
|
1056
|
+
request = cast(models.LanguageSampleCreateRequest, request)
|
|
1022
1057
|
|
|
1023
1058
|
req = self._build_request(
|
|
1024
1059
|
method="POST",
|
|
@@ -1034,7 +1069,7 @@ class LanguageGroups(BaseSDK):
|
|
|
1034
1069
|
http_headers=http_headers,
|
|
1035
1070
|
security=self.sdk_configuration.security,
|
|
1036
1071
|
get_serialized_body=lambda: utils.serialize_request_body(
|
|
1037
|
-
request, False, False, "json", models.
|
|
1072
|
+
request, False, False, "json", models.LanguageSampleCreateRequest
|
|
1038
1073
|
),
|
|
1039
1074
|
timeout_ms=timeout_ms,
|
|
1040
1075
|
)
|
|
@@ -1082,11 +1117,15 @@ class LanguageGroups(BaseSDK):
|
|
|
1082
1117
|
http_res_text = utils.stream_to_text(http_res)
|
|
1083
1118
|
raise errors.APIError("Unexpected response received", http_res, http_res_text)
|
|
1084
1119
|
|
|
1120
|
+
@deprecated(
|
|
1121
|
+
"warning: ** DEPRECATED ** - This will be removed in a future release, please migrate away from it as soon as possible."
|
|
1122
|
+
)
|
|
1085
1123
|
async def language_groups_create_voice_sample_async(
|
|
1086
1124
|
self,
|
|
1087
1125
|
*,
|
|
1088
1126
|
request: Union[
|
|
1089
|
-
models.
|
|
1127
|
+
models.LanguageSampleCreateRequest,
|
|
1128
|
+
models.LanguageSampleCreateRequestTypedDict,
|
|
1090
1129
|
],
|
|
1091
1130
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
1092
1131
|
server_url: Optional[str] = None,
|
|
@@ -1095,7 +1134,7 @@ class LanguageGroups(BaseSDK):
|
|
|
1095
1134
|
) -> httpx.Response:
|
|
1096
1135
|
r"""Create Voice Sample
|
|
1097
1136
|
|
|
1098
|
-
|
|
1137
|
+
Deprecated alias for `POST /api/v1/voice_groups/voices/sample`.
|
|
1099
1138
|
|
|
1100
1139
|
:param request: The request object to send.
|
|
1101
1140
|
:param retries: Override the default retry configuration for this method
|
|
@@ -1114,8 +1153,8 @@ class LanguageGroups(BaseSDK):
|
|
|
1114
1153
|
base_url = self._get_url(base_url, url_variables)
|
|
1115
1154
|
|
|
1116
1155
|
if not isinstance(request, BaseModel):
|
|
1117
|
-
request = utils.unmarshal(request, models.
|
|
1118
|
-
request = cast(models.
|
|
1156
|
+
request = utils.unmarshal(request, models.LanguageSampleCreateRequest)
|
|
1157
|
+
request = cast(models.LanguageSampleCreateRequest, request)
|
|
1119
1158
|
|
|
1120
1159
|
req = self._build_request_async(
|
|
1121
1160
|
method="POST",
|
|
@@ -1131,7 +1170,7 @@ class LanguageGroups(BaseSDK):
|
|
|
1131
1170
|
http_headers=http_headers,
|
|
1132
1171
|
security=self.sdk_configuration.security,
|
|
1133
1172
|
get_serialized_body=lambda: utils.serialize_request_body(
|
|
1134
|
-
request, False, False, "json", models.
|
|
1173
|
+
request, False, False, "json", models.LanguageSampleCreateRequest
|
|
1135
1174
|
),
|
|
1136
1175
|
timeout_ms=timeout_ms,
|
|
1137
1176
|
)
|
syllable_sdk/models/__init__.py
CHANGED
|
@@ -433,6 +433,10 @@ if TYPE_CHECKING:
|
|
|
433
433
|
LanguageGroupUpdateRequest,
|
|
434
434
|
LanguageGroupUpdateRequestTypedDict,
|
|
435
435
|
)
|
|
436
|
+
from .languagesamplecreaterequest import (
|
|
437
|
+
LanguageSampleCreateRequest,
|
|
438
|
+
LanguageSampleCreateRequestTypedDict,
|
|
439
|
+
)
|
|
436
440
|
from .latencycategory import LatencyCategory
|
|
437
441
|
from .latencyentry import LatencyEntry, LatencyEntryTypedDict
|
|
438
442
|
from .latencyunittype import LatencyUnitType
|
|
@@ -527,6 +531,10 @@ if TYPE_CHECKING:
|
|
|
527
531
|
ListResponseUserResponse,
|
|
528
532
|
ListResponseUserResponseTypedDict,
|
|
529
533
|
)
|
|
534
|
+
from .listresponse_voicegroupresponse_ import (
|
|
535
|
+
ListResponseVoiceGroupResponse,
|
|
536
|
+
ListResponseVoiceGroupResponseTypedDict,
|
|
537
|
+
)
|
|
530
538
|
from .logintype import LoginType
|
|
531
539
|
from .matchtype import MatchType
|
|
532
540
|
from .orderbydirection import OrderByDirection
|
|
@@ -841,7 +849,29 @@ if TYPE_CHECKING:
|
|
|
841
849
|
ValidationError,
|
|
842
850
|
ValidationErrorTypedDict,
|
|
843
851
|
)
|
|
852
|
+
from .voice_groups_deleteop import (
|
|
853
|
+
VoiceGroupsDeleteRequest,
|
|
854
|
+
VoiceGroupsDeleteRequestTypedDict,
|
|
855
|
+
)
|
|
856
|
+
from .voice_groups_get_by_idop import (
|
|
857
|
+
VoiceGroupsGetByIDRequest,
|
|
858
|
+
VoiceGroupsGetByIDRequestTypedDict,
|
|
859
|
+
)
|
|
860
|
+
from .voice_groups_listop import (
|
|
861
|
+
VoiceGroupsListRequest,
|
|
862
|
+
VoiceGroupsListRequestTypedDict,
|
|
863
|
+
)
|
|
844
864
|
from .voicedisplayinfo import VoiceDisplayInfo, VoiceDisplayInfoTypedDict
|
|
865
|
+
from .voicegroupcreaterequest import (
|
|
866
|
+
VoiceGroupCreateRequest,
|
|
867
|
+
VoiceGroupCreateRequestTypedDict,
|
|
868
|
+
)
|
|
869
|
+
from .voicegroupproperties import VoiceGroupProperties
|
|
870
|
+
from .voicegroupresponse import VoiceGroupResponse, VoiceGroupResponseTypedDict
|
|
871
|
+
from .voicegroupupdaterequest import (
|
|
872
|
+
VoiceGroupUpdateRequest,
|
|
873
|
+
VoiceGroupUpdateRequestTypedDict,
|
|
874
|
+
)
|
|
845
875
|
from .voicesamplecreaterequest import (
|
|
846
876
|
VoiceSampleCreateRequest,
|
|
847
877
|
VoiceSampleCreateRequestTypedDict,
|
|
@@ -1144,6 +1174,8 @@ __all__ = [
|
|
|
1144
1174
|
"LanguageGroupsGetByIDRequestTypedDict",
|
|
1145
1175
|
"LanguageGroupsListRequest",
|
|
1146
1176
|
"LanguageGroupsListRequestTypedDict",
|
|
1177
|
+
"LanguageSampleCreateRequest",
|
|
1178
|
+
"LanguageSampleCreateRequestTypedDict",
|
|
1147
1179
|
"LatencyCategory",
|
|
1148
1180
|
"LatencyEntry",
|
|
1149
1181
|
"LatencyEntryTypedDict",
|
|
@@ -1198,6 +1230,8 @@ __all__ = [
|
|
|
1198
1230
|
"ListResponseToolResponseTypedDict",
|
|
1199
1231
|
"ListResponseUserResponse",
|
|
1200
1232
|
"ListResponseUserResponseTypedDict",
|
|
1233
|
+
"ListResponseVoiceGroupResponse",
|
|
1234
|
+
"ListResponseVoiceGroupResponseTypedDict",
|
|
1201
1235
|
"Loc",
|
|
1202
1236
|
"LocTypedDict",
|
|
1203
1237
|
"LoginType",
|
|
@@ -1449,6 +1483,19 @@ __all__ = [
|
|
|
1449
1483
|
"ValidationErrorTypedDict",
|
|
1450
1484
|
"VoiceDisplayInfo",
|
|
1451
1485
|
"VoiceDisplayInfoTypedDict",
|
|
1486
|
+
"VoiceGroupCreateRequest",
|
|
1487
|
+
"VoiceGroupCreateRequestTypedDict",
|
|
1488
|
+
"VoiceGroupProperties",
|
|
1489
|
+
"VoiceGroupResponse",
|
|
1490
|
+
"VoiceGroupResponseTypedDict",
|
|
1491
|
+
"VoiceGroupUpdateRequest",
|
|
1492
|
+
"VoiceGroupUpdateRequestTypedDict",
|
|
1493
|
+
"VoiceGroupsDeleteRequest",
|
|
1494
|
+
"VoiceGroupsDeleteRequestTypedDict",
|
|
1495
|
+
"VoiceGroupsGetByIDRequest",
|
|
1496
|
+
"VoiceGroupsGetByIDRequestTypedDict",
|
|
1497
|
+
"VoiceGroupsListRequest",
|
|
1498
|
+
"VoiceGroupsListRequestTypedDict",
|
|
1452
1499
|
"VoiceSampleCreateRequest",
|
|
1453
1500
|
"VoiceSampleCreateRequestTypedDict",
|
|
1454
1501
|
]
|
|
@@ -1744,6 +1791,8 @@ _dynamic_imports: dict[str, str] = {
|
|
|
1744
1791
|
"LanguageGroupResponseTypedDict": ".languagegroupresponse",
|
|
1745
1792
|
"LanguageGroupUpdateRequest": ".languagegroupupdaterequest",
|
|
1746
1793
|
"LanguageGroupUpdateRequestTypedDict": ".languagegroupupdaterequest",
|
|
1794
|
+
"LanguageSampleCreateRequest": ".languagesamplecreaterequest",
|
|
1795
|
+
"LanguageSampleCreateRequestTypedDict": ".languagesamplecreaterequest",
|
|
1747
1796
|
"LatencyCategory": ".latencycategory",
|
|
1748
1797
|
"LatencyEntry": ".latencyentry",
|
|
1749
1798
|
"LatencyEntryTypedDict": ".latencyentry",
|
|
@@ -1798,6 +1847,8 @@ _dynamic_imports: dict[str, str] = {
|
|
|
1798
1847
|
"ListResponseToolResponseTypedDict": ".listresponse_toolresponse_",
|
|
1799
1848
|
"ListResponseUserResponse": ".listresponse_userresponse_",
|
|
1800
1849
|
"ListResponseUserResponseTypedDict": ".listresponse_userresponse_",
|
|
1850
|
+
"ListResponseVoiceGroupResponse": ".listresponse_voicegroupresponse_",
|
|
1851
|
+
"ListResponseVoiceGroupResponseTypedDict": ".listresponse_voicegroupresponse_",
|
|
1801
1852
|
"LoginType": ".logintype",
|
|
1802
1853
|
"MatchType": ".matchtype",
|
|
1803
1854
|
"OrderByDirection": ".orderbydirection",
|
|
@@ -2046,8 +2097,21 @@ _dynamic_imports: dict[str, str] = {
|
|
|
2046
2097
|
"LocTypedDict": ".validationerror",
|
|
2047
2098
|
"ValidationError": ".validationerror",
|
|
2048
2099
|
"ValidationErrorTypedDict": ".validationerror",
|
|
2100
|
+
"VoiceGroupsDeleteRequest": ".voice_groups_deleteop",
|
|
2101
|
+
"VoiceGroupsDeleteRequestTypedDict": ".voice_groups_deleteop",
|
|
2102
|
+
"VoiceGroupsGetByIDRequest": ".voice_groups_get_by_idop",
|
|
2103
|
+
"VoiceGroupsGetByIDRequestTypedDict": ".voice_groups_get_by_idop",
|
|
2104
|
+
"VoiceGroupsListRequest": ".voice_groups_listop",
|
|
2105
|
+
"VoiceGroupsListRequestTypedDict": ".voice_groups_listop",
|
|
2049
2106
|
"VoiceDisplayInfo": ".voicedisplayinfo",
|
|
2050
2107
|
"VoiceDisplayInfoTypedDict": ".voicedisplayinfo",
|
|
2108
|
+
"VoiceGroupCreateRequest": ".voicegroupcreaterequest",
|
|
2109
|
+
"VoiceGroupCreateRequestTypedDict": ".voicegroupcreaterequest",
|
|
2110
|
+
"VoiceGroupProperties": ".voicegroupproperties",
|
|
2111
|
+
"VoiceGroupResponse": ".voicegroupresponse",
|
|
2112
|
+
"VoiceGroupResponseTypedDict": ".voicegroupresponse",
|
|
2113
|
+
"VoiceGroupUpdateRequest": ".voicegroupupdaterequest",
|
|
2114
|
+
"VoiceGroupUpdateRequestTypedDict": ".voicegroupupdaterequest",
|
|
2051
2115
|
"VoiceSampleCreateRequest": ".voicesamplecreaterequest",
|
|
2052
2116
|
"VoiceSampleCreateRequestTypedDict": ".voicesamplecreaterequest",
|
|
2053
2117
|
}
|
|
@@ -15,7 +15,7 @@ from typing_extensions import NotRequired, TypedDict
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
class LanguageGroupCreateRequestTypedDict(TypedDict):
|
|
18
|
-
r"""Request model to create a
|
|
18
|
+
r"""Request model to create a voice group."""
|
|
19
19
|
|
|
20
20
|
name: str
|
|
21
21
|
r"""The name of the language group."""
|
|
@@ -28,7 +28,7 @@ class LanguageGroupCreateRequestTypedDict(TypedDict):
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
class LanguageGroupCreateRequest(BaseModel):
|
|
31
|
-
r"""Request model to create a
|
|
31
|
+
r"""Request model to create a voice group."""
|
|
32
32
|
|
|
33
33
|
name: str
|
|
34
34
|
r"""The name of the language group."""
|
|
@@ -5,7 +5,7 @@ from enum import Enum
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
class LanguageGroupProperties(str, Enum):
|
|
8
|
-
r"""
|
|
8
|
+
r"""Deprecated enum mirroring `VoiceGroupProperties` values."""
|
|
9
9
|
|
|
10
10
|
NAME = "name"
|
|
11
11
|
DESCRIPTION = "description"
|
|
@@ -20,10 +20,10 @@ from typing_extensions import NotRequired, TypedDict
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
class LanguageGroupResponseTypedDict(TypedDict):
|
|
23
|
-
r"""Response model for
|
|
24
|
-
A
|
|
23
|
+
r"""Response model for voice group operations.
|
|
24
|
+
A voice group is a collection of language, voice, and DTMF configuration that can be
|
|
25
25
|
linked to an agent to define the languages and voices it supports. For more information, see
|
|
26
|
-
[Console docs](https://docs.syllable.ai/Resources/
|
|
26
|
+
[Console docs](https://docs.syllable.ai/Resources/VoiceGroups).
|
|
27
27
|
"""
|
|
28
28
|
|
|
29
29
|
name: str
|
|
@@ -47,10 +47,10 @@ class LanguageGroupResponseTypedDict(TypedDict):
|
|
|
47
47
|
|
|
48
48
|
|
|
49
49
|
class LanguageGroupResponse(BaseModel):
|
|
50
|
-
r"""Response model for
|
|
51
|
-
A
|
|
50
|
+
r"""Response model for voice group operations.
|
|
51
|
+
A voice group is a collection of language, voice, and DTMF configuration that can be
|
|
52
52
|
linked to an agent to define the languages and voices it supports. For more information, see
|
|
53
|
-
[Console docs](https://docs.syllable.ai/Resources/
|
|
53
|
+
[Console docs](https://docs.syllable.ai/Resources/VoiceGroups).
|
|
54
54
|
"""
|
|
55
55
|
|
|
56
56
|
name: str
|
|
@@ -15,7 +15,7 @@ from typing_extensions import NotRequired, TypedDict
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
class LanguageGroupUpdateRequestTypedDict(TypedDict):
|
|
18
|
-
r"""Request model to update an existing
|
|
18
|
+
r"""Request model to update an existing voice group."""
|
|
19
19
|
|
|
20
20
|
name: str
|
|
21
21
|
r"""The name of the language group."""
|
|
@@ -32,7 +32,7 @@ class LanguageGroupUpdateRequestTypedDict(TypedDict):
|
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
class LanguageGroupUpdateRequest(BaseModel):
|
|
35
|
-
r"""Request model to update an existing
|
|
35
|
+
r"""Request model to update an existing voice group."""
|
|
36
36
|
|
|
37
37
|
name: str
|
|
38
38
|
r"""The name of the language group."""
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .agentvoicedisplayname import AgentVoiceDisplayName
|
|
5
|
+
from .languagecode import LanguageCode
|
|
6
|
+
from .ttsprovider import TtsProvider
|
|
7
|
+
from pydantic import model_serializer
|
|
8
|
+
from syllable_sdk.types import (
|
|
9
|
+
BaseModel,
|
|
10
|
+
Nullable,
|
|
11
|
+
OptionalNullable,
|
|
12
|
+
UNSET,
|
|
13
|
+
UNSET_SENTINEL,
|
|
14
|
+
)
|
|
15
|
+
from typing import Optional
|
|
16
|
+
from typing_extensions import NotRequired, TypedDict
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class LanguageSampleCreateRequestTypedDict(TypedDict):
|
|
20
|
+
r"""Request model to generate a sample audio file for a given voice and language."""
|
|
21
|
+
|
|
22
|
+
language_code: LanguageCode
|
|
23
|
+
r"""BCP 47 codes of languages that Syllable supports."""
|
|
24
|
+
voice_provider: TtsProvider
|
|
25
|
+
r"""TTS provider for an agent voice."""
|
|
26
|
+
voice_display_name: AgentVoiceDisplayName
|
|
27
|
+
r"""Display names of voices that Syllable supports."""
|
|
28
|
+
voice_speed: NotRequired[Nullable[float]]
|
|
29
|
+
r"""Speed of the voice in the range of 0.25 to 4.0 (OpenAI and Google) or 0.7 to 1.2 (ElevenLabs). Standard speed is 1.0."""
|
|
30
|
+
voice_pitch: NotRequired[Nullable[float]]
|
|
31
|
+
r"""Pitch of the voice in the range of -20.0 to 20.0. 20 means increase 20 semitones from the original pitch. -20 means decrease 20 semitones from the original pitch. 0 means use the original pitch. Only supported for Google configs."""
|
|
32
|
+
text: NotRequired[str]
|
|
33
|
+
r"""Text to generate for this voice."""
|
|
34
|
+
apply_pronunciation_overrides: NotRequired[bool]
|
|
35
|
+
r"""Apply TTS pronunciation fixes."""
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
class LanguageSampleCreateRequest(BaseModel):
|
|
39
|
+
r"""Request model to generate a sample audio file for a given voice and language."""
|
|
40
|
+
|
|
41
|
+
language_code: LanguageCode
|
|
42
|
+
r"""BCP 47 codes of languages that Syllable supports."""
|
|
43
|
+
|
|
44
|
+
voice_provider: TtsProvider
|
|
45
|
+
r"""TTS provider for an agent voice."""
|
|
46
|
+
|
|
47
|
+
voice_display_name: AgentVoiceDisplayName
|
|
48
|
+
r"""Display names of voices that Syllable supports."""
|
|
49
|
+
|
|
50
|
+
voice_speed: OptionalNullable[float] = UNSET
|
|
51
|
+
r"""Speed of the voice in the range of 0.25 to 4.0 (OpenAI and Google) or 0.7 to 1.2 (ElevenLabs). Standard speed is 1.0."""
|
|
52
|
+
|
|
53
|
+
voice_pitch: OptionalNullable[float] = UNSET
|
|
54
|
+
r"""Pitch of the voice in the range of -20.0 to 20.0. 20 means increase 20 semitones from the original pitch. -20 means decrease 20 semitones from the original pitch. 0 means use the original pitch. Only supported for Google configs."""
|
|
55
|
+
|
|
56
|
+
text: Optional[str] = ""
|
|
57
|
+
r"""Text to generate for this voice."""
|
|
58
|
+
|
|
59
|
+
apply_pronunciation_overrides: Optional[bool] = False
|
|
60
|
+
r"""Apply TTS pronunciation fixes."""
|
|
61
|
+
|
|
62
|
+
@model_serializer(mode="wrap")
|
|
63
|
+
def serialize_model(self, handler):
|
|
64
|
+
optional_fields = [
|
|
65
|
+
"voice_speed",
|
|
66
|
+
"voice_pitch",
|
|
67
|
+
"text",
|
|
68
|
+
"apply_pronunciation_overrides",
|
|
69
|
+
]
|
|
70
|
+
nullable_fields = ["voice_speed", "voice_pitch"]
|
|
71
|
+
null_default_fields = []
|
|
72
|
+
|
|
73
|
+
serialized = handler(self)
|
|
74
|
+
|
|
75
|
+
m = {}
|
|
76
|
+
|
|
77
|
+
for n, f in type(self).model_fields.items():
|
|
78
|
+
k = f.alias or n
|
|
79
|
+
val = serialized.get(k)
|
|
80
|
+
serialized.pop(k, None)
|
|
81
|
+
|
|
82
|
+
optional_nullable = k in optional_fields and k in nullable_fields
|
|
83
|
+
is_set = (
|
|
84
|
+
self.__pydantic_fields_set__.intersection({n})
|
|
85
|
+
or k in null_default_fields
|
|
86
|
+
) # pylint: disable=no-member
|
|
87
|
+
|
|
88
|
+
if val is not None and val != UNSET_SENTINEL:
|
|
89
|
+
m[k] = val
|
|
90
|
+
elif val != UNSET_SENTINEL and (
|
|
91
|
+
not k in optional_fields or (optional_nullable and is_set)
|
|
92
|
+
):
|
|
93
|
+
m[k] = val
|
|
94
|
+
|
|
95
|
+
return m
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .voicegroupresponse import VoiceGroupResponse, VoiceGroupResponseTypedDict
|
|
5
|
+
from pydantic import model_serializer
|
|
6
|
+
from syllable_sdk.types import (
|
|
7
|
+
BaseModel,
|
|
8
|
+
Nullable,
|
|
9
|
+
OptionalNullable,
|
|
10
|
+
UNSET,
|
|
11
|
+
UNSET_SENTINEL,
|
|
12
|
+
)
|
|
13
|
+
from typing import List
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class ListResponseVoiceGroupResponseTypedDict(TypedDict):
|
|
18
|
+
items: List[VoiceGroupResponseTypedDict]
|
|
19
|
+
r"""List of items returned from the query"""
|
|
20
|
+
page: int
|
|
21
|
+
r"""The page number of the results (0-based)"""
|
|
22
|
+
page_size: int
|
|
23
|
+
r"""The number of items returned per page"""
|
|
24
|
+
total_pages: NotRequired[Nullable[int]]
|
|
25
|
+
r"""The total number of pages of results given the indicated page size"""
|
|
26
|
+
total_count: NotRequired[Nullable[int]]
|
|
27
|
+
r"""The total number of items returned from the query"""
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class ListResponseVoiceGroupResponse(BaseModel):
|
|
31
|
+
items: List[VoiceGroupResponse]
|
|
32
|
+
r"""List of items returned from the query"""
|
|
33
|
+
|
|
34
|
+
page: int
|
|
35
|
+
r"""The page number of the results (0-based)"""
|
|
36
|
+
|
|
37
|
+
page_size: int
|
|
38
|
+
r"""The number of items returned per page"""
|
|
39
|
+
|
|
40
|
+
total_pages: OptionalNullable[int] = UNSET
|
|
41
|
+
r"""The total number of pages of results given the indicated page size"""
|
|
42
|
+
|
|
43
|
+
total_count: OptionalNullable[int] = UNSET
|
|
44
|
+
r"""The total number of items returned from the query"""
|
|
45
|
+
|
|
46
|
+
@model_serializer(mode="wrap")
|
|
47
|
+
def serialize_model(self, handler):
|
|
48
|
+
optional_fields = ["total_pages", "total_count"]
|
|
49
|
+
nullable_fields = ["total_pages", "total_count"]
|
|
50
|
+
null_default_fields = []
|
|
51
|
+
|
|
52
|
+
serialized = handler(self)
|
|
53
|
+
|
|
54
|
+
m = {}
|
|
55
|
+
|
|
56
|
+
for n, f in type(self).model_fields.items():
|
|
57
|
+
k = f.alias or n
|
|
58
|
+
val = serialized.get(k)
|
|
59
|
+
serialized.pop(k, None)
|
|
60
|
+
|
|
61
|
+
optional_nullable = k in optional_fields and k in nullable_fields
|
|
62
|
+
is_set = (
|
|
63
|
+
self.__pydantic_fields_set__.intersection({n})
|
|
64
|
+
or k in null_default_fields
|
|
65
|
+
) # pylint: disable=no-member
|
|
66
|
+
|
|
67
|
+
if val is not None and val != UNSET_SENTINEL:
|
|
68
|
+
m[k] = val
|
|
69
|
+
elif val != UNSET_SENTINEL and (
|
|
70
|
+
not k in optional_fields or (optional_nullable and is_set)
|
|
71
|
+
):
|
|
72
|
+
m[k] = val
|
|
73
|
+
|
|
74
|
+
return m
|