murf 2.0.2__tar.gz → 2.1.0__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.
Potentially problematic release.
This version of murf might be problematic. Click here for more details.
- {murf-2.0.2 → murf-2.1.0}/PKG-INFO +1 -1
- {murf-2.0.2 → murf-2.1.0}/pyproject.toml +1 -1
- {murf-2.0.2 → murf-2.1.0}/src/murf/__init__.py +0 -2
- {murf-2.0.2 → murf-2.1.0}/src/murf/core/client_wrapper.py +1 -1
- {murf-2.0.2 → murf-2.1.0}/src/murf/text_to_speech/client.py +8 -19
- {murf-2.0.2 → murf-2.1.0}/src/murf/types/generate_speech_response.py +4 -4
- murf-2.1.0/src/murf/voice_changer/__init__.py +2 -0
- murf-2.0.2/src/murf/text_to_speech/__init__.py +0 -5
- murf-2.0.2/src/murf/text_to_speech/types/__init__.py +0 -5
- murf-2.0.2/src/murf/text_to_speech/types/generate_speech_request_model_version.py +0 -5
- {murf-2.0.2 → murf-2.1.0}/LICENSE +0 -0
- {murf-2.0.2 → murf-2.1.0}/README.md +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/auth/__init__.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/auth/client.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/base_client.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/client.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/core/__init__.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/core/api_error.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/core/datetime_utils.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/core/file.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/core/http_client.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/core/jsonable_encoder.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/core/pydantic_utilities.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/core/query_encoder.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/core/remove_none_from_dict.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/core/request_options.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/core/serialization.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/core/unchecked_base_model.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/dubbing/__init__.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/dubbing/client.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/dubbing/jobs/__init__.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/dubbing/jobs/client.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/dubbing/jobs/types/__init__.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/dubbing/jobs/types/jobs_create_request_priority.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/dubbing/jobs/types/jobs_create_with_project_id_request_priority.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/dubbing/languages/__init__.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/dubbing/languages/client.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/dubbing/projects/__init__.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/dubbing/projects/client.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/dubbing/projects/types/__init__.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/dubbing/projects/types/api_create_project_request_dubbing_type.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/dubbing_client.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/environment.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/errors/__init__.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/errors/bad_request_error.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/errors/forbidden_error.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/errors/internal_server_error.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/errors/payment_required_error.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/errors/service_unavailable_error.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/errors/unauthorized_error.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/py.typed +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/stream_input/__init__.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/stream_input/types/__init__.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/stream_input/types/receive_message.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/stream_input/types/send_message.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/text/__init__.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/text/client.py +0 -0
- {murf-2.0.2/src/murf/voice_changer → murf-2.1.0/src/murf/text_to_speech}/__init__.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/types/__init__.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/types/api_job_response.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/types/api_job_response_dubbing_type.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/types/api_job_response_priority.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/types/api_project_response.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/types/api_project_response_dubbing_type.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/types/api_voice.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/types/api_voice_gender.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/types/audio_output.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/types/auth_token_response.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/types/character_count.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/types/clear_context.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/types/dub_api_detail_response.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/types/dub_job_status_response.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/types/final_output.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/types/form_data_content_disposition.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/types/group_api_project_response.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/types/locale_response.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/types/locale_response_supports_item.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/types/metadata.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/types/murf_api_translation_response.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/types/pronunciation_detail.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/types/pronunciation_detail_type.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/types/send_text.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/types/send_text_voice_config.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/types/send_text_voice_config_pronunciation_dictionary_value.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/types/send_text_voice_config_pronunciation_dictionary_value_type.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/types/set_advanced_settings.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/types/set_voice_configuration_or_initialize_context.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/types/set_voice_configuration_or_initialize_context_voice_config.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/types/set_voice_configuration_or_initialize_context_voice_config_pronunciation_dictionary_value.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/types/set_voice_configuration_or_initialize_context_voice_config_pronunciation_dictionary_value_type.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/types/source_locale_response.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/types/speech_to_speech_response.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/types/style_details.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/types/translation.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/types/tts_request_both_payload.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/types/tts_request_both_payload_voice_config.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/types/tts_request_both_payload_voice_config_pronunciation_dictionary.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/types/tts_request_both_payload_voice_config_pronunciation_dictionary_guess.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/types/word_duration_response.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/utils.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/version.py +0 -0
- {murf-2.0.2 → murf-2.1.0}/src/murf/voice_changer/client.py +0 -0
|
@@ -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
|
|
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
|
|
@@ -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[
|
|
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[
|
|
77
|
-
Valid values:
|
|
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[
|
|
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[
|
|
532
|
-
Valid values:
|
|
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[
|
|
16
|
-
|
|
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
|
"""
|
|
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
|
{murf-2.0.2 → murf-2.1.0}/src/murf/dubbing/projects/types/api_create_project_request_dubbing_type.py
RENAMED
|
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
|
{murf-2.0.2 → murf-2.1.0}/src/murf/types/send_text_voice_config_pronunciation_dictionary_value.py
RENAMED
|
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
|