Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .fern/metadata.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"cliVersion": "4.62.5",
"cliVersion": "4.65.2",
"generatorName": "fernapi/fern-python-sdk",
"generatorVersion": "4.61.0",
"generatorConfig": {
Expand Down Expand Up @@ -64,6 +64,6 @@
}
]
},
"originGitCommit": "a07a0deaa640e8b286f9c8e4e47426b37a083a67",
"sdkVersion": "0.13.11"
"originGitCommit": "4d3b0e268ae51b18618f73109de010b707efad88",
"sdkVersion": "0.13.12"
}
365 changes: 182 additions & 183 deletions poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ dynamic = ["version"]

[tool.poetry]
name = "hume"
version = "0.13.11"
version = "0.13.12"
description = "A Python SDK for Hume AI"
readme = "README.md"
authors = []
Expand Down
36 changes: 18 additions & 18 deletions src/hume/base_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,18 +81,10 @@ def __init__(
timeout=_defaulted_timeout,
logging=logging,
)
self._empathic_voice: typing.Optional[EmpathicVoiceClient] = None
self._tts: typing.Optional[TtsClient] = None
self._empathic_voice: typing.Optional[EmpathicVoiceClient] = None
self._expression_measurement: typing.Optional[ExpressionMeasurementClient] = None

@property
def empathic_voice(self):
if self._empathic_voice is None:
from .empathic_voice.client import EmpathicVoiceClient # noqa: E402

self._empathic_voice = EmpathicVoiceClient(client_wrapper=self._client_wrapper)
return self._empathic_voice

@property
def tts(self):
if self._tts is None:
Expand All @@ -101,6 +93,14 @@ def tts(self):
self._tts = TtsClient(client_wrapper=self._client_wrapper)
return self._tts

@property
def empathic_voice(self):
if self._empathic_voice is None:
from .empathic_voice.client import EmpathicVoiceClient # noqa: E402

self._empathic_voice = EmpathicVoiceClient(client_wrapper=self._client_wrapper)
return self._empathic_voice

@property
def expression_measurement(self):
if self._expression_measurement is None:
Expand Down Expand Up @@ -176,18 +176,10 @@ def __init__(
timeout=_defaulted_timeout,
logging=logging,
)
self._empathic_voice: typing.Optional[AsyncEmpathicVoiceClient] = None
self._tts: typing.Optional[AsyncTtsClient] = None
self._empathic_voice: typing.Optional[AsyncEmpathicVoiceClient] = None
self._expression_measurement: typing.Optional[AsyncExpressionMeasurementClient] = None

@property
def empathic_voice(self):
if self._empathic_voice is None:
from .empathic_voice.client import AsyncEmpathicVoiceClient # noqa: E402

self._empathic_voice = AsyncEmpathicVoiceClient(client_wrapper=self._client_wrapper)
return self._empathic_voice

@property
def tts(self):
if self._tts is None:
Expand All @@ -196,6 +188,14 @@ def tts(self):
self._tts = AsyncTtsClient(client_wrapper=self._client_wrapper)
return self._tts

@property
def empathic_voice(self):
if self._empathic_voice is None:
from .empathic_voice.client import AsyncEmpathicVoiceClient # noqa: E402

self._empathic_voice = AsyncEmpathicVoiceClient(client_wrapper=self._client_wrapper)
return self._empathic_voice

@property
def expression_measurement(self):
if self._expression_measurement is None:
Expand Down
4 changes: 2 additions & 2 deletions src/hume/core/client_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ def get_headers(self) -> typing.Dict[str, str]:
import platform

