spitch 1.6.0__py3-none-any.whl → 1.7.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.6.0" # x-release-please-version
4
+ __version__ = "1.7.0" # x-release-please-version
@@ -7,7 +7,7 @@ from typing_extensions import Literal
7
7
 
8
8
  import httpx
9
9
 
10
- from ..types import speech_generate_params, speech_transcibe_params
10
+ from ..types import speech_generate_params, speech_transcribe_params
11
11
  from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven, FileTypes
12
12
  from .._utils import (
13
13
  extract_files,
@@ -98,7 +98,7 @@ class SpeechResource(SyncAPIResource):
98
98
  cast_to=BinaryAPIResponse,
99
99
  )
100
100
 
101
- def transcibe(
101
+ def transcribe(
102
102
  self,
103
103
  *,
104
104
  language: Literal["yo", "en", "ha", "ig"],
@@ -137,7 +137,7 @@ class SpeechResource(SyncAPIResource):
137
137
  extra_headers = {"Content-Type": "multipart/form-data", **(extra_headers or {})}
138
138
  return self._post(
139
139
  "/v1/transcriptions",
140
- body=maybe_transform(body, speech_transcibe_params.SpeechTranscibeParams),
140
+ body=maybe_transform(body, speech_transcribe_params.SpeechTranscribeParams),
141
141
  files=files,
142
142
  options=make_request_options(
143
143
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
@@ -208,7 +208,7 @@ class AsyncSpeechResource(AsyncAPIResource):
208
208
  cast_to=AsyncBinaryAPIResponse,
209
209
  )
210
210
 
211
- async def transcibe(
211
+ async def transcribe(
212
212
  self,
213
213
  *,
214
214
  language: Literal["yo", "en", "ha", "ig"],
@@ -247,7 +247,7 @@ class AsyncSpeechResource(AsyncAPIResource):
247
247
  extra_headers = {"Content-Type": "multipart/form-data", **(extra_headers or {})}
248
248
  return await self._post(
249
249
  "/v1/transcriptions",
250
- body=await async_maybe_transform(body, speech_transcibe_params.SpeechTranscibeParams),
250
+ body=await async_maybe_transform(body, speech_transcribe_params.SpeechTranscribeParams),
251
251
  files=files,
252
252
  options=make_request_options(
253
253
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
@@ -264,8 +264,8 @@ class SpeechResourceWithRawResponse:
264
264
  speech.generate,
265
265
  BinaryAPIResponse,
266
266
  )
267
- self.transcibe = to_raw_response_wrapper(
268
- speech.transcibe,
267
+ self.transcribe = to_raw_response_wrapper(
268
+ speech.transcribe,
269
269
  )
270
270
 
271
271
 
@@ -277,8 +277,8 @@ class AsyncSpeechResourceWithRawResponse:
277
277
  speech.generate,
278
278
  AsyncBinaryAPIResponse,
279
279
  )
280
- self.transcibe = async_to_raw_response_wrapper(
281
- speech.transcibe,
280
+ self.transcribe = async_to_raw_response_wrapper(
281
+ speech.transcribe,
282
282
  )
283
283
 
284
284
 
@@ -290,8 +290,8 @@ class SpeechResourceWithStreamingResponse:
290
290
  speech.generate,
291
291
  StreamedBinaryAPIResponse
292
292
  )
293
- self.transcibe = to_streamed_response_wrapper(
294
- speech.transcibe,
293
+ self.transcribe = to_streamed_response_wrapper(
294
+ speech.transcribe,
295
295
  )
296
296
 
297
297
 
@@ -303,6 +303,6 @@ class AsyncSpeechResourceWithStreamingResponse:
303
303
  speech.generate,
304
304
  AsyncStreamedBinaryAPIResponse
305
305
  )
306
- self.transcibe = async_to_streamed_response_wrapper(
307
- speech.transcibe,
306
+ self.transcribe = async_to_streamed_response_wrapper(
307
+ speech.transcribe,
308
308
  )
spitch/types/__init__.py CHANGED
@@ -4,4 +4,4 @@ from __future__ import annotations
4
4
 
5
5
  from .text_tone_mark_params import TextToneMarkParams as TextToneMarkParams
6
6
  from .speech_generate_params import SpeechGenerateParams as SpeechGenerateParams
7
- from .speech_transcibe_params import SpeechTranscibeParams as SpeechTranscibeParams
7
+ from .speech_transcribe_params import SpeechTranscribeParams as SpeechTranscribeParams
@@ -0,0 +1,18 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing import Optional
6
+ from typing_extensions import Literal, Required, TypedDict
7
+
8
+ from .._types import FileTypes
9
+
10
+ __all__ = ["SpeechTranscribeParams"]
11
+
12
+
13
+ class SpeechTranscribeParams(TypedDict, total=False):
14
+ language: Required[Literal["yo", "en", "ha", "ig"]]
15
+
16
+ content: Optional[FileTypes]
17
+
18
+ url: Optional[str]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: spitch
3
- Version: 1.6.0
3
+ Version: 1.7.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
@@ -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=du9OwxylX7WRG8VPP97XEsjL0NX2FF6uLkflVNNHIQg,158
14
+ spitch/_version.py,sha256=L0Aps0N-5x9tukfOzO2wIPVTHcOjnBjKtV6Pjx2jzIo,158
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,13 +24,14 @@ 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=JUMxsdL88Sr8FBWZ7yltYV5KPX7fN7N_UW4dH5LtSzw,11342
27
+ spitch/resources/speech.py,sha256=srpM1YYYJs0_TegHmnh0WSIoa1lIKBbOnZ18LKzZOD4,11357
28
28
  spitch/resources/text.py,sha256=xy7N1q5ioXVMtmcW6iOE8j8n9j4lvnpvO4jJ9FMZmsU,6071
29
- spitch/types/__init__.py,sha256=4aa9CgcCmGRqZb4k9F3005Q4Ok-zjiiqw5k3BXIQ3MY,364
29
+ spitch/types/__init__.py,sha256=4ePk7asUYW79AqILx8fmOhFnMgUpWyMvkhZUbOpaaUA,367
30
30
  spitch/types/speech_generate_params.py,sha256=cZjZhlP9CIuwRQEnsAiBCurPEIlLgVBTYxx98hQViHg,417
31
31
  spitch/types/speech_transcibe_params.py,sha256=WvwBsSctqJDXOFJNYyjfijwCnAdJCPkJobESfmLy3aI,448
32
+ spitch/types/speech_transcribe_params.py,sha256=FEG512EPDTm2WbDHefbn8tiSbnIqF8ZnFjc4rYekMRY,450
32
33
  spitch/types/text_tone_mark_params.py,sha256=63P5VElxanYkDP1ZLEuQt97JSgVpMCaAo4WRWLDvhlY,349
33
- spitch-1.6.0.dist-info/METADATA,sha256=MSdm2bE2YDyuALkrzx08mdSgPKJgmgr03ZsXr7eBT_4,12645
34
- spitch-1.6.0.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
35
- spitch-1.6.0.dist-info/licenses/LICENSE,sha256=529F8Amq5MfoIm33JY544oweKES9vw9_xS1CNx-ztPI,11336
36
- spitch-1.6.0.dist-info/RECORD,,
34
+ spitch-1.7.0.dist-info/METADATA,sha256=VpNNdGB6_Uf7Revzl-lakCCojah4sKV4fkwBM4cGRHc,12645
35
+ spitch-1.7.0.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
36
+ spitch-1.7.0.dist-info/licenses/LICENSE,sha256=529F8Amq5MfoIm33JY544oweKES9vw9_xS1CNx-ztPI,11336
37
+ spitch-1.7.0.dist-info/RECORD,,
File without changes