From 9146a0d55b63b777c2ec822d6a45d96017494768 Mon Sep 17 00:00:00 2001 From: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 12 Mar 2024 13:31:30 +0000 Subject: [PATCH] SDK regeneration --- pyproject.toml | 2 +- src/elevenlabs/core/client_wrapper.py | 2 +- src/elevenlabs/text_to_speech/client.py | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 45f23ec..41c874b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "elevenlabs" -version = "0.0.44" +version = "0.0.45" description = "" readme = "README.md" authors = [] diff --git a/src/elevenlabs/core/client_wrapper.py b/src/elevenlabs/core/client_wrapper.py index 28753b4..7d8ea74 100644 --- a/src/elevenlabs/core/client_wrapper.py +++ b/src/elevenlabs/core/client_wrapper.py @@ -16,7 +16,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": "0.0.44", + "X-Fern-SDK-Version": "0.0.45", } if self._api_key is not None: headers["xi-api-key"] = self._api_key diff --git a/src/elevenlabs/text_to_speech/client.py b/src/elevenlabs/text_to_speech/client.py index 647fe3f..04e22eb 100644 --- a/src/elevenlabs/text_to_speech/client.py +++ b/src/elevenlabs/text_to_speech/client.py @@ -133,7 +133,7 @@ def convert( raise ApiError(status_code=_response.status_code, body=_response.text) raise ApiError(status_code=_response.status_code, body=_response_json) - def text_to_speech( + def convert_as_stream( self, voice_id: str, *, @@ -188,7 +188,7 @@ def text_to_speech( client = ElevenLabs( api_key="YOUR_API_KEY", ) - client.text_to_speech.text_to_speech( + client.text_to_speech.convert_as_stream( voice_id="voice_id", text="text", ) @@ -359,7 +359,7 @@ async def convert( raise ApiError(status_code=_response.status_code, body=_response.text) raise ApiError(status_code=_response.status_code, body=_response_json) - async def text_to_speech( + async def convert_as_stream( self, voice_id: str, *, @@ -414,7 +414,7 @@ async def text_to_speech( client = AsyncElevenLabs( api_key="YOUR_API_KEY", ) - await client.text_to_speech.text_to_speech( + await client.text_to_speech.convert_as_stream( voice_id="voice_id", text="text", )