spitch 1.12.0__py3-none-any.whl → 1.13.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,4 +1,4 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  __title__ = "spitch"
4
- __version__ = "1.12.0" # x-release-please-version
4
+ __version__ = "1.13.0" # x-release-please-version
@@ -62,8 +62,8 @@ class SpeechResource(SyncAPIResource):
62
62
  *,
63
63
  language: Literal["yo", "en", "ha", "ig"],
64
64
  text: str,
65
+ voice: Literal["sade", "segun", "femi", "funmi", "amina", "aliyu", "hasan", "zainab"],
65
66
  stream: bool | NotGiven = NOT_GIVEN,
66
- voice: Literal["sade", "segun", "femi", "funmi"] | NotGiven = NOT_GIVEN,
67
67
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
68
68
  # The extra values given here take precedence over values defined on the client or passed to this method.
69
69
  extra_headers: Headers | None = None,
@@ -181,8 +181,8 @@ class AsyncSpeechResource(AsyncAPIResource):
181
181
  *,
182
182
  language: Literal["yo", "en", "ha", "ig"],
183
183
  text: str,
184
+ voice: Literal["sade", "segun", "femi", "funmi", "amina", "aliyu", "hasan", "zainab"],
184
185
  stream: bool | NotGiven = NOT_GIVEN,
185
- voice: Literal["sade", "segun", "femi", "funmi"] | NotGiven = NOT_GIVEN,
186
186
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
187
187
  # The extra values given here take precedence over values defined on the client or passed to this method.
188
188
  extra_headers: Headers | None = None,
@@ -12,6 +12,6 @@ class SpeechGenerateParams(TypedDict, total=False):
12
12
 
13
13
  text: Required[str]
14
14
 
15
- stream: bool
15
+ voice: Required[Literal["sade", "segun", "femi", "funmi", "amina", "aliyu", "hasan", "zainab"]]
16
16
 
