speechify-api 1.2.0__tar.gz → 1.2.1__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.
- {speechify_api-1.2.0 → speechify_api-1.2.1}/PKG-INFO +1 -1
- {speechify_api-1.2.0 → speechify_api-1.2.1}/pyproject.toml +1 -1
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/core/client_wrapper.py +1 -1
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/tts/auth/client.py +2 -2
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/tts/types/created_voice.py +6 -6
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/tts/types/get_speech_response.py +5 -5
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/tts/types/get_voice.py +6 -6
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/tts/types/get_voice_language.py +1 -1
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/tts/types/get_voices_model.py +2 -2
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/tts/types/speech_marks.py +6 -6
- {speechify_api-1.2.0 → speechify_api-1.2.1}/README.md +0 -0
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/__init__.py +0 -0
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/api/__init__.py +0 -0
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/api/types/__init__.py +0 -0
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/api/types/audio_stream_request_accept.py +0 -0
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/client.py +0 -0
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/core/__init__.py +0 -0
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/core/api_error.py +0 -0
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/core/datetime_utils.py +0 -0
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/core/file.py +0 -0
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/core/http_client.py +0 -0
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/core/jsonable_encoder.py +0 -0
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/core/pydantic_utilities.py +0 -0
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/core/query_encoder.py +0 -0
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/core/remove_none_from_dict.py +0 -0
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/core/request_options.py +0 -0
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/core/serialization.py +0 -0
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/environment.py +0 -0
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/py.typed +0 -0
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/tts/__init__.py +0 -0
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/tts/audio/__init__.py +0 -0
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/tts/audio/client.py +0 -0
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/tts/audio/types/__init__.py +0 -0
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/tts/audio/types/audio_stream_request_accept.py +0 -0
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/tts/audio/types/get_speech_request_audio_format.py +0 -0
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/tts/audio/types/get_speech_request_model.py +0 -0
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/tts/audio/types/get_stream_request_model.py +0 -0
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/tts/auth/__init__.py +0 -0
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/tts/auth/types/__init__.py +0 -0
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/tts/auth/types/create_access_token_request_scope.py +0 -0
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/tts/client.py +0 -0
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/tts/errors/__init__.py +0 -0
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/tts/errors/bad_request_error.py +0 -0
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/tts/errors/forbidden_error.py +0 -0
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/tts/errors/internal_server_error.py +0 -0
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/tts/errors/not_found_error.py +0 -0
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/tts/errors/payment_required_error.py +0 -0
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/tts/errors/unauthorized_error.py +0 -0
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/tts/types/__init__.py +0 -0
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/tts/types/access_token.py +0 -0
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/tts/types/access_token_scope.py +0 -0
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/tts/types/api_key.py +0 -0
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/tts/types/create_voice_language.py +0 -0
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/tts/types/create_voice_model.py +0 -0
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/tts/types/create_voice_model_name.py +0 -0
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/tts/types/created_voice_gender.py +0 -0
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/tts/types/created_voice_type.py +0 -0
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/tts/types/experimental_stream_request.py +0 -0
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/tts/types/experimental_stream_request_model.py +0 -0
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/tts/types/experimental_stream_response.py +0 -0
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/tts/types/get_speech_options_request.py +0 -0
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/tts/types/get_speech_response_audio_format.py +0 -0
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/tts/types/get_stream_options_request.py +0 -0
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/tts/types/get_voice_gender.py +0 -0
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/tts/types/get_voice_type.py +0 -0
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/tts/types/get_voices_model_name.py +0 -0
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/tts/types/nested_chunk.py +0 -0
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/tts/types/o_auth_error.py +0 -0
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/tts/types/o_auth_error_error.py +0 -0
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/tts/voices/__init__.py +0 -0
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/tts/voices/client.py +0 -0
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/tts/voices/types/__init__.py +0 -0
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/tts/voices/types/voices_create_request_gender.py +0 -0
- {speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/version.py +0 -0
|
@@ -22,7 +22,7 @@ class BaseClientWrapper:
|
|
|
22
22
|
headers: typing.Dict[str, str] = {
|
|
23
23
|
"X-Fern-Language": "Python",
|
|
24
24
|
"X-Fern-SDK-Name": "speechify-api",
|
|
25
|
-
"X-Fern-SDK-Version": "1.2.
|
|
25
|
+
"X-Fern-SDK-Version": "1.2.1",
|
|
26
26
|
}
|
|
27
27
|
headers["Authorization"] = f"Bearer {self._get_token()}"
|
|
28
28
|
return headers
|
|
@@ -26,7 +26,7 @@ class AuthClient:
|
|
|
26
26
|
request_options: typing.Optional[RequestOptions] = None,
|
|
27
27
|
) -> AccessToken:
|
|
28
28
|
"""
|
|
29
|
-
Create a new API token for the logged in user
|
|
29
|
+
WARNING: This endpoint is deprecated. Create a new API token for the logged in user.
|
|
30
30
|
|
|
31
31
|
Parameters
|
|
32
32
|
----------
|
|
@@ -100,7 +100,7 @@ class AsyncAuthClient:
|
|
|
100
100
|
request_options: typing.Optional[RequestOptions] = None,
|
|
101
101
|
) -> AccessToken:
|
|
102
102
|
"""
|
|
103
|
-
Create a new API token for the logged in user
|
|
103
|
+
WARNING: This endpoint is deprecated. Create a new API token for the logged in user.
|
|
104
104
|
|
|
105
105
|
Parameters
|
|
106
106
|
----------
|
|
@@ -11,12 +11,12 @@ import pydantic
|
|
|
11
11
|
|
|
12
12
|
class CreatedVoice(UniversalBaseModel):
|
|
13
13
|
avatar_image: typing.Optional[str] = None
|
|
14
|
-
display_name:
|
|
15
|
-
gender:
|
|
16
|
-
locale:
|
|
17
|
-
id:
|
|
18
|
-
models: typing.
|
|
19
|
-
type:
|
|
14
|
+
display_name: str
|
|
15
|
+
gender: CreatedVoiceGender
|
|
16
|
+
locale: str
|
|
17
|
+
id: str
|
|
18
|
+
models: typing.List[CreateVoiceModel]
|
|
19
|
+
type: CreatedVoiceType
|
|
20
20
|
|
|
21
21
|
if IS_PYDANTIC_V2:
|
|
22
22
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
3
|
from ...core.pydantic_utilities import UniversalBaseModel
|
|
4
|
-
import typing
|
|
5
4
|
import pydantic
|
|
6
5
|
from .get_speech_response_audio_format import GetSpeechResponseAudioFormat
|
|
7
6
|
from .speech_marks import SpeechMarks
|
|
8
7
|
from ...core.pydantic_utilities import IS_PYDANTIC_V2
|
|
8
|
+
import typing
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class GetSpeechResponse(UniversalBaseModel):
|
|
12
|
-
audio_data:
|
|
12
|
+
audio_data: str = pydantic.Field()
|
|
13
13
|
"""
|
|
14
14
|
Synthesized speech audio, Base64-encoded
|
|
15
15
|
"""
|
|
16
16
|
|
|
17
|
-
audio_format:
|
|
17
|
+
audio_format: GetSpeechResponseAudioFormat = pydantic.Field()
|
|
18
18
|
"""
|
|
19
19
|
The format of the audio data
|
|
20
20
|
"""
|
|
21
21
|
|
|
22
|
-
billable_characters_count:
|
|
22
|
+
billable_characters_count: int = pydantic.Field()
|
|
23
23
|
"""
|
|
24
24
|
The number of billable characters processed in the request.
|
|
25
25
|
"""
|
|
26
26
|
|
|
27
|
-
speech_marks:
|
|
27
|
+
speech_marks: SpeechMarks
|
|
28
28
|
|
|
29
29
|
if IS_PYDANTIC_V2:
|
|
30
30
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
@@ -11,14 +11,14 @@ import pydantic
|
|
|
11
11
|
|
|
12
12
|
class GetVoice(UniversalBaseModel):
|
|
13
13
|
avatar_image: typing.Optional[str] = None
|
|
14
|
-
display_name:
|
|
15
|
-
gender:
|
|
16
|
-
locale:
|
|
17
|
-
id:
|
|
18
|
-
models: typing.
|
|
14
|
+
display_name: str
|
|
15
|
+
gender: GetVoiceGender
|
|
16
|
+
locale: str
|
|
17
|
+
id: str
|
|
18
|
+
models: typing.List[GetVoicesModel]
|
|
19
19
|
preview_audio: typing.Optional[str] = None
|
|
20
20
|
tags: typing.Optional[typing.List[str]] = None
|
|
21
|
-
type:
|
|
21
|
+
type: GetVoiceType
|
|
22
22
|
|
|
23
23
|
if IS_PYDANTIC_V2:
|
|
24
24
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
@@ -9,8 +9,8 @@ import pydantic
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class GetVoicesModel(UniversalBaseModel):
|
|
12
|
-
languages: typing.
|
|
13
|
-
name:
|
|
12
|
+
languages: typing.List[GetVoiceLanguage]
|
|
13
|
+
name: GetVoicesModelName
|
|
14
14
|
|
|
15
15
|
if IS_PYDANTIC_V2:
|
|
16
16
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
@@ -12,16 +12,16 @@ class SpeechMarks(UniversalBaseModel):
|
|
|
12
12
|
It is used to annotate the audio data with metadata about the synthesis process, like word timing or phoneme details.
|
|
13
13
|
"""
|
|
14
14
|
|
|
15
|
-
chunks: typing.
|
|
15
|
+
chunks: typing.List[NestedChunk] = pydantic.Field()
|
|
16
16
|
"""
|
|
17
17
|
Array of NestedChunk, each providing detailed segment information within the synthesized speech.
|
|
18
18
|
"""
|
|
19
19
|
|
|
20
|
-
end:
|
|
21
|
-
end_time:
|
|
22
|
-
start:
|
|
23
|
-
start_time:
|
|
24
|
-
type:
|
|
20
|
+
end: int
|
|
21
|
+
end_time: float
|
|
22
|
+
start: int
|
|
23
|
+
start_time: float
|
|
24
|
+
type: str
|
|
25
25
|
value: typing.Optional[str] = None
|
|
26
26
|
|
|
27
27
|
if IS_PYDANTIC_V2:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/api/types/audio_stream_request_accept.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
|
{speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/tts/errors/internal_server_error.py
RENAMED
|
File without changes
|
|
File without changes
|
{speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/tts/errors/payment_required_error.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/tts/types/create_voice_language.py
RENAMED
|
File without changes
|
|
File without changes
|
{speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/tts/types/create_voice_model_name.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/tts/types/experimental_stream_request.py
RENAMED
|
File without changes
|
|
File without changes
|
{speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/tts/types/experimental_stream_response.py
RENAMED
|
File without changes
|
{speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/tts/types/get_speech_options_request.py
RENAMED
|
File without changes
|
|
File without changes
|
{speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/tts/types/get_stream_options_request.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{speechify_api-1.2.0 → speechify_api-1.2.1}/src/speechify/tts/types/get_voices_model_name.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
|