murf 1.2.2__tar.gz → 1.2.3__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-1.2.2 → murf-1.2.3}/PKG-INFO +1 -1
- {murf-1.2.2 → murf-1.2.3}/pyproject.toml +1 -1
- {murf-1.2.2 → murf-1.2.3}/src/murf/client.py +9 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/core/client_wrapper.py +1 -1
- {murf-1.2.2 → murf-1.2.3}/src/murf/dubbing_client.py +9 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/text_to_speech/client.py +4 -4
- {murf-1.2.2 → murf-1.2.3}/src/murf/voice_changer/client.py +2 -2
- {murf-1.2.2 → murf-1.2.3}/LICENSE +0 -0
- {murf-1.2.2 → murf-1.2.3}/README.md +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/__init__.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/auth/__init__.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/auth/client.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/base_client.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/core/__init__.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/core/api_error.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/core/datetime_utils.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/core/file.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/core/http_client.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/core/jsonable_encoder.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/core/pydantic_utilities.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/core/query_encoder.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/core/remove_none_from_dict.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/core/request_options.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/core/serialization.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/dubbing/__init__.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/dubbing/client.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/dubbing/jobs/__init__.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/dubbing/jobs/client.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/dubbing/jobs/types/__init__.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/dubbing/jobs/types/jobs_create_request_priority.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/dubbing/jobs/types/jobs_create_with_project_id_request_priority.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/dubbing/languages/__init__.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/dubbing/languages/client.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/dubbing/projects/__init__.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/dubbing/projects/client.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/dubbing/projects/types/__init__.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/dubbing/projects/types/api_create_project_request_dubbing_type.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/environment.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/errors/__init__.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/errors/bad_request_error.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/errors/forbidden_error.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/errors/internal_server_error.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/errors/payment_required_error.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/errors/service_unavailable_error.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/errors/unauthorized_error.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/py.typed +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/text/__init__.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/text/client.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/text_to_speech/__init__.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/text_to_speech/types/__init__.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/text_to_speech/types/generate_speech_request_model_version.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/types/__init__.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/types/api_job_response.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/types/api_job_response_dubbing_type.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/types/api_job_response_priority.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/types/api_project_response.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/types/api_project_response_dubbing_type.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/types/api_voice.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/types/api_voice_gender.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/types/auth_token_response.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/types/character_count.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/types/dub_api_detail_response.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/types/dub_job_status_response.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/types/form_data_content_disposition.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/types/generate_speech_response.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/types/group_api_project_response.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/types/locale_response.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/types/locale_response_supports_item.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/types/metadata.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/types/murf_api_translation_response.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/types/pronunciation_detail.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/types/pronunciation_detail_type.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/types/source_locale_response.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/types/speech_to_speech_response.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/types/style_details.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/types/translation.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/types/word_duration_response.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/utils.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/version.py +0 -0
- {murf-1.2.2 → murf-1.2.3}/src/murf/voice_changer/__init__.py +0 -0
|
@@ -3,6 +3,7 @@ from .environment import MurfEnvironment
|
|
|
3
3
|
import typing
|
|
4
4
|
import os
|
|
5
5
|
import httpx
|
|
6
|
+
from .version import __version__
|
|
6
7
|
|
|
7
8
|
class Murf(BaseClient):
|
|
8
9
|
"""
|
|
@@ -51,6 +52,10 @@ class Murf(BaseClient):
|
|
|
51
52
|
follow_redirects: typing.Optional[bool] = True,
|
|
52
53
|
httpx_client: typing.Optional[httpx.Client] = None,
|
|
53
54
|
):
|
|
55
|
+
default_params = {'origin': f'python_sdk_{__version__}'}
|
|
56
|
+
_defaulted_timeout = timeout if timeout is not None else 60 if httpx_client is None else None
|
|
57
|
+
httpx_client=httpx_client if httpx_client is not None else httpx.Client(params=default_params, timeout=_defaulted_timeout, follow_redirects=follow_redirects) if follow_redirects is not None else httpx.Client(params=default_params, timeout=_defaulted_timeout)
|
|
58
|
+
|
|
54
59
|
super().__init__(
|
|
55
60
|
base_url=base_url,
|
|
56
61
|
environment=environment,
|
|
@@ -109,6 +114,10 @@ class AsyncMurf(AsyncBaseClient):
|
|
|
109
114
|
follow_redirects: typing.Optional[bool] = True,
|
|
110
115
|
httpx_client: typing.Optional[httpx.AsyncClient] = None,
|
|
111
116
|
):
|
|
117
|
+
default_params = {'origin': f'python_sdk_{__version__}'}
|
|
118
|
+
_defaulted_timeout = timeout if timeout is not None else 60 if httpx_client is None else None
|
|
119
|
+
httpx_client=httpx_client if httpx_client is not None else httpx.AsyncClient(params=default_params, timeout=_defaulted_timeout, follow_redirects=follow_redirects) if follow_redirects is not None else httpx.AsyncClient(params=default_params, timeout=_defaulted_timeout)
|
|
120
|
+
|
|
112
121
|
super().__init__(
|
|
113
122
|
base_url=base_url,
|
|
114
123
|
environment=environment,
|
|
@@ -16,7 +16,7 @@ class BaseClientWrapper:
|
|
|
16
16
|
headers: typing.Dict[str, str] = {
|
|
17
17
|
"X-Fern-Language": "Python",
|
|
18
18
|
"X-Fern-SDK-Name": "murf",
|
|
19
|
-
"X-Fern-SDK-Version": "1.2.
|
|
19
|
+
"X-Fern-SDK-Version": "1.2.3",
|
|
20
20
|
}
|
|
21
21
|
if self._api_key is not None:
|
|
22
22
|
headers["api-key"] = self._api_key
|
|
@@ -3,6 +3,7 @@ from .environment import MurfEnvironment
|
|
|
3
3
|
import typing
|
|
4
4
|
import os
|
|
5
5
|
import httpx
|
|
6
|
+
from .version import __version__
|
|
6
7
|
|
|
7
8
|
class MurfDub(BaseClient):
|
|
8
9
|
"""
|
|
@@ -51,6 +52,10 @@ class MurfDub(BaseClient):
|
|
|
51
52
|
follow_redirects: typing.Optional[bool] = True,
|
|
52
53
|
httpx_client: typing.Optional[httpx.Client] = None,
|
|
53
54
|
):
|
|
55
|
+
default_params = {'origin': f'python_sdk_{__version__}'}
|
|
56
|
+
_defaulted_timeout = timeout if timeout is not None else 60 if httpx_client is None else None
|
|
57
|
+
httpx_client=httpx_client if httpx_client is not None else httpx.Client(params=default_params, timeout=_defaulted_timeout, follow_redirects=follow_redirects) if follow_redirects is not None else httpx.Client(params=default_params, timeout=_defaulted_timeout)
|
|
58
|
+
|
|
54
59
|
super().__init__(
|
|
55
60
|
base_url=base_url,
|
|
56
61
|
environment=environment,
|
|
@@ -109,6 +114,10 @@ class AsyncMurfDub(AsyncBaseClient):
|
|
|
109
114
|
follow_redirects: typing.Optional[bool] = True,
|
|
110
115
|
httpx_client: typing.Optional[httpx.AsyncClient] = None,
|
|
111
116
|
):
|
|
117
|
+
default_params = {'origin': f'python_sdk_{__version__}'}
|
|
118
|
+
_defaulted_timeout = timeout if timeout is not None else 60 if httpx_client is None else None
|
|
119
|
+
httpx_client=httpx_client if httpx_client is not None else httpx.AsyncClient(params=default_params, timeout=_defaulted_timeout, follow_redirects=follow_redirects) if follow_redirects is not None else httpx.AsyncClient(params=default_params, timeout=_defaulted_timeout)
|
|
120
|
+
|
|
112
121
|
super().__init__(
|
|
113
122
|
base_url=base_url,
|
|
114
123
|
environment=environment,
|
|
@@ -54,7 +54,7 @@ class TextToSpeechClient:
|
|
|
54
54
|
The text that is to be synthesised. e.g. 'Hello there [pause 1s] friend'
|
|
55
55
|
|
|
56
56
|
voice_id : str
|
|
57
|
-
Use the GET /v1/speech/voices
|
|
57
|
+
Use the GET /v1/speech/voices API to find supported voiceIds. You can use either the voiceId (e.g. en-US-natalie) or just the voice actor's name (e.g. natalie).
|
|
58
58
|
|
|
59
59
|
audio_duration : typing.Optional[float]
|
|
60
60
|
This parameter allows specifying the duration (in seconds) for the generated audio. If the value is 0, this parameter will be ignored. Only available for Gen2 model.
|
|
@@ -234,7 +234,7 @@ class TextToSpeechClient:
|
|
|
234
234
|
The text that is to be synthesised. e.g. 'Hello there [pause 1s] friend'
|
|
235
235
|
|
|
236
236
|
voice_id : str
|
|
237
|
-
Use the GET /v1/speech/voices
|
|
237
|
+
Use the GET /v1/speech/voices API to find supported voiceIds. You can use either the voiceId (e.g. en-US-natalie) or just the voice actor's name (e.g. natalie).
|
|
238
238
|
|
|
239
239
|
channel_type : typing.Optional[str]
|
|
240
240
|
Valid values: STEREO, MONO
|
|
@@ -483,7 +483,7 @@ class AsyncTextToSpeechClient:
|
|
|
483
483
|
The text that is to be synthesised. e.g. 'Hello there [pause 1s] friend'
|
|
484
484
|
|
|
485
485
|
voice_id : str
|
|
486
|
-
Use the GET /v1/speech/voices
|
|
486
|
+
Use the GET /v1/speech/voices API to find supported voiceIds. You can use either the voiceId (e.g. en-US-natalie) or just the voice actor's name (e.g. natalie).
|
|
487
487
|
|
|
488
488
|
audio_duration : typing.Optional[float]
|
|
489
489
|
This parameter allows specifying the duration (in seconds) for the generated audio. If the value is 0, this parameter will be ignored. Only available for Gen2 model.
|
|
@@ -671,7 +671,7 @@ class AsyncTextToSpeechClient:
|
|
|
671
671
|
The text that is to be synthesised. e.g. 'Hello there [pause 1s] friend'
|
|
672
672
|
|
|
673
673
|
voice_id : str
|
|
674
|
-
Use the GET /v1/speech/voices
|
|
674
|
+
Use the GET /v1/speech/voices API to find supported voiceIds. You can use either the voiceId (e.g. en-US-natalie) or just the voice actor's name (e.g. natalie).
|
|
675
675
|
|
|
676
676
|
channel_type : typing.Optional[str]
|
|
677
677
|
Valid values: STEREO, MONO
|
|
@@ -109,7 +109,7 @@ class VoiceChangerClient:
|
|
|
109
109
|
Higher values will add more variation in terms of Pause, Pitch, and Speed to the voice. Only available for Gen2 model.
|
|
110
110
|
|
|
111
111
|
voice_id : typing.Optional[str]
|
|
112
|
-
Use the GET /v1/speech/voices
|
|
112
|
+
Use the GET /v1/speech/voices API to find supported voiceIds. You can use either the voiceId (e.g. en-US-natalie) or just the voice actor's name (e.g. natalie).
|
|
113
113
|
|
|
114
114
|
request_options : typing.Optional[RequestOptions]
|
|
115
115
|
Request-specific configuration.
|
|
@@ -311,7 +311,7 @@ class AsyncVoiceChangerClient:
|
|
|
311
311
|
Higher values will add more variation in terms of Pause, Pitch, and Speed to the voice. Only available for Gen2 model.
|
|
312
312
|
|
|
313
313
|
voice_id : typing.Optional[str]
|
|
314
|
-
Use the GET /v1/speech/voices
|
|
314
|
+
Use the GET /v1/speech/voices API to find supported voiceIds. You can use either the voiceId (e.g. en-US-natalie) or just the voice actor's name (e.g. natalie).
|
|
315
315
|
|
|
316
316
|
request_options : typing.Optional[RequestOptions]
|
|
317
317
|
Request-specific configuration.
|
|
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-1.2.2 → murf-1.2.3}/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
|
{murf-1.2.2 → murf-1.2.3}/src/murf/text_to_speech/types/generate_speech_request_model_version.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
|