17
- voice: Literal["sade", "segun", "femi", "funmi"]
17
+ stream: bool
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: spitch
3
- Version: 1.12.0
3
+ Version: 1.13.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
@@ -69,6 +69,7 @@ client = Spitch(
69
69
  response = client.speech.generate(
70
70
  language="yo",
71
71
  text="text",
72
+ voice="sade",
72
73
  )
73
74
  ```
74
75
 
@@ -96,6 +97,7 @@ async def main() -> None:
96
97
  response = await client.speech.generate(
97
98
  language="yo",
98
99
  text="text",
100
+ voice="sade",
99
101
  )
100
102
 
101
103
 
@@ -132,6 +134,7 @@ try:
132
134
  client.speech.generate(
133
135
  language="yo",
134
136
  text="text",
137
+ voice="sade",
135
138
  )
136
139
  except spitch.APIConnectionError as e:
137
140
  print("The server could not be reached")
@@ -178,6 +181,7 @@ client = Spitch(
178
181
  client.with_options(max_retries=5).speech.generate(
179
182
  language="yo",
180
183
  text="text",
184
+ voice="sade",
181
185
  )
182
186
  ```
183
187
 
@@ -204,6 +208,7 @@ client = Spitch(
204
208
  client.with_options(timeout=5.0).speech.generate(
205
209
  language="yo",
206
210
  text="text",
211
+ voice="sade",
207
212
  )
208
213
  ```
209
214
 
@@ -246,6 +251,7 @@ client = Spitch()
246
251
  response = client.speech.with_raw_response.generate(
247
252
  language="yo",
248
253
  text="text",
254
+ voice="sade",
249
255
  )
250
256
  print(response.headers.get('X-My-Header'))
251
257
 
@@ -267,6 +273,7 @@ To stream the response body, use `.with_streaming_response` instead, which requi
267
273
  with client.speech.with_streaming_response.generate(
268
274
  language="yo",
269
275
  text="text",
276
+ voice="sade",
270
277
  ) as response:
271
278
  print(response.headers.get("X-My-Header"))
272
279
 
@@ -11,7 +11,7 @@ spitch/_resource.py,sha256=TLFPcOOmtxZOQLh3XCNPB_BdrQpp0MIYoKoH52aRAu8,1100
11
11
  spitch/_response.py,sha256=aN6swtguiZ7CC_hWFrwoUa53FgSbjRfZXxYHvfDNGeo,28609
12
12
  spitch/_streaming.py,sha256=5SpId2EIfF8Ee8UUYmJxqgHUGP1ZdHCUHhHCdNJREFA,10100
13
13
  spitch/_types.py,sha256=dsJyGWdBXaYJaRBqn2V3iRsfpWw71rFaSxdSM8sPQYY,6103
14
- spitch/_version.py,sha256=W2PbCOPPdvjlkneI70TPUD_eeRC3zipzbCLonB33DWM,159
14
+ spitch/_version.py,sha256=ddoppH24FokxKtXQ38MMt54CznwuDOGfqNH2OWYOQbo,159
15
15
  spitch/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
16
  spitch/_utils/__init__.py,sha256=Uzq1-FIih_VUjzdNVWXks0sdC39KBKLMrZoz-_JOjJ4,1988
17
17
  spitch/_utils/_logs.py,sha256=ApRyYK_WgZfEr_ygBUBXWMlTgeMr2tdNOGlH8jE4oJc,774
@@ -24,10 +24,10 @@ spitch/_utils/_typing.py,sha256=tFbktdpdHCQliwzGsWysgn0P5H0JRdagkZdb_LegGkY,3838
24
24
  spitch/_utils/_utils.py,sha256=tYrr7IX-5NMwsVKbNggbzOM84uNw7XnAe06e2Ln8Or0,11472
25
25
  spitch/lib/.keep,sha256=wuNrz-5SXo3jJaJOJgz4vFHM41YH_g20F5cRQo0vLes,224
26
26
  spitch/resources/__init__.py,sha256=KT6rAvIlWHQk9QdM4Jp8ABziKILaBrrtiO7LCB5Wa5E,976
27
- spitch/resources/speech.py,sha256=kmiAXGaunsCoTDQphcazwcDTeBPINXnJA1I3EFmuNmg,12365
27
+ spitch/resources/speech.py,sha256=vj5iyWPw51f9K6NVWQ-2EmqRN0im0PPK2xdMcXNxoNk,12393
28
28
  spitch/resources/text.py,sha256=Gno8dQg7jeL8rslqqURyu4t-5_lLwziYgCRvgY8V9XM,9665
29
29
  spitch/types/__init__.py,sha256=xBZbzXwV3WlBdawp4Mb4IqoQG4VfaLbi-4FMqPbwqlE,704
30
- spitch/types/speech_generate_params.py,sha256=kNVcFxcIcImiLa8r4OEbzeIOqZNtkbSUek99t2ljhaI,425
30
+ spitch/types/speech_generate_params.py,sha256=T7gu6TgxNoGqow5kW9--zEdi1JmavNl_sEWImTZSA3o,472
31
31
  spitch/types/speech_transcibe_params.py,sha256=WvwBsSctqJDXOFJNYyjfijwCnAdJCPkJobESfmLy3aI,448
32
32
  spitch/types/speech_transcribe_params.py,sha256=2nUgsYIURWTKx8qBYE0WfIHh6hXVcdgCz-UC1wIaXpA,515
33
33
  spitch/types/speech_transcribe_response.py,sha256=if2u4Me_bfI5NEOPFMK1r_3X8aGqFZacxzAml5EciBk,515
@@ -35,7 +35,7 @@ spitch/types/text_tone_mark_params.py,sha256=63P5VElxanYkDP1ZLEuQt97JSgVpMCaAo4W
35
35
  spitch/types/text_tone_mark_response.py,sha256=WGxZsBxLceZ03VM5dafZshp6azdDxpNHcJHhBX7A5DY,277
36
36
  spitch/types/text_translate_params.py,sha256=rU5hbTyBaP5L_akmgswHoNLcTKWN0Gz1kL1yt3EQL44,404
37
37
  spitch/types/text_translate_response.py,sha256=Az3QSpvarlCNTiB7uVzMH21YoWHWJMBEvgdKgVJZW4M,279
38
- spitch-1.12.0.dist-info/METADATA,sha256=Zy_fSR5rar1h8cVRdyvN-izyVipADFAG4XoZdrXPWWM,12512
39
- spitch-1.12.0.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
40
- spitch-1.12.0.dist-info/licenses/LICENSE,sha256=529F8Amq5MfoIm33JY544oweKES9vw9_xS1CNx-ztPI,11336
41
- spitch-1.12.0.dist-info/RECORD,,
38
+ spitch-1.13.0.dist-info/METADATA,sha256=bEHrEDe7k3tbTT66RZVkHZYeQKhoA3p0FvXydsZcDss,12646
39
+ spitch-1.13.0.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
40
+ spitch-1.13.0.dist-info/licenses/LICENSE,sha256=529F8Amq5MfoIm33JY544oweKES9vw9_xS1CNx-ztPI,11336
41
+ spitch-1.13.0.dist-info/RECORD,,