Skip to content

Commit

Permalink
Release 0.0.31
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Dec 8, 2023
1 parent 49306fc commit 302b8a1
Show file tree
Hide file tree
Showing 9 changed files with 139 additions and 2 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 = "vocode-api"
version = "0.0.30"
version = "0.0.31"
description = ""
readme = "README.md"
authors = []
Expand Down
8 changes: 8 additions & 0 deletions src/vocode/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,15 @@
PlanType,
PlayHtVoice,
PlayHtVoiceParams,
PlayHtVoiceParamsQuality,
PlayHtVoiceParamsVersion,
PlayHtVoiceQuality,
PlayHtVoiceUpdateParams,
PlayHtVoiceUpdateParamsApiKey,
PlayHtVoiceUpdateParamsApiUserId,
PlayHtVoiceUpdateParamsQuality,
PlayHtVoiceUpdateParamsSpeed,
PlayHtVoiceUpdateParamsTemperature,
PlayHtVoiceUpdateParamsVersion,
PlayHtVoiceUpdateParamsVoiceId,
PlayHtVoiceVersion,
Expand Down Expand Up @@ -443,11 +447,15 @@
"PlanType",
"PlayHtVoice",
"PlayHtVoiceParams",
"PlayHtVoiceParamsQuality",
"PlayHtVoiceParamsVersion",
"PlayHtVoiceQuality",
"PlayHtVoiceUpdateParams",
"PlayHtVoiceUpdateParamsApiKey",
"PlayHtVoiceUpdateParamsApiUserId",
"PlayHtVoiceUpdateParamsQuality",
"PlayHtVoiceUpdateParamsSpeed",
"PlayHtVoiceUpdateParamsTemperature",
"PlayHtVoiceUpdateParamsVersion",
"PlayHtVoiceUpdateParamsVoiceId",
"PlayHtVoiceVersion",
Expand Down
2 changes: 1 addition & 1 deletion src/vocode/core/client_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def get_headers(self) -> typing.Dict[str, str]:
headers: typing.Dict[str, str] = {
"X-Fern-Language": "Python",
"X-Fern-SDK-Name": "vocode-api",
"X-Fern-SDK-Version": "0.0.30",
"X-Fern-SDK-Version": "0.0.31",
}
headers["Authorization"] = f"Bearer {self._get_token()}"
return headers
Expand Down
8 changes: 8 additions & 0 deletions src/vocode/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,15 @@
from .plan_type import PlanType
from .play_ht_voice import PlayHtVoice
from .play_ht_voice_params import PlayHtVoiceParams
from .play_ht_voice_params_quality import PlayHtVoiceParamsQuality
from .play_ht_voice_params_version import PlayHtVoiceParamsVersion
from .play_ht_voice_quality import PlayHtVoiceQuality
from .play_ht_voice_update_params import PlayHtVoiceUpdateParams
from .play_ht_voice_update_params_api_key import PlayHtVoiceUpdateParamsApiKey
from .play_ht_voice_update_params_api_user_id import PlayHtVoiceUpdateParamsApiUserId
from .play_ht_voice_update_params_quality import PlayHtVoiceUpdateParamsQuality
from .play_ht_voice_update_params_speed import PlayHtVoiceUpdateParamsSpeed
from .play_ht_voice_update_params_temperature import PlayHtVoiceUpdateParamsTemperature
from .play_ht_voice_update_params_version import PlayHtVoiceUpdateParamsVersion
from .play_ht_voice_update_params_voice_id import PlayHtVoiceUpdateParamsVoiceId
from .play_ht_voice_version import PlayHtVoiceVersion
Expand Down Expand Up @@ -469,11 +473,15 @@
"PlanType",
"PlayHtVoice",
"PlayHtVoiceParams",
"PlayHtVoiceParamsQuality",
"PlayHtVoiceParamsVersion",
"PlayHtVoiceQuality",
"PlayHtVoiceUpdateParams",
"PlayHtVoiceUpdateParamsApiKey",
"PlayHtVoiceUpdateParamsApiUserId",
"PlayHtVoiceUpdateParamsQuality",
"PlayHtVoiceUpdateParamsSpeed",
"PlayHtVoiceUpdateParamsTemperature",
"PlayHtVoiceUpdateParamsVersion",
"PlayHtVoiceUpdateParamsVoiceId",
"PlayHtVoiceVersion",
Expand Down
3 changes: 3 additions & 0 deletions src/vocode/types/play_ht_voice.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import pydantic

