murf 2.0.2__py3-none-any.whl → 2.1.0__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.

Potentially problematic release.


This version of murf might be problematic. Click here for more details.

murf/__init__.py CHANGED
@@ -56,7 +56,6 @@ from .client import AsyncMurf, Murf
56
56
  from .dubbing_client import MurfDub
57
57
  from .environment import MurfEnvironment
58
58
  from .stream_input import ReceiveMessage, SendMessage
59
- from .text_to_speech import GenerateSpeechRequestModelVersion
60
59
  from .version import __version__
61
60
 
62
61
  __all__ = [
@@ -78,7 +77,6 @@ __all__ = [
78
77
  "FinalOutput",
79
78
  "ForbiddenError",
80
79
  "FormDataContentDisposition",
81
- "GenerateSpeechRequestModelVersion",
82
80
  "GenerateSpeechResponse",
83
81
  "GroupApiProjectResponse",
84
82
  "InternalServerError",
@@ -23,7 +23,7 @@ class BaseClientWrapper:
23
23
  headers: typing.Dict[str, str] = {
24
24
  "X-Fern-Language": "Python",
25
25
  "X-Fern-SDK-Name": "murf",
26
- "X-Fern-SDK-Version": "2.0.2",
26
+ "X-Fern-SDK-Version": "2.1.0",
27
27
  }
28
28
  if self._api_key is not None:
29
29
  headers["api-key"] = self._api_key
@@ -1,5 +1,2 @@
1
1
  # This file was auto-generated by Fern from our API Definition.
2
2
 
3
- from .types import GenerateSpeechRequestModelVersion
4
-
5
- __all__ = ["GenerateSpeechRequestModelVersion"]
@@ -2,7 +2,6 @@
2
2
 
3
3
  import typing
4
4
  from ..core.client_wrapper import SyncClientWrapper
5
- from .types.generate_speech_request_model_version import GenerateSpeechRequestModelVersion
6
5
  from ..types.pronunciation_detail import PronunciationDetail
7
6
  from ..core.request_options import RequestOptions
8
7
  from ..types.generate_speech_response import GenerateSpeechResponse
@@ -34,9 +33,8 @@ class TextToSpeechClient:
34
33
  audio_duration: typing.Optional[float] = OMIT,
35
34
  channel_type: typing.Optional[str] = OMIT,
36
35
  encode_as_base_64: typing.Optional[bool] = OMIT,
37
- encoded_as_base_64_with_zero_retention: typing.Optional[bool] = OMIT,
38
36
  format: typing.Optional[str] = OMIT,
39
- model_version: typing.Optional[GenerateSpeechRequestModelVersion] = OMIT,
37
+ model_version: typing.Optional[typing.Literal["GEN2"]] = OMIT,
40
38
  multi_native_locale: typing.Optional[str] = OMIT,
41
39
  pitch: typing.Optional[int] = OMIT,
42
40
  pronunciation_dictionary: typing.Optional[typing.Dict[str, PronunciationDetail]] = OMIT,
@@ -65,16 +63,13 @@ class TextToSpeechClient:
65
63
  Valid values: STEREO, MONO
66
64
 
67
65
  encode_as_base_64 : typing.Optional[bool]
68
- Set to true to receive audio in response as a Base64 encoded string instead of a url.
69
-
70
- encoded_as_base_64_with_zero_retention : typing.Optional[bool]
71
- Set to true to receive audio in response as a Base64 encoded string with zero data retention
66
+ Set to true to receive audio in response as a Base64 encoded string instead of a url. This enables zero retention of audio data on Murf's servers.
72
67
 
73
68
  format : typing.Optional[str]
74
69
  Format of the generated audio file. Valid values: MP3, WAV, FLAC, ALAW, ULAW, PCM, OGG
75
70
 
76
- model_version : typing.Optional[GenerateSpeechRequestModelVersion]
77
- Valid values: GEN1, GEN2. Use GEN2 to generate audio using new and advanced model. Outputs from Gen 2 will sound better, but different from the old model
71
+ model_version : typing.Optional[typing.Literal["GEN2"]]
72
+ Valid values: GEN2. Audio will be generated using the new and advanced GEN2 model. Outputs from GEN2 sound more natural and high-quality compared to earlier models.
78
73
 
79
74
  multi_native_locale : typing.Optional[str]
80
75
  Specifies the language for the generated audio, enabling a voice to speak in multiple languages natively. Only available in the Gen2 model.
@@ -133,7 +128,6 @@ class TextToSpeechClient:
133
128
  "audioDuration": audio_duration,
134
129
  "channelType": channel_type,
135
130
  "encodeAsBase64": encode_as_base_64,
136
- "encodedAsBase64WithZeroRetention": encoded_as_base_64_with_zero_retention,
137
131
  "format": format,
138
132
  "modelVersion": model_version,
139
133
  "multiNativeLocale": multi_native_locale,
@@ -489,9 +483,8 @@ class AsyncTextToSpeechClient:
489
483
  audio_duration: typing.Optional[float] = OMIT,
490
484
  channel_type: typing.Optional[str] = OMIT,
491
485
  encode_as_base_64: typing.Optional[bool] = OMIT,
492
- encoded_as_base_64_with_zero_retention: typing.Optional[bool] = OMIT,
493
486
  format: typing.Optional[str] = OMIT,
494
- model_version: typing.Optional[GenerateSpeechRequestModelVersion] = OMIT,
487
+ model_version: typing.Optional[typing.Literal["GEN2"]] = OMIT,
495
488
  multi_native_locale: typing.Optional[str] = OMIT,
496
489
  pitch: typing.Optional[int] = OMIT,
497
490
  pronunciation_dictionary: typing.Optional[typing.Dict[str, PronunciationDetail]] = OMIT,
@@ -520,16 +513,13 @@ class AsyncTextToSpeechClient:
520
513
  Valid values: STEREO, MONO
521
514
 
522
515
  encode_as_base_64 : typing.Optional[bool]
523
- Set to true to receive audio in response as a Base64 encoded string instead of a url.
524
-
525
- encoded_as_base_64_with_zero_retention : typing.Optional[bool]
526
- Set to true to receive audio in response as a Base64 encoded string with zero data retention
516
+ Set to true to receive audio in response as a Base64 encoded string instead of a url. This enables zero retention of audio data on Murf's servers.
527
517
 
528
518
  format : typing.Optional[str]
529
519
  Format of the generated audio file. Valid values: MP3, WAV, FLAC, ALAW, ULAW, PCM, OGG
530
520
 
531
- model_version : typing.Optional[GenerateSpeechRequestModelVersion]
532
- Valid values: GEN1, GEN2. Use GEN2 to generate audio using new and advanced model. Outputs from Gen 2 will sound better, but different from the old model
521
+ model_version : typing.Optional[typing.Literal["GEN2"]]
522
+ Valid values: GEN2. Audio will be generated using the new and advanced GEN2 model. Outputs from GEN2 sound more natural and high-quality compared to earlier models.
533
523
 
534
524
  multi_native_locale : typing.Optional[str]
535
525
  Specifies the language for the generated audio, enabling a voice to speak in multiple languages natively. Only available in the Gen2 model.
@@ -596,7 +586,6 @@ class AsyncTextToSpeechClient:
596
586
  "audioDuration": audio_duration,
597
587
  "channelType": channel_type,
598
588
  "encodeAsBase64": encode_as_base_64,
599
- "encodedAsBase64WithZeroRetention": encoded_as_base_64_with_zero_retention,
600
589
  "format": format,
601
590
  "modelVersion": model_version,
602
591
  "multiNativeLocale": multi_native_locale,
@@ -3,8 +3,8 @@
3
3
  from ..core.unchecked_base_model import UncheckedBaseModel
4
4
  import typing_extensions
5
5
  from ..core.serialization import FieldMetadata
6
- import pydantic
7
6
  import typing
7
+ import pydantic
8
8
  from .word_duration_response import WordDurationResponse
9
9
  from ..core.pydantic_utilities import IS_PYDANTIC_V2
10
10
 
@@ -12,9 +12,9 @@ from ..core.pydantic_utilities import IS_PYDANTIC_V2
12
12
  class GenerateSpeechResponse(UncheckedBaseModel):
13
13
  audio_file: typing_extensions.Annotated[str, FieldMetadata(alias="audioFile")]
14
14
  audio_length_in_seconds: typing_extensions.Annotated[float, FieldMetadata(alias="audioLengthInSeconds")]
15
- consumed_character_count: typing_extensions.Annotated[int, FieldMetadata(alias="consumedCharacterCount")] = (
16
- pydantic.Field()
17
- )
15
+ consumed_character_count: typing_extensions.Annotated[
16
+ typing.Optional[int], FieldMetadata(alias="consumedCharacterCount")
17
+ ] = pydantic.Field(default=None)
18
18
  """
19
19
  Number of characters consumed so far in the current billing cycle.
20
20
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: murf
3
- Version: 2.0.2
3
+ Version: 2.1.0
4
4
  Summary:
5
5
  Requires-Python: >=3.8,<4.0
6
6
  Classifier: Intended Audience :: Developers
@@ -1,11 +1,11 @@
1
- murf/__init__.py,sha256=orz2MLv2l_zqTaKrkzIrJsItPCu9-z56aUZnIkRkqrM,3756
1
+ murf/__init__.py,sha256=uQbOoJo3smD8a7Kp8IyPHlWfWo96otSrFvICwehtVrk,3653
2
2
  murf/auth/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
3
3
  murf/auth/client.py,sha256=aJIq8Mj3jVv-KLAFSG_nP_VqQALEKe41O7Xc3tw5uUc,6270
4
4
  murf/base_client.py,sha256=xEryUjqHJ5OHkwBklQdbBr_fucX-nroxc4-a6zG4hfU,5646
5
5
  murf/client.py,sha256=xFAsGgZ9c5xKa7gctrO0P8ud112oQ8QpBpSy76mNv2U,4686
6
6
  murf/core/__init__.py,sha256=OKbX2aCZXgHCDUsCouqv-OiX32xA6eFFCKIUH9M5Vzk,1591
7
7
  murf/core/api_error.py,sha256=RE8LELok2QCjABadECTvtDp7qejA1VmINCh6TbqPwSE,426
8
- murf/core/client_wrapper.py,sha256=nRHoMn9xnq10W-OIZADyboGvunbsn63tK1wcmonRv7s,2035
8
+ murf/core/client_wrapper.py,sha256=OklT_r-eBDQj_DT9HOxqZiGvgEdpufaSs8-pxDBTwrs,2035
9
9
  murf/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
10
10
  murf/core/file.py,sha256=d4NNbX8XvXP32z8KpK2Xovv33nFfruIrpz0QWxlgpZk,2663
11
11
  murf/core/http_client.py,sha256=Z77OIxIbL4OAB2IDqjRq_sYa5yNYAWfmdhdCSSvh6Y4,19552
@@ -45,10 +45,8 @@ murf/stream_input/types/receive_message.py,sha256=eczdgGeN-ak8vuuPcRdMT8gxL1Pt0N
45
45
  murf/stream_input/types/send_message.py,sha256=tg4qlGX-3yKID0gSGOodJDcpdQFtLJQAYFnGKC8FRHE,453
46
46
  murf/text/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
47
47
  murf/text/client.py,sha256=Ht3lES96uodzVeX1LGcrs1wzFMNppiDUKSB8rZz2xjw,9284
48
- murf/text_to_speech/__init__.py,sha256=Xv0-uZoCGDrfYszMbB2sh5nsApPBrcmek6SDgljYfxA,167
49
- murf/text_to_speech/client.py,sha256=fID_D8447qGVF9gl2_2PoTQaHDNJoigmOne0aBn6Tuo,38645
50
- murf/text_to_speech/types/__init__.py,sha256=Hq1g0iZQ8sHQVU32Pt6lEetGXKEUUntytBmIq4bVK0A,199
51
- murf/text_to_speech/types/generate_speech_request_model_version.py,sha256=y0NvjvNgtPrNcywVnq11MjANl-hJ7m-S5M_Ik5NP7c8,173
48
+ murf/text_to_speech/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
49
+ murf/text_to_speech/client.py,sha256=GXiWLzNrMJEJ_5ctnb35YGIMyivNaa90mViSFRNIBiQ,37960
52
50
  murf/types/__init__.py,sha256=y_FwqlvbyX9Bq6eRI3VJVY-PIWM2SKlKCz8_C2oalDI,4424
53
51
  murf/types/api_job_response.py,sha256=mR227w0Yh4yFfNUeYz_wc4YFDNyqF_1j6maPwsNNtvM,1390
54
52
  murf/types/api_job_response_dubbing_type.py,sha256=-tnqFfuSOXSZngLhHBLg0Dn_X4fP5XIGMsI1TewVxig,168
@@ -65,7 +63,7 @@ murf/types/dub_api_detail_response.py,sha256=bsp9x30dl53Qvy7KJHp1MOwGcCitwyuNQy0
65
63
  murf/types/dub_job_status_response.py,sha256=51QkNiQ6cziH-Uwf1x1h8ltMRreWIJ6-b1t4ZjVV1ko,1125
66
64
  murf/types/final_output.py,sha256=MdzpeN6frSIdi8nZ37i4WQgfNab1OjGdXf3xX70Z2wI,796
67
65
  murf/types/form_data_content_disposition.py,sha256=hVKzwOBdH6MA8gLAtypR0BmbAfj1a_K9sLNKo4cd7N0,1309
68
- murf/types/generate_speech_response.py,sha256=oVMTE_VEygmQvz5Lj7s4OSuyePEbBpoRsOMg_O8GZwc,1635
66
+ murf/types/generate_speech_response.py,sha256=IOf-EsWKfYKhVp-mKKaa4di3uxpRqwfRuKoWjbW2i0k,1662
69
67
  murf/types/group_api_project_response.py,sha256=6jsknHQLFsxfRPFPjuSY7Og24n4FpRHBp66z8ksEfJ0,747
70
68
  murf/types/locale_response.py,sha256=_-X19eFW9IW2jgPXjumkLhfge1BbE-VeQt56-JV9GKE,775
71
69
  murf/types/locale_response_supports_item.py,sha256=yxGwpkzpeIfpG1KzygTHGjU1nK3U_plweHpxrbUWyT4,169
@@ -95,7 +93,7 @@ murf/utils.py,sha256=VzRmn8e3fbDVYW7IlfGrcPwgu44PA2kBYRcZ7ZVNYUk,1259
95
93
  murf/version.py,sha256=pVGisqquGqFs8v4SJPE2o540FaaDKHWfOikWf4-9KKk,71
96
94
  murf/voice_changer/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
97
95
  murf/voice_changer/client.py,sha256=tcMbh2CdQ_2AR-X7WnlTEVEZyDgdO0p27hOFkINykIU,17858
98
- murf-2.0.2.dist-info/LICENSE,sha256=SxRdfCVAmnkiSsVHJHhXmRX0yqidcRlBMjy-R2GZFdM,1066
99
- murf-2.0.2.dist-info/METADATA,sha256=_16hOx8JwBO5LnghHsmevoNxvmeOwiyfTd3YrigR5rM,6848
100
- murf-2.0.2.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
101
- murf-2.0.2.dist-info/RECORD,,
96
+ murf-2.1.0.dist-info/LICENSE,sha256=SxRdfCVAmnkiSsVHJHhXmRX0yqidcRlBMjy-R2GZFdM,1066
97
+ murf-2.1.0.dist-info/METADATA,sha256=Z-Mn5NG3aQ4ASSXjBXlqTikCPjltdv-lHRhZBGo3Pug,6848
98
+ murf-2.1.0.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
99
+ murf-2.1.0.dist-info/RECORD,,
@@ -1,5 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- from .generate_speech_request_model_version import GenerateSpeechRequestModelVersion
4
-
5
- __all__ = ["GenerateSpeechRequestModelVersion"]
@@ -1,5 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import typing
4
-
5
- GenerateSpeechRequestModelVersion = typing.Union[typing.Literal["GEN1", "GEN2"], typing.Any]
File without changes
File without changes