diff --git a/poetry.lock b/poetry.lock index bee8708..301277d 100644 --- a/poetry.lock +++ b/poetry.lock @@ -249,13 +249,13 @@ files = [ [[package]] name = "httpcore" -version = "1.0.4" +version = "1.0.5" description = "A minimal low-level HTTP client." optional = false python-versions = ">=3.8" files = [ - {file = "httpcore-1.0.4-py3-none-any.whl", hash = "sha256:ac418c1db41bade2ad53ae2f3834a3a0f5ae76b56cf5aa497d2d033384fc7d73"}, - {file = "httpcore-1.0.4.tar.gz", hash = "sha256:cb2839ccfcba0d2d3c1131d3c3e26dfc327326fbe7a5dc0dbfe9f6c9151bb022"}, + {file = "httpcore-1.0.5-py3-none-any.whl", hash = "sha256:421f18bac248b25d310f3cacd198d55b8e6125c107797b609ff9b7a6ba7991b5"}, + {file = "httpcore-1.0.5.tar.gz", hash = "sha256:34a38e2f9291467ee3b44e89dd52615370e152954ba21721378a87b2960f7a61"}, ] [package.dependencies] @@ -266,7 +266,7 @@ h11 = ">=0.13,<0.15" asyncio = ["anyio (>=4.0,<5.0)"] http2 = ["h2 (>=3,<5)"] socks = ["socksio (==1.*)"] -trio = ["trio (>=0.22.0,<0.25.0)"] +trio = ["trio (>=0.22.0,<0.26.0)"] [[package]] name = "httpx" diff --git a/pyproject.toml b/pyproject.toml index 956dad5..8beaf3f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "elevenlabs" -version = "v1.0.2" +version = "v1.0.3" description = "" readme = "README.md" authors = [] diff --git a/src/elevenlabs/core/client_wrapper.py b/src/elevenlabs/core/client_wrapper.py index ea95ceb..dc736f9 100644 --- a/src/elevenlabs/core/client_wrapper.py +++ b/src/elevenlabs/core/client_wrapper.py @@ -17,7 +17,7 @@ def get_headers(self) -> typing.Dict[str, str]: headers: typing.Dict[str, str] = { "X-Fern-Language": "Python", "X-Fern-SDK-Name": "elevenlabs", - "X-Fern-SDK-Version": "v1.0.2", + "X-Fern-SDK-Version": "v1.0.3", } if self._api_key is not None: headers["xi-api-key"] = self._api_key diff --git a/src/elevenlabs/history/client.py b/src/elevenlabs/history/client.py index a3ee945..879548a 100644 --- a/src/elevenlabs/history/client.py +++ b/src/elevenlabs/history/client.py @@ -503,7 +503,7 @@ async def get_audio( history_item_id="string", ) """ - async with self._client_wrapper.httpx_client.stream( + async with await self._client_wrapper.httpx_client.stream( "GET", urllib.parse.urljoin( f"{self._client_wrapper.get_base_url()}/", f"v1/history/{jsonable_encoder(history_item_id)}/audio" diff --git a/src/elevenlabs/speech_to_speech/client.py b/src/elevenlabs/speech_to_speech/client.py index badeb17..2db9a39 100644 --- a/src/elevenlabs/speech_to_speech/client.py +++ b/src/elevenlabs/speech_to_speech/client.py @@ -248,7 +248,7 @@ async def convert( optimize_streaming_latency=1, ) """ - async with self._client_wrapper.httpx_client.stream( + async with await self._client_wrapper.httpx_client.stream( "POST", urllib.parse.urljoin( f"{self._client_wrapper.get_base_url()}/", f"v1/speech-to-speech/{jsonable_encoder(voice_id)}" @@ -339,7 +339,7 @@ async def convert_as_stream( optimize_streaming_latency=1, ) """ - async with self._client_wrapper.httpx_client.stream( + async with await self._client_wrapper.httpx_client.stream( "POST", urllib.parse.urljoin( f"{self._client_wrapper.get_base_url()}/", f"v1/speech-to-speech/{jsonable_encoder(voice_id)}/stream" diff --git a/src/elevenlabs/text_to_speech/client.py b/src/elevenlabs/text_to_speech/client.py index c23dbc1..89e7ae4 100644 --- a/src/elevenlabs/text_to_speech/client.py +++ b/src/elevenlabs/text_to_speech/client.py @@ -326,7 +326,7 @@ async def convert( _request["voice_settings"] = voice_settings if pronunciation_dictionary_locators is not OMIT: _request["pronunciation_dictionary_locators"] = pronunciation_dictionary_locators - async with self._client_wrapper.httpx_client.stream( + async with await self._client_wrapper.httpx_client.stream( "POST", urllib.parse.urljoin( f"{self._client_wrapper.get_base_url()}/", f"v1/text-to-speech/{jsonable_encoder(voice_id)}" @@ -442,7 +442,7 @@ async def convert_as_stream( _request["voice_settings"] = voice_settings if pronunciation_dictionary_locators is not OMIT: _request["pronunciation_dictionary_locators"] = pronunciation_dictionary_locators - async with self._client_wrapper.httpx_client.stream( + async with await self._client_wrapper.httpx_client.stream( "POST", urllib.parse.urljoin( f"{self._client_wrapper.get_base_url()}/", f"v1/text-to-speech/{jsonable_encoder(voice_id)}/stream" diff --git a/src/elevenlabs/voice_generation/client.py b/src/elevenlabs/voice_generation/client.py index 265cf38..bf63a7d 100644 --- a/src/elevenlabs/voice_generation/client.py +++ b/src/elevenlabs/voice_generation/client.py @@ -322,7 +322,7 @@ async def generate( text="string", ) """ - async with self._client_wrapper.httpx_client.stream( + async with await self._client_wrapper.httpx_client.stream( "POST", urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "v1/voice-generation/generate-voice"), params=jsonable_encoder(