spitch 1.33.0__py3-none-any.whl → 1.34.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 spitch might be problematic. Click here for more details.
spitch/_version.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: spitch
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.34.0
|
|
4
4
|
Summary: The official Python library for the spitch API
|
|
5
5
|
Project-URL: Homepage, https://github.com/spi-tch/spitch-python
|
|
6
6
|
Project-URL: Repository, https://github.com/spi-tch/spitch-python
|
|
@@ -61,9 +61,12 @@ pip install spitch
|
|
|
61
61
|
The full API of this library can be found in [api.md](https://github.com/spi-tch/spitch-python/tree/main/api.md).
|
|
62
62
|
|
|
63
63
|
```python
|
|
64
|
+
import os
|
|
64
65
|
from spitch import Spitch
|
|
65
66
|
|
|
66
|
-
client = Spitch(
|
|
67
|
+
client = Spitch(
|
|
68
|
+
api_key=os.environ.get("SPITCH_API_KEY"), # This is the default and can be omitted
|
|
69
|
+
)
|
|
67
70
|
|
|
68
71
|
response = client.speech.generate(
|
|
69
72
|
language="yo",
|
|
@@ -82,10 +85,13 @@ so that your API Key is not stored in source control.
|
|
|
82
85
|
Simply import `AsyncSpitch` instead of `Spitch` and use `await` with each API call:
|
|
83
86
|
|
|
84
87
|
```python
|
|
88
|
+
import os
|
|
85
89
|
import asyncio
|
|
86
90
|
from spitch import AsyncSpitch
|
|
87
91
|
|
|
88
|
-
client = AsyncSpitch(
|
|
92
|
+
client = AsyncSpitch(
|
|
93
|
+
api_key=os.environ.get("SPITCH_API_KEY"), # This is the default and can be omitted
|
|
94
|
+
)
|
|
89
95
|
|
|
90
96
|
|
|
91
97
|
async def main() -> None:
|
|
@@ -122,6 +128,7 @@ from spitch import AsyncSpitch
|
|
|
122
128
|
|
|
123
129
|
async def main() -> None:
|
|
124
130
|
async with AsyncSpitch(
|
|
131
|
+
api_key="My API Key",
|
|
125
132
|
http_client=DefaultAioHttpClient(),
|
|
126
133
|
) as client:
|
|
127
134
|
response = await client.speech.generate(
|
|
@@ -11,7 +11,7 @@ spitch/_resource.py,sha256=TLFPcOOmtxZOQLh3XCNPB_BdrQpp0MIYoKoH52aRAu8,1100
|
|
|
11
11
|
spitch/_response.py,sha256=-1LLK1wjPW3Hcro9NXjf_SnPRArU1ozdctNIStvxbWo,28690
|
|
12
12
|
spitch/_streaming.py,sha256=5SpId2EIfF8Ee8UUYmJxqgHUGP1ZdHCUHhHCdNJREFA,10100
|
|
13
13
|
spitch/_types.py,sha256=lccvqVi8E6-4SKt0rn1e9XXNePb0WwdDc10sPVSCygI,6221
|
|
14
|
-
spitch/_version.py,sha256=
|
|
14
|
+
spitch/_version.py,sha256=_G8590lr1cUX87r1U193Q0arfDNmcPmWLRzS9pF6lLI,159
|
|
15
15
|
spitch/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
16
16
|
spitch/_utils/__init__.py,sha256=k266EatJr88V8Zseb7xUimTlCeno9SynRfLwadHP1b4,2016
|
|
17
17
|
spitch/_utils/_logs.py,sha256=ApRyYK_WgZfEr_ygBUBXWMlTgeMr2tdNOGlH8jE4oJc,774
|
|
@@ -35,7 +35,7 @@ spitch/types/text_tone_mark_params.py,sha256=MEnWzcSjPT_Z_8Mio96LgwYbx2BngG5By-M
|
|
|
35
35
|
spitch/types/text_tone_mark_response.py,sha256=AtLA2N7tzhxzuTYxS3PwJfPgjGQxIlgTZmTzIUdxKMA,231
|
|
36
36
|
spitch/types/text_translate_params.py,sha256=skEeG7oTZUSl_gugnqL4Mb7HE_pEFhKNygZPTvci2hA,416
|
|
37
37
|
spitch/types/text_translate_response.py,sha256=oehUy3S8jyHTLUFhHTV9LtVhkPGxSasENXEPoK4F6-M,233
|
|
38
|
-
spitch-1.
|
|
39
|
-
spitch-1.
|
|
40
|
-
spitch-1.
|
|
41
|
-
spitch-1.
|
|
38
|
+
spitch-1.34.0.dist-info/METADATA,sha256=clRMYI0_NE7KQhkOqGt4licIPVG8Xu4KZdebbul09tE,14264
|
|
39
|
+
spitch-1.34.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
|
40
|
+
spitch-1.34.0.dist-info/licenses/LICENSE,sha256=C0lDWY-no8IxmnqzQA9BA7Z8jeh_bogVPfeWSgeDDcc,11336
|
|
41
|
+
spitch-1.34.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|