headers: typing.Dict[str, str] = {
"User-Agent": "hume/0.13.11",
"User-Agent": "hume/0.13.12",
"X-Fern-Language": "Python",
"X-Fern-Runtime": f"python/{platform.python_version()}",
"X-Fern-Platform": f"{platform.system().lower()}/{platform.release()}",
"X-Fern-SDK-Name": "hume",
"X-Fern-SDK-Version": "0.13.11",
"X-Fern-SDK-Version": "0.13.12",
**(self.get_custom_headers() or {}),
}
if self.api_key is not None:
Expand Down
6 changes: 6 additions & 0 deletions src/hume/tts/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from .types import (
AudioEncoding,
AudioFormatType,
Context,
ErrorResponse,
Format,
FormatMp3,
Expand All @@ -21,6 +22,7 @@
PostedContextWithGenerationId,
PostedContextWithUtterances,
PostedTts,
PostedTtsStream,
PostedUtterance,
PostedUtteranceVoice,
PostedUtteranceVoiceWithId,
Expand All @@ -46,6 +48,7 @@
"AudioEncoding": ".types",
"AudioFormatType": ".types",
"BadRequestError": ".errors",
"Context": ".types",
"ErrorResponse": ".types",
"Format": ".types",
"FormatMp3": ".types",
Expand All @@ -58,6 +61,7 @@
"PostedContextWithGenerationId": ".types",
"PostedContextWithUtterances": ".types",
"PostedTts": ".types",
"PostedTtsStream": ".types",
"PostedUtterance": ".types",
"PostedUtteranceVoice": ".types",
"PostedUtteranceVoiceWithId": ".types",
Expand Down Expand Up @@ -107,6 +111,7 @@ def __dir__():
"AudioEncoding",
"AudioFormatType",
"BadRequestError",
"Context",
"ErrorResponse",
"Format",
"FormatMp3",
Expand All @@ -119,6 +124,7 @@ def __dir__():
"PostedContextWithGenerationId",
"PostedContextWithUtterances",
"PostedTts",
"PostedTtsStream",
"PostedUtterance",
"PostedUtteranceVoice",
"PostedUtteranceVoiceWithId",
Expand Down
32 changes: 0 additions & 32 deletions src/hume/tts/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ def synthesize_json(
split_utterances: typing.Optional[bool] = OMIT,
strip_headers: typing.Optional[bool] = OMIT,
version: typing.Optional[OctaveVersion] = OMIT,
instant_mode: typing.Optional[bool] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> ReturnTts:
"""
Expand Down Expand Up @@ -101,8 +100,6 @@ def synthesize_json(

For a comparison of Octave versions, see the [Octave versions](/docs/text-to-speech-tts/overview#octave-versions) section in the TTS overview.

instant_mode : typing.Optional[bool]

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

Expand Down Expand Up @@ -147,7 +144,6 @@ def synthesize_json(
split_utterances=split_utterances,
strip_headers=strip_headers,
version=version,
instant_mode=instant_mode,
request_options=request_options,
)
return _response.data
Expand All @@ -163,7 +159,6 @@ def synthesize_file(
split_utterances: typing.Optional[bool] = OMIT,
strip_headers: typing.Optional[bool] = OMIT,
version: typing.Optional[OctaveVersion] = OMIT,
instant_mode: typing.Optional[bool] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> typing.Iterator[bytes]:
"""
Expand Down Expand Up @@ -211,8 +206,6 @@ def synthesize_file(

For a comparison of Octave versions, see the [Octave versions](/docs/text-to-speech-tts/overview#octave-versions) section in the TTS overview.

instant_mode : typing.Optional[bool]

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.

Expand Down Expand Up @@ -252,7 +245,6 @@ def synthesize_file(
split_utterances=split_utterances,
strip_headers=strip_headers,
version=version,
instant_mode=instant_mode,
request_options=request_options,
) as r:
yield from r.data
Expand All @@ -268,7 +260,6 @@ def synthesize_file_streaming(
split_utterances: typing.Optional[bool] = OMIT,
strip_headers: typing.Optional[bool] = OMIT,
version: typing.Optional[OctaveVersion] = OMIT,
instant_mode: typing.Optional[bool] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> typing.Iterator[bytes]:
"""
Expand Down Expand Up @@ -314,8 +305,6 @@ def synthesize_file_streaming(

For a comparison of Octave versions, see the [Octave versions](/docs/text-to-speech-tts/overview#octave-versions) section in the TTS overview.

instant_mode : typing.Optional[bool]

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.

Expand Down Expand Up @@ -353,7 +342,6 @@ def synthesize_file_streaming(
split_utterances=split_utterances,
strip_headers=strip_headers,
version=version,
instant_mode=instant_mode,
request_options=request_options,
) as r:
yield from r.data
Expand All @@ -369,7 +357,6 @@ def synthesize_json_streaming(
split_utterances: typing.Optional[bool] = OMIT,
strip_headers: typing.Optional[bool] = OMIT,
version: typing.Optional[OctaveVersion] = OMIT,
instant_mode: typing.Optional[bool] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> typing.Iterator[TtsOutput]:
"""
Expand Down Expand Up @@ -417,8 +404,6 @@ def synthesize_json_streaming(

For a comparison of Octave versions, see the [Octave versions](/docs/text-to-speech-tts/overview#octave-versions) section in the TTS overview.

instant_mode : typing.Optional[bool]

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

Expand Down Expand Up @@ -458,7 +443,6 @@ def synthesize_json_streaming(
split_utterances=split_utterances,
strip_headers=strip_headers,
version=version,
instant_mode=instant_mode,
request_options=request_options,
) as r:
yield from r.data
Expand Down Expand Up @@ -620,7 +604,6 @@ async def synthesize_json(
split_utterances: typing.Optional[bool] = OMIT,
strip_headers: typing.Optional[bool] = OMIT,
version: typing.Optional[OctaveVersion] = OMIT,
instant_mode: typing.Optional[bool] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> ReturnTts:
"""
Expand Down Expand Up @@ -668,8 +651,6 @@ async def synthesize_json(

For a comparison of Octave versions, see the [Octave versions](/docs/text-to-speech-tts/overview#octave-versions) section in the TTS overview.

instant_mode : typing.Optional[bool]

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

Expand Down Expand Up @@ -722,7 +703,6 @@ async def main() -> None:
split_utterances=split_utterances,
strip_headers=strip_headers,
version=version,
instant_mode=instant_mode,
request_options=request_options,
)
return _response.data
Expand All @@ -738,7 +718,6 @@ async def synthesize_file(
split_utterances: typing.Optional[bool] = OMIT,
strip_headers: typing.Optional[bool] = OMIT,
version: typing.Optional[OctaveVersion] = OMIT,
instant_mode: typing.Optional[bool] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> typing.AsyncIterator[bytes]:
"""
Expand Down Expand Up @@ -786,8 +765,6 @@ async def synthesize_file(

For a comparison of Octave versions, see the [Octave versions](/docs/text-to-speech-tts/overview#octave-versions) section in the TTS overview.

instant_mode : typing.Optional[bool]

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.

Expand Down Expand Up @@ -835,7 +812,6 @@ async def main() -> None:
split_utterances=split_utterances,
strip_headers=strip_headers,
version=version,
instant_mode=instant_mode,
request_options=request_options,
) as r:
async for _chunk in r.data:
Expand All @@ -852,7 +828,6 @@ async def synthesize_file_streaming(
split_utterances: typing.Optional[bool] = OMIT,
strip_headers: typing.Optional[bool] = OMIT,
version: typing.Optional[OctaveVersion] = OMIT,
instant_mode: typing.Optional[bool] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> typing.AsyncIterator[bytes]:
"""
Expand Down Expand Up @@ -898,8 +873,6 @@ async def synthesize_file_streaming(

For a comparison of Octave versions, see the [Octave versions](/docs/text-to-speech-tts/overview#octave-versions) section in the TTS overview.

instant_mode : typing.Optional[bool]

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.

Expand Down Expand Up @@ -945,7 +918,6 @@ async def main() -> None:
split_utterances=split_utterances,
strip_headers=strip_headers,
version=version,
instant_mode=instant_mode,
request_options=request_options,
) as r:
async for _chunk in r.data:
Expand All @@ -962,7 +934,6 @@ async def synthesize_json_streaming(
split_utterances: typing.Optional[bool] = OMIT,
strip_headers: typing.Optional[bool] = OMIT,
version: typing.Optional[OctaveVersion] = OMIT,
instant_mode: typing.Optional[bool] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> typing.AsyncIterator[TtsOutput]:
"""
Expand Down Expand Up @@ -1010,8 +981,6 @@ async def synthesize_json_streaming(

For a comparison of Octave versions, see the [Octave versions](/docs/text-to-speech-tts/overview#octave-versions) section in the TTS overview.

instant_mode : typing.Optional[bool]

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

Expand Down Expand Up @@ -1059,7 +1028,6 @@ async def main() -> None:
split_utterances=split_utterances,
strip_headers=strip_headers,
version=version,
instant_mode=instant_mode,
request_options=request_options,
) as r:
async for _chunk in r.data:
Expand Down
Loading
Loading