murf 2.0.1__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.1",
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
@@ -35,7 +34,7 @@ class TextToSpeechClient:
35
34
  channel_type: typing.Optional[str] = OMIT,
36
35
  encode_as_base_64: typing.Optional[bool] = OMIT,
37
36
  format: typing.Optional[str] = OMIT,
38
- model_version: typing.Optional[GenerateSpeechRequestModelVersion] = OMIT,
37
+ model_version: typing.Optional[typing.Literal["GEN2"]] = OMIT,
39
38
  multi_native_locale: typing.Optional[str] = OMIT,
40
39
  pitch: typing.Optional[int] = OMIT,
41
40
  pronunciation_dictionary: typing.Optional[typing.Dict[str, PronunciationDetail]] = OMIT,
@@ -64,13 +63,13 @@ class TextToSpeechClient:
64
63
  Valid values: STEREO, MONO
65
64
 
66
65
  encode_as_base_64 : typing.Optional[bool]
67
- Set to true to receive audio in response as a Base64 encoded string instead of a url.
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.
68
67
 
69
68
  format : typing.Optional[str]
70
69
  Format of the generated audio file. Valid values: MP3, WAV, FLAC, ALAW, ULAW, PCM, OGG
71
70
 
72
- model_version : typing.Optional[GenerateSpeechRequestModelVersion]
73
- 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.
74
73
 
75
74
  multi_native_locale : typing.Optional[str]
76
75
  Specifies the language for the generated audio, enabling a voice to speak in multiple languages natively. Only available in the Gen2 model.
@@ -485,7 +484,7 @@ class AsyncTextToSpeechClient:
485
484
  channel_type: typing.Optional[str] = OMIT,
486
485
  encode_as_base_64: typing.Optional[bool] = OMIT,
487
486
  format: typing.Optional[str] = OMIT,
488
- model_version: typing.Optional[GenerateSpeechRequestModelVersion] = OMIT,
487
+ model_version: typing.Optional[typing.Literal["GEN2"]] = OMIT,
489
488
  multi_native_locale: typing.Optional[str] = OMIT,
490
489
  pitch: typing.Optional[int] = OMIT,
491
490
  pronunciation_dictionary: typing.Optional[typing.Dict[str, PronunciationDetail]] = OMIT,
@@ -514,13 +513,13 @@ class AsyncTextToSpeechClient:
514
513
  Valid values: STEREO, MONO
515
514
 
516
515
  encode_as_base_64 : typing.Optional[bool]
517
- Set to true to receive audio in response as a Base64 encoded string instead of a url.
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.
518
517
 
519
518
  format : typing.Optional[str]
520
519
  Format of the generated audio file. Valid values: MP3, WAV, FLAC, ALAW, ULAW, PCM, OGG
521
520
 
522
- model_version : typing.Optional[GenerateSpeechRequestModelVersion]
523
- 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.
524
523
 
525
524
  multi_native_locale : typing.Optional[str]
526
525
  Specifies the language for the generated audio, enabling a voice to speak in multiple languages natively. Only available in the Gen2 model.
@@ -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.1
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=Sy1KYNA-oofvoDL4VX4NcCtUAlEk2wLHjQ83O_3VUls,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=TwjLwlbMnLTC5Ip8ENerzltrDcUon9ez3AM8K0DAjwo,37951
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.1.dist-info/LICENSE,sha256=SxRdfCVAmnkiSsVHJHhXmRX0yqidcRlBMjy-R2GZFdM,1066
99
- murf-2.0.1.dist-info/METADATA,sha256=-TVbXIZvxZFs0c03c05DjjeoZeYpmmlos045oBJkbYA,6848
100
- murf-2.0.1.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
101
- murf-2.0.1.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