Skip to content

Commit

Permalink
SDK regeneration
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Mar 12, 2024
1 parent d2907bb commit 9146a0d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "elevenlabs"
version = "0.0.44"
version = "0.0.45"
description = ""
readme = "README.md"
authors = []
Expand Down
2 changes: 1 addition & 1 deletion src/elevenlabs/core/client_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions src/elevenlabs/text_to_speech/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
*,
Expand Down Expand Up @@ -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",
)
Expand Down Expand Up @@ -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,
*,
Expand Down Expand Up @@ -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",
)
Expand Down

0 comments on commit 9146a0d

Please sign in to comment.