speechify-api 3.0.1__tar.gz → 4.0.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.
- {speechify_api-3.0.1 → speechify_api-4.0.0}/PKG-INFO +31 -9
- {speechify_api-3.0.1 → speechify_api-4.0.0}/README.md +29 -7
- {speechify_api-3.0.1 → speechify_api-4.0.0}/pyproject.toml +3 -3
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/__init__.py +49 -4
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/audio/__init__.py +8 -3
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/audio/client.py +248 -13
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/audio/raw_client.py +514 -6
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/audio/types/__init__.py +8 -3
- speechify_api-4.0.0/src/speechify/audio/types/stream_with_timestamps_audio_request_accept.py +7 -0
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/client.py +23 -4
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/core/client_wrapper.py +2 -2
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/errors/__init__.py +3 -0
- speechify_api-4.0.0/src/speechify/errors/content_too_large_error.py +11 -0
- speechify_api-4.0.0/src/speechify/models/__init__.py +4 -0
- speechify_api-4.0.0/src/speechify/models/client.py +118 -0
- speechify_api-4.0.0/src/speechify/models/raw_client.py +233 -0
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/types/__init__.py +38 -0
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/types/audio_output_format.py +2 -0
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/types/audio_stream_output_format.py +2 -0
- speechify_api-4.0.0/src/speechify/types/consent_challenge.py +40 -0
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/types/error.py +2 -2
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/types/error_code.py +18 -0
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/types/error_detail.py +8 -0
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/types/get_speech_response.py +1 -1
- speechify_api-4.0.0/src/speechify/types/get_stream_request.py +53 -0
- speechify_api-4.0.0/src/speechify/types/model.py +94 -0
- speechify_api-4.0.0/src/speechify/types/models_response.py +37 -0
- speechify_api-4.0.0/src/speechify/types/speech_chunk_event.py +41 -0
- speechify_api-4.0.0/src/speechify/types/speech_done_event.py +32 -0
- speechify_api-4.0.0/src/speechify/types/speech_error_event.py +31 -0
- speechify_api-4.0.0/src/speechify/types/speech_stream_event.py +80 -0
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/voices/__init__.py +9 -3
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/voices/client.py +162 -42
- speechify_api-4.0.0/src/speechify/voices/consent_challenges/__init__.py +4 -0
- speechify_api-4.0.0/src/speechify/voices/consent_challenges/client.py +181 -0
- speechify_api-4.0.0/src/speechify/voices/consent_challenges/raw_client.py +392 -0
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/voices/raw_client.py +147 -28
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/voices/types/__init__.py +8 -2
- speechify_api-4.0.0/src/speechify/voices/types/list_voices_request_gender.py +5 -0
- speechify_api-4.0.0/src/speechify/voices/types/list_voices_request_type.py +5 -0
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/_default_clients.py +0 -0
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/audio/types/get_speech_request_audio_format.py +0 -0
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/audio/types/get_speech_request_model.py +0 -0
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/audio/types/stream_audio_request_accept.py +0 -0
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/core/__init__.py +0 -0
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/core/api_error.py +0 -0
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/core/datetime_utils.py +0 -0
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/core/file.py +0 -0
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/core/force_multipart.py +0 -0
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/core/http_client.py +0 -0
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/core/http_response.py +0 -0
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/core/http_sse/__init__.py +0 -0
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/core/http_sse/_api.py +0 -0
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/core/http_sse/_decoders.py +0 -0
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/core/http_sse/_exceptions.py +0 -0
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/core/http_sse/_models.py +0 -0
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/core/jsonable_encoder.py +0 -0
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/core/logging.py +0 -0
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/core/pagination.py +0 -0
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/core/parse_error.py +0 -0
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/core/pydantic_utilities.py +0 -0
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/core/query_encoder.py +0 -0
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/core/remove_none_from_dict.py +0 -0
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/core/request_options.py +0 -0
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/core/serialization.py +0 -0
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/environment.py +0 -0
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/errors/bad_gateway_error.py +0 -0
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/errors/bad_request_error.py +0 -0
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/errors/conflict_error.py +0 -0
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/errors/forbidden_error.py +0 -0
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/errors/internal_server_error.py +0 -0
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/errors/not_found_error.py +0 -0
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/errors/payment_required_error.py +0 -0
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/errors/service_unavailable_error.py +0 -0
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/errors/too_many_requests_error.py +0 -0
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/errors/unauthorized_error.py +0 -0
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/errors/unprocessable_entity_error.py +0 -0
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/py.typed +0 -0
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/types/get_speech_options_request.py +0 -0
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/types/get_speech_response_audio_format.py +0 -0
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/types/get_stream_options_request.py +0 -0
- {speechify_api-3.0.1/src/speechify/audio → speechify_api-4.0.0/src/speechify}/types/get_stream_request_model.py +0 -0
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/types/get_voice.py +0 -0
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/types/get_voice_gender.py +0 -0
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/types/get_voice_language.py +0 -0
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/types/get_voice_type.py +0 -0
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/types/get_voices_model.py +0 -0
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/types/get_voices_model_name.py +0 -0
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/types/list_voices_response.py +0 -0
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/types/nested_chunk.py +0 -0
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/types/pagination_meta.py +0 -0
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/types/speech_marks.py +0 -0
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/version.py +0 -0
- {speechify_api-3.0.1 → speechify_api-4.0.0}/src/speechify/voices/types/create_voices_request_gender.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: speechify-api
|
|
3
|
-
Version:
|
|
3
|
+
Version: 4.0.0
|
|
4
4
|
Summary: Official Speechify API SDK
|
|
5
5
|
Keywords: speechify,ai,api,sdk,text-to-speech,tts
|
|
6
6
|
Author: Speechify
|
|
@@ -31,12 +31,12 @@ Requires-Dist: pydantic-core (>=2.18.2,<3.0.0)
|
|
|
31
31
|
Requires-Dist: typing_extensions (>=4.0.0)
|
|
32
32
|
Project-URL: Documentation, https://docs.speechify.ai/api-reference
|
|
33
33
|
Project-URL: Homepage, https://docs.speechify.ai
|
|
34
|
-
Project-URL: Repository, https://github.com/
|
|
34
|
+
Project-URL: Repository, https://github.com/Speechify-AI/sdk-python
|
|
35
35
|
Description-Content-Type: text/markdown
|
|
36
36
|
|
|
37
37
|
# Speechify Python Library
|
|
38
38
|
|
|
39
|
-
[](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%
|
|
39
|
+
[](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2FSpeechify-AI%2Fsdk-python)
|
|
40
40
|
[](https://pypi.python.org/pypi/speechify-api)
|
|
41
41
|
|
|
42
42
|
The Speechify Python library provides convenient access to the Speechify APIs from Python.
|
|
@@ -50,6 +50,7 @@ The Speechify Python library provides convenient access to the Speechify APIs fr
|
|
|
50
50
|
- [Environments](#environments)
|
|
51
51
|
- [Async Client](#async-client)
|
|
52
52
|
- [Exception Handling](#exception-handling)
|
|
53
|
+
- [Streaming](#streaming)
|
|
53
54
|
- [Pagination](#pagination)
|
|
54
55
|
- [Advanced](#advanced)
|
|
55
56
|
- [Access Raw Response Data](#access-raw-response-data)
|
|
@@ -70,7 +71,7 @@ pip install speechify-api
|
|
|
70
71
|
|
|
71
72
|
## Reference
|
|
72
73
|
|
|
73
|
-
A full reference for this library is available [here](https://github.com/
|
|
74
|
+
A full reference for this library is available [here](https://github.com/Speechify-AI/sdk-python/blob/HEAD/./reference.md).
|
|
74
75
|
|
|
75
76
|
## Usage
|
|
76
77
|
|
|
@@ -86,8 +87,8 @@ client = Speechify(
|
|
|
86
87
|
client.audio.speech(
|
|
87
88
|
audio_format="mp3",
|
|
88
89
|
input="Hello! This is the Speechify text-to-speech API.",
|
|
89
|
-
model="simba-
|
|
90
|
-
voice_id="
|
|
90
|
+
model="simba-3.2",
|
|
91
|
+
voice_id="geffen_32",
|
|
91
92
|
)
|
|
92
93
|
```
|
|
93
94
|
|
|
@@ -122,8 +123,8 @@ async def main() -> None:
|
|
|
122
123
|
await client.audio.speech(
|
|
123
124
|
audio_format="mp3",
|
|
124
125
|
input="Hello! This is the Speechify text-to-speech API.",
|
|
125
|
-
model="simba-
|
|
126
|
-
voice_id="
|
|
126
|
+
model="simba-3.2",
|
|
127
|
+
voice_id="geffen_32",
|
|
127
128
|
)
|
|
128
129
|
|
|
129
130
|
|
|
@@ -145,6 +146,24 @@ except ApiError as e:
|
|
|
145
146
|
print(e.body)
|
|
146
147
|
```
|
|
147
148
|
|
|
149
|
+
## Streaming
|
|
150
|
+
|
|
151
|
+
The SDK supports streaming responses, as well, the response will be a generator that you can loop over.
|
|
152
|
+
|
|
153
|
+
```python
|
|
154
|
+
from speechify import Speechify
|
|
155
|
+
|
|
156
|
+
client = Speechify(
|
|
157
|
+
token="<token>",
|
|
158
|
+
)
|
|
159
|
+
|
|
160
|
+
client.audio.stream_with_timestamps(
|
|
161
|
+
input="Streaming long-form audio with the Speechify API.",
|
|
162
|
+
model="simba-3.2",
|
|
163
|
+
voice_id="geffen_32",
|
|
164
|
+
)
|
|
165
|
+
```
|
|
166
|
+
|
|
148
167
|
## Pagination
|
|
149
168
|
|
|
150
169
|
Paginated requests will return a `SyncPager` or `AsyncPager`, which can be used as generators for the underlying object.
|
|
@@ -156,7 +175,10 @@ client = Speechify(
|
|
|
156
175
|
token="<token>",
|
|
157
176
|
)
|
|
158
177
|
|
|
159
|
-
client.voices.list(
|
|
178
|
+
client.voices.list(
|
|
179
|
+
locale="en",
|
|
180
|
+
model="simba-3.2",
|
|
181
|
+
)
|
|
160
182
|
```
|
|
161
183
|
|
|
162
184
|
```python
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Speechify Python Library
|
|
2
2
|
|
|
3
|
-
[](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%
|
|
3
|
+
[](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2FSpeechify-AI%2Fsdk-python)
|
|
4
4
|
[](https://pypi.python.org/pypi/speechify-api)
|
|
5
5
|
|
|
6
6
|
The Speechify Python library provides convenient access to the Speechify APIs from Python.
|
|
@@ -14,6 +14,7 @@ The Speechify Python library provides convenient access to the Speechify APIs fr
|
|
|
14
14
|
- [Environments](#environments)
|
|
15
15
|
- [Async Client](#async-client)
|
|
16
16
|
- [Exception Handling](#exception-handling)
|
|
17
|
+
- [Streaming](#streaming)
|
|
17
18
|
- [Pagination](#pagination)
|
|
18
19
|
- [Advanced](#advanced)
|
|
19
20
|
- [Access Raw Response Data](#access-raw-response-data)
|
|
@@ -34,7 +35,7 @@ pip install speechify-api
|
|
|
34
35
|
|
|
35
36
|
## Reference
|
|
36
37
|
|
|
37
|
-
A full reference for this library is available [here](https://github.com/
|
|
38
|
+
A full reference for this library is available [here](https://github.com/Speechify-AI/sdk-python/blob/HEAD/./reference.md).
|
|
38
39
|
|
|
39
40
|
## Usage
|
|
40
41
|
|
|
@@ -50,8 +51,8 @@ client = Speechify(
|
|
|
50
51
|
client.audio.speech(
|
|
51
52
|
audio_format="mp3",
|
|
52
53
|
input="Hello! This is the Speechify text-to-speech API.",
|
|
53
|
-
model="simba-
|
|
54
|
-
voice_id="
|
|
54
|
+
model="simba-3.2",
|
|
55
|
+
voice_id="geffen_32",
|
|
55
56
|
)
|
|
56
57
|
```
|
|
57
58
|
|
|
@@ -86,8 +87,8 @@ async def main() -> None:
|
|
|
86
87
|
await client.audio.speech(
|
|
87
88
|
audio_format="mp3",
|
|
88
89
|
input="Hello! This is the Speechify text-to-speech API.",
|
|
89
|
-
model="simba-
|
|
90
|
-
voice_id="
|
|
90
|
+
model="simba-3.2",
|
|
91
|
+
voice_id="geffen_32",
|
|
91
92
|
)
|
|
92
93
|
|
|
93
94
|
|
|
@@ -109,6 +110,24 @@ except ApiError as e:
|
|
|
109
110
|
print(e.body)
|
|
110
111
|
```
|
|
111
112
|
|
|
113
|
+
## Streaming
|
|
114
|
+
|
|
115
|
+
The SDK supports streaming responses, as well, the response will be a generator that you can loop over.
|
|
116
|
+
|
|
117
|
+
```python
|
|
118
|
+
from speechify import Speechify
|
|
119
|
+
|
|
120
|
+
client = Speechify(
|
|
121
|
+
token="<token>",
|
|
122
|
+
)
|
|
123
|
+
|
|
124
|
+
client.audio.stream_with_timestamps(
|
|
125
|
+
input="Streaming long-form audio with the Speechify API.",
|
|
126
|
+
model="simba-3.2",
|
|
127
|
+
voice_id="geffen_32",
|
|
128
|
+
)
|
|
129
|
+
```
|
|
130
|
+
|
|
112
131
|
## Pagination
|
|
113
132
|
|
|
114
133
|
Paginated requests will return a `SyncPager` or `AsyncPager`, which can be used as generators for the underlying object.
|
|
@@ -120,7 +139,10 @@ client = Speechify(
|
|
|
120
139
|
token="<token>",
|
|
121
140
|
)
|
|
122
141
|
|
|
123
|
-
client.voices.list(
|
|
142
|
+
client.voices.list(
|
|
143
|
+
locale="en",
|
|
144
|
+
model="simba-3.2",
|
|
145
|
+
)
|
|
124
146
|
```
|
|
125
147
|
|
|
126
148
|
```python
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "speechify-api"
|
|
3
|
-
|
|
3
|
+
dynamic = ["version"]
|
|
4
4
|
|
|
5
5
|
[tool.poetry]
|
|
6
6
|
name = "speechify-api"
|
|
7
|
-
version = "
|
|
7
|
+
version = "4.0.0"
|
|
8
8
|
description = "Official Speechify API SDK"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
authors = [
|
|
@@ -44,7 +44,7 @@ packages = [
|
|
|
44
44
|
[tool.poetry.urls]
|
|
45
45
|
Documentation = 'https://docs.speechify.ai/api-reference'
|
|
46
46
|
Homepage = 'https://docs.speechify.ai'
|
|
47
|
-
Repository = 'https://github.com/
|
|
47
|
+
Repository = 'https://github.com/Speechify-AI/sdk-python'
|
|
48
48
|
|
|
49
49
|
[tool.poetry.dependencies]
|
|
50
50
|
python = "^3.10"
|
|
@@ -9,6 +9,7 @@ if typing.TYPE_CHECKING:
|
|
|
9
9
|
from .types import (
|
|
10
10
|
AudioOutputFormat,
|
|
11
11
|
AudioStreamOutputFormat,
|
|
12
|
+
ConsentChallenge,
|
|
12
13
|
Error,
|
|
13
14
|
ErrorCode,
|
|
14
15
|
ErrorDetail,
|
|
@@ -16,6 +17,8 @@ if typing.TYPE_CHECKING:
|
|
|
16
17
|
GetSpeechResponse,
|
|
17
18
|
GetSpeechResponseAudioFormat,
|
|
18
19
|
GetStreamOptionsRequest,
|
|
20
|
+
GetStreamRequest,
|
|
21
|
+
GetStreamRequestModel,
|
|
19
22
|
GetVoice,
|
|
20
23
|
GetVoiceGender,
|
|
21
24
|
GetVoiceLanguage,
|
|
@@ -23,14 +26,24 @@ if typing.TYPE_CHECKING:
|
|
|
23
26
|
GetVoicesModel,
|
|
24
27
|
GetVoicesModelName,
|
|
25
28
|
ListVoicesResponse,
|
|
29
|
+
Model,
|
|
30
|
+
ModelsResponse,
|
|
26
31
|
NestedChunk,
|
|
27
32
|
PaginationMeta,
|
|
33
|
+
SpeechChunkEvent,
|
|
34
|
+
SpeechDoneEvent,
|
|
35
|
+
SpeechErrorEvent,
|
|
28
36
|
SpeechMarks,
|
|
37
|
+
SpeechStreamEvent,
|
|
38
|
+
SpeechStreamEvent_SpeechChunk,
|
|
39
|
+
SpeechStreamEvent_SpeechDone,
|
|
40
|
+
SpeechStreamEvent_SpeechError,
|
|
29
41
|
)
|
|
30
42
|
from .errors import (
|
|
31
43
|
BadGatewayError,
|
|
32
44
|
BadRequestError,
|
|
33
45
|
ConflictError,
|
|
46
|
+
ContentTooLargeError,
|
|
34
47
|
ForbiddenError,
|
|
35
48
|
InternalServerError,
|
|
36
49
|
NotFoundError,
|
|
@@ -40,18 +53,18 @@ if typing.TYPE_CHECKING:
|
|
|
40
53
|
UnauthorizedError,
|
|
41
54
|
UnprocessableEntityError,
|
|
42
55
|
)
|
|
43
|
-
from . import audio, voices
|
|
56
|
+
from . import audio, models, voices
|
|
44
57
|
from ._default_clients import DefaultAioHttpClient, DefaultAsyncHttpxClient
|
|
45
58
|
from .audio import (
|
|
46
59
|
GetSpeechRequestAudioFormat,
|
|
47
60
|
GetSpeechRequestModel,
|
|
48
|
-
GetStreamRequestModel,
|
|
49
61
|
StreamAudioRequestAccept,
|
|
62
|
+
StreamWithTimestampsAudioRequestAccept,
|
|
50
63
|
)
|
|
51
64
|
from .client import AsyncSpeechify, Speechify
|
|
52
65
|
from .environment import SpeechifyEnvironment
|
|
53
66
|
from .version import __version__
|
|
54
|
-
from .voices import CreateVoicesRequestGender
|
|
67
|
+
from .voices import CreateVoicesRequestGender, ListVoicesRequestGender, ListVoicesRequestType
|
|
55
68
|
_dynamic_imports: typing.Dict[str, str] = {
|
|
56
69
|
"AsyncSpeechify": ".client",
|
|
57
70
|
"AudioOutputFormat": ".types",
|
|
@@ -59,6 +72,8 @@ _dynamic_imports: typing.Dict[str, str] = {
|
|
|
59
72
|
"BadGatewayError": ".errors",
|
|
60
73
|
"BadRequestError": ".errors",
|
|
61
74
|
"ConflictError": ".errors",
|
|
75
|
+
"ConsentChallenge": ".types",
|
|
76
|
+
"ContentTooLargeError": ".errors",
|
|
62
77
|
"CreateVoicesRequestGender": ".voices",
|
|
63
78
|
"DefaultAioHttpClient": "._default_clients",
|
|
64
79
|
"DefaultAsyncHttpxClient": "._default_clients",
|
|
@@ -72,7 +87,8 @@ _dynamic_imports: typing.Dict[str, str] = {
|
|
|
72
87
|
"GetSpeechResponse": ".types",
|
|
73
88
|
"GetSpeechResponseAudioFormat": ".types",
|
|
74
89
|
"GetStreamOptionsRequest": ".types",
|
|
75
|
-
"
|
|
90
|
+
"GetStreamRequest": ".types",
|
|
91
|
+
"GetStreamRequestModel": ".types",
|
|
76
92
|
"GetVoice": ".types",
|
|
77
93
|
"GetVoiceGender": ".types",
|
|
78
94
|
"GetVoiceLanguage": ".types",
|
|
@@ -80,21 +96,34 @@ _dynamic_imports: typing.Dict[str, str] = {
|
|
|
80
96
|
"GetVoicesModel": ".types",
|
|
81
97
|
"GetVoicesModelName": ".types",
|
|
82
98
|
"InternalServerError": ".errors",
|
|
99
|
+
"ListVoicesRequestGender": ".voices",
|
|
100
|
+
"ListVoicesRequestType": ".voices",
|
|
83
101
|
"ListVoicesResponse": ".types",
|
|
102
|
+
"Model": ".types",
|
|
103
|
+
"ModelsResponse": ".types",
|
|
84
104
|
"NestedChunk": ".types",
|
|
85
105
|
"NotFoundError": ".errors",
|
|
86
106
|
"PaginationMeta": ".types",
|
|
87
107
|
"PaymentRequiredError": ".errors",
|
|
88
108
|
"ServiceUnavailableError": ".errors",
|
|
109
|
+
"SpeechChunkEvent": ".types",
|
|
110
|
+
"SpeechDoneEvent": ".types",
|
|
111
|
+
"SpeechErrorEvent": ".types",
|
|
89
112
|
"SpeechMarks": ".types",
|
|
113
|
+
"SpeechStreamEvent": ".types",
|
|
114
|
+
"SpeechStreamEvent_SpeechChunk": ".types",
|
|
115
|
+
"SpeechStreamEvent_SpeechDone": ".types",
|
|
116
|
+
"SpeechStreamEvent_SpeechError": ".types",
|
|
90
117
|
"Speechify": ".client",
|
|
91
118
|
"SpeechifyEnvironment": ".environment",
|
|
92
119
|
"StreamAudioRequestAccept": ".audio",
|
|
120
|
+
"StreamWithTimestampsAudioRequestAccept": ".audio",
|
|
93
121
|
"TooManyRequestsError": ".errors",
|
|
94
122
|
"UnauthorizedError": ".errors",
|
|
95
123
|
"UnprocessableEntityError": ".errors",
|
|
96
124
|
"__version__": ".version",
|
|
97
125
|
"audio": ".audio",
|
|
126
|
+
"models": ".models",
|
|
98
127
|
"voices": ".voices",
|
|
99
128
|
}
|
|
100
129
|
|
|
@@ -127,6 +156,8 @@ __all__ = [
|
|
|
127
156
|
"BadGatewayError",
|
|
128
157
|
"BadRequestError",
|
|
129
158
|
"ConflictError",
|
|
159
|
+
"ConsentChallenge",
|
|
160
|
+
"ContentTooLargeError",
|
|
130
161
|
"CreateVoicesRequestGender",
|
|
131
162
|
"DefaultAioHttpClient",
|
|
132
163
|
"DefaultAsyncHttpxClient",
|
|
@@ -140,6 +171,7 @@ __all__ = [
|
|
|
140
171
|
"GetSpeechResponse",
|
|
141
172
|
"GetSpeechResponseAudioFormat",
|
|
142
173
|
"GetStreamOptionsRequest",
|
|
174
|
+
"GetStreamRequest",
|
|
143
175
|
"GetStreamRequestModel",
|
|
144
176
|
"GetVoice",
|
|
145
177
|
"GetVoiceGender",
|
|
@@ -148,20 +180,33 @@ __all__ = [
|
|
|
148
180
|
"GetVoicesModel",
|
|
149
181
|
"GetVoicesModelName",
|
|
150
182
|
"InternalServerError",
|
|
183
|
+
"ListVoicesRequestGender",
|
|
184
|
+
"ListVoicesRequestType",
|
|
151
185
|
"ListVoicesResponse",
|
|
186
|
+
"Model",
|
|
187
|
+
"ModelsResponse",
|
|
152
188
|
"NestedChunk",
|
|
153
189
|
"NotFoundError",
|
|
154
190
|
"PaginationMeta",
|
|
155
191
|
"PaymentRequiredError",
|
|
156
192
|
"ServiceUnavailableError",
|
|
193
|
+
"SpeechChunkEvent",
|
|
194
|
+
"SpeechDoneEvent",
|
|
195
|
+
"SpeechErrorEvent",
|
|
157
196
|
"SpeechMarks",
|
|
197
|
+
"SpeechStreamEvent",
|
|
198
|
+
"SpeechStreamEvent_SpeechChunk",
|
|
199
|
+
"SpeechStreamEvent_SpeechDone",
|
|
200
|
+
"SpeechStreamEvent_SpeechError",
|
|
158
201
|
"Speechify",
|
|
159
202
|
"SpeechifyEnvironment",
|
|
160
203
|
"StreamAudioRequestAccept",
|
|
204
|
+
"StreamWithTimestampsAudioRequestAccept",
|
|
161
205
|
"TooManyRequestsError",
|
|
162
206
|
"UnauthorizedError",
|
|
163
207
|
"UnprocessableEntityError",
|
|
164
208
|
"__version__",
|
|
165
209
|
"audio",
|
|
210
|
+
"models",
|
|
166
211
|
"voices",
|
|
167
212
|
]
|
|
@@ -9,14 +9,14 @@ if typing.TYPE_CHECKING:
|
|
|
9
9
|
from .types import (
|
|
10
10
|
GetSpeechRequestAudioFormat,
|
|
11
11
|
GetSpeechRequestModel,
|
|
12
|
-
GetStreamRequestModel,
|
|
13
12
|
StreamAudioRequestAccept,
|
|
13
|
+
StreamWithTimestampsAudioRequestAccept,
|
|
14
14
|
)
|
|
15
15
|
_dynamic_imports: typing.Dict[str, str] = {
|
|
16
16
|
"GetSpeechRequestAudioFormat": ".types",
|
|
17
17
|
"GetSpeechRequestModel": ".types",
|
|
18
|
-
"GetStreamRequestModel": ".types",
|
|
19
18
|
"StreamAudioRequestAccept": ".types",
|
|
19
|
+
"StreamWithTimestampsAudioRequestAccept": ".types",
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
|
|
@@ -41,4 +41,9 @@ def __dir__():
|
|
|
41
41
|
return sorted(lazy_attrs)
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
__all__ = [
|
|
44
|
+
__all__ = [
|
|
45
|
+
"GetSpeechRequestAudioFormat",
|
|
46
|
+
"GetSpeechRequestModel",
|
|
47
|
+
"StreamAudioRequestAccept",
|
|
48
|
+
"StreamWithTimestampsAudioRequestAccept",
|
|
49
|
+
]
|