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 10, 2025
1 parent e00618c commit c0f6523
Show file tree
Hide file tree
Showing 18 changed files with 397 additions and 108 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "elevenlabs"

[tool.poetry]
name = "elevenlabs"
version = "1.53.0"
version = "1.54.0"
description = ""
readme = "README.md"
authors = []
Expand Down
46 changes: 43 additions & 3 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<dl>
<dd>

Returns metadata about all your generated audio.
Returns a list of your generated audio.
</dd>
</dl>
</dd>
Expand Down Expand Up @@ -112,7 +112,7 @@ client.history.get_all()
<dl>
<dd>

Returns information about an history item by its ID.
Retrieves a history item.
</dd>
</dl>
</dd>
Expand Down Expand Up @@ -376,7 +376,7 @@ client.history.download(
<dl>
<dd>

**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. You can pass in configuration such as `chunk_size`, and more to customize the request and response.

</dd>
</dl>
Expand Down Expand Up @@ -2108,6 +2108,38 @@ client.text_to_voice.create_previews(
<dl>
<dd>

**loudness:** `typing.Optional[float]` — Controls the volume level of the generated voice. -1 is quietest, 1 is loudest, 0 corresponds to roughly -24 LUFS.

</dd>
</dl>

<dl>
<dd>

**quality:** `typing.Optional[float]` — Higher quality results in better voice output but less variety.

</dd>
</dl>

<dl>
<dd>

**seed:** `typing.Optional[int]` — Random number that controls the voice generation. Same seed with same inputs produces same voice.

</dd>
</dl>

<dl>
<dd>

**guidance_scale:** `typing.Optional[float]` — Controls how closely the AI follows the prompt. Lower numbers give the AI more freedom to be creative, while higher numbers force it to stick more to the prompt. High numbers can cause voice to sound artificial or robotic. We recommend to use longer, more detailed prompts at lower Guidance Scale.

</dd>
</dl>

<dl>
<dd>

**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.

</dd>
Expand Down Expand Up @@ -8137,6 +8169,14 @@ core.File` — See core.File for more documentation
<dl>
<dd>

**biased_keywords:** `typing.Optional[typing.List[str]]` — A list of keywords and their biases. The keywords are the words that you want to bias the transcription towards. The biases decide how much the model should boost or suppress the keyword. The biases should be numbers between -10 and 10. The number of keywords cannot exceed 100. The length of each keyword must be less than 50 characters. Each keyword-bias pair must be separated by a colon. For example ["keyword_a:0.42", "keyword_b:-0.5"]

</dd>
</dl>

<dl>
<dd>

**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.

</dd>
Expand Down
5 changes: 4 additions & 1 deletion src/elevenlabs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@
DataCollectionResultCommonModel,
DeleteChapterResponseModel,
DeleteDubbingResponseModel,
DeleteHistoryItemResponse,
DeleteProjectResponseModel,
DeleteSampleResponseModel,
DeleteVoiceResponseModel,
Expand Down Expand Up @@ -346,7 +347,7 @@
WidgetFeedbackMode,
WorkspaceGroupByNameResponseModel,
)
from .errors import ForbiddenError, NotFoundError, TooEarlyError, UnprocessableEntityError
from .errors import BadRequestError, ForbiddenError, NotFoundError, TooEarlyError, UnprocessableEntityError
from . import (
audio_isolation,
audio_native,
Expand Down Expand Up @@ -458,6 +459,7 @@
"AudioWithTimestampsResponseModel",
"AuthSettings",
"AuthorizationMethod",
"BadRequestError",
"BanReasonType",
"BodyAddToKnowledgeBaseV1ConvaiAddToKnowledgeBasePost",
"BodyAddToKnowledgeBaseV1ConvaiAgentsAgentIdAddToKnowledgeBasePost",
Expand Down Expand Up @@ -552,6 +554,7 @@
"DataCollectionResultCommonModel",
"DeleteChapterResponseModel",
"DeleteDubbingResponseModel",
"DeleteHistoryItemResponse",
"DeleteProjectResponseModel",
"DeleteSampleResponseModel",
"DeleteVoiceResponseModel",
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": "1.53.0",
"X-Fern-SDK-Version": "1.54.0",
}
if self._api_key is not None:
headers["xi-api-key"] = self._api_key
Expand Down
3 changes: 2 additions & 1 deletion src/elevenlabs/errors/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# This file was auto-generated by Fern from our API Definition.

from .bad_request_error import BadRequestError
from .forbidden_error import ForbiddenError
from .not_found_error import NotFoundError
from .too_early_error import TooEarlyError
from .unprocessable_entity_error import UnprocessableEntityError

__all__ = ["ForbiddenError", "NotFoundError", "TooEarlyError", "UnprocessableEntityError"]
__all__ = ["BadRequestError", "ForbiddenError", "NotFoundError", "TooEarlyError", "UnprocessableEntityError"]
9 changes: 9 additions & 0 deletions src/elevenlabs/errors/bad_request_error.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# This file was auto-generated by Fern from our API Definition.

from ..core.api_error import ApiError
import typing


class BadRequestError(ApiError):
def __init__(self, body: typing.Optional[typing.Any]):
super().__init__(status_code=400, body=body)
Loading

0 comments on commit c0f6523

Please sign in to comment.