from ..core.datetime_utils import serialize_datetime
from .play_ht_voice_quality import PlayHtVoiceQuality
from .play_ht_voice_version import PlayHtVoiceVersion


Expand All @@ -17,6 +18,8 @@ class PlayHtVoice(pydantic.BaseModel):
api_key: typing.Optional[str]
version: typing.Optional[PlayHtVoiceVersion]
speed: typing.Optional[float]
quality: typing.Optional[PlayHtVoiceQuality]
temperature: typing.Optional[float]

def json(self, **kwargs: typing.Any) -> str:
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
Expand Down
37 changes: 37 additions & 0 deletions src/vocode/types/play_ht_voice_params_quality.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# This file was auto-generated by Fern from our API Definition.

import enum
import typing

T_Result = typing.TypeVar("T_Result")


class PlayHtVoiceParamsQuality(str, enum.Enum):
FASTER = "faster"
DRAFT = "draft"
LOW = "low"
MEDIUM = "medium"
HIGH = "high"
PREMIUM = "premium"

def visit(
self,
faster: typing.Callable[[], T_Result],
draft: typing.Callable[[], T_Result],
low: typing.Callable[[], T_Result],
medium: typing.Callable[[], T_Result],
high: typing.Callable[[], T_Result],
premium: typing.Callable[[], T_Result],
) -> T_Result:
if self is PlayHtVoiceParamsQuality.FASTER:
return faster()
if self is PlayHtVoiceParamsQuality.DRAFT:
return draft()
if self is PlayHtVoiceParamsQuality.LOW:
return low()
if self is PlayHtVoiceParamsQuality.MEDIUM:
return medium()
if self is PlayHtVoiceParamsQuality.HIGH:
return high()
if self is PlayHtVoiceParamsQuality.PREMIUM:
return premium()
37 changes: 37 additions & 0 deletions src/vocode/types/play_ht_voice_quality.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# This file was auto-generated by Fern from our API Definition.

import enum
import typing

T_Result = typing.TypeVar("T_Result")


class PlayHtVoiceQuality(str, enum.Enum):
FASTER = "faster"
DRAFT = "draft"
LOW = "low"
MEDIUM = "medium"
HIGH = "high"
PREMIUM = "premium"

def visit(
self,
faster: typing.Callable[[], T_Result],
draft: typing.Callable[[], T_Result],
low: typing.Callable[[], T_Result],
medium: typing.Callable[[], T_Result],
high: typing.Callable[[], T_Result],
premium: typing.Callable[[], T_Result],
) -> T_Result:
if self is PlayHtVoiceQuality.FASTER:
return faster()
if self is PlayHtVoiceQuality.DRAFT:
return draft()
if self is PlayHtVoiceQuality.LOW:
return low()
if self is PlayHtVoiceQuality.MEDIUM:
return medium()
if self is PlayHtVoiceQuality.HIGH:
return high()
if self is PlayHtVoiceQuality.PREMIUM:
return premium()
37 changes: 37 additions & 0 deletions src/vocode/types/play_ht_voice_update_params_quality.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# This file was auto-generated by Fern from our API Definition.

import enum
import typing

T_Result = typing.TypeVar("T_Result")


class PlayHtVoiceUpdateParamsQuality(str, enum.Enum):
FASTER = "faster"
DRAFT = "draft"
LOW = "low"
MEDIUM = "medium"
HIGH = "high"
PREMIUM = "premium"

def visit(
self,
faster: typing.Callable[[], T_Result],
draft: typing.Callable[[], T_Result],
low: typing.Callable[[], T_Result],
medium: typing.Callable[[], T_Result],
high: typing.Callable[[], T_Result],
premium: typing.Callable[[], T_Result],
) -> T_Result:
if self is PlayHtVoiceUpdateParamsQuality.FASTER:
return faster()
if self is PlayHtVoiceUpdateParamsQuality.DRAFT:
return draft()
if self is PlayHtVoiceUpdateParamsQuality.LOW:
return low()
if self is PlayHtVoiceUpdateParamsQuality.MEDIUM:
return medium()
if self is PlayHtVoiceUpdateParamsQuality.HIGH:
return high()
if self is PlayHtVoiceUpdateParamsQuality.PREMIUM:
return premium()
7 changes: 7 additions & 0 deletions src/vocode/types/play_ht_voice_update_params_temperature.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This file was auto-generated by Fern from our API Definition.

import typing

from .undefined import Undefined

PlayHtVoiceUpdateParamsTemperature = typing.Union[float, Undefined]

0 comments on commit 302b8a1

Please sign in to comment.