Skip to content
Closed
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
1 change: 1 addition & 0 deletions .mock/definition/empathic-voice/chat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ channel:
path: /v0/evi/chat
url: prod
auth: false
docs: Chat with Empathic Voice Interface (EVI)
query-parameters:
config_id:
type: optional<string>
Expand Down
1 change: 1 addition & 0 deletions .mock/definition/empathic-voice/configs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -658,6 +658,7 @@ service:
response:
docs: Success
type: text
status-code: 200
errors:
- root.BadRequestError
examples:
Expand Down
1 change: 1 addition & 0 deletions .mock/definition/empathic-voice/prompts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,7 @@ service:
response:
docs: Success
type: text
status-code: 200
errors:
- root.BadRequestError
examples:
Expand Down
2 changes: 2 additions & 0 deletions .mock/definition/empathic-voice/tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,8 @@ service:
content-type: application/json
response:
docs: Success
type: text
status-code: 200
errors:
- root.BadRequestError
examples:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ channel:
path: /v0/stream/models
url: prod
auth: false
display-name: Stream
headers:
X-Hume-Api-Key:
type: string
Expand Down Expand Up @@ -36,8 +35,8 @@ types:
inline: true
StreamModelPredictionsBurstPredictionsItem:
properties:
time: optional<unknown>
emotions: optional<unknown>
time: optional<streamRoot.TimeRange>
emotions: optional<streamRoot.EmotionEmbedding>
source:
openapi: streaming-asyncapi.yml
inline: true
Expand All @@ -56,7 +55,7 @@ types:
time:
type: optional<double>
docs: Time in seconds when face detection occurred.
bbox: optional<unknown>
bbox: optional<streamRoot.StreamBoundingBox>
prob:
type: optional<double>
docs: The predicted probability that a detected face was actually a face.
Expand All @@ -65,9 +64,9 @@ types:
docs: >-
Identifier for a face. Not that this defaults to `unknown` unless face
identification is enabled in the face model configuration.
emotions: optional<unknown>
facs: optional<unknown>
descriptions: optional<unknown>
emotions: optional<streamRoot.EmotionEmbedding>
facs: optional<streamRoot.EmotionEmbedding>
descriptions: optional<streamRoot.EmotionEmbedding>
source:
openapi: streaming-asyncapi.yml
inline: true
Expand All @@ -80,7 +79,7 @@ types:
inline: true
StreamModelPredictionsFacemeshPredictionsItem:
properties:
emotions: optional<unknown>
emotions: optional<streamRoot.EmotionEmbedding>
source:
openapi: streaming-asyncapi.yml
inline: true
Expand All @@ -96,10 +95,10 @@ types:
text:
type: optional<string>
docs: A segment of text (like a word or a sentence).
position: optional<unknown>
emotions: optional<unknown>
sentiment: optional<unknown>
toxicity: optional<unknown>
position: optional<streamRoot.TextPosition>
emotions: optional<streamRoot.EmotionEmbedding>
sentiment: optional<streamRoot.Sentiment>
toxicity: optional<streamRoot.Toxicity>
source:
openapi: streaming-asyncapi.yml
inline: true
Expand All @@ -112,8 +111,8 @@ types:
inline: true
StreamModelPredictionsProsodyPredictionsItem:
properties:
time: optional<unknown>
emotions: optional<unknown>
time: optional<streamRoot.TimeRange>
emotions: optional<streamRoot.EmotionEmbedding>
source:
openapi: streaming-asyncapi.yml
inline: true
Expand Down Expand Up @@ -435,3 +434,5 @@ types:
received.
source:
openapi: streaming-asyncapi.yml
imports:
streamRoot: __package__.yml
2 changes: 1 addition & 1 deletion .mock/definition/tts/voices.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ service:
type: string
docs: >-
Id of the TTS generation (as returned by the [/v0/tts
endpoint](/reference/text-to-speech-evi/synthesize-json#response.body.generations.generation_id))
endpoint](/reference/text-to-speech-tts/synthesize-json#response.body.generations.generation_id))
that should be saved as a voice.
name:
type: string
Expand Down
2 changes: 1 addition & 1 deletion .mock/fern.config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"organization" : "hume",
"version" : "0.53.17"
"version" : "0.56.21"
}
338 changes: 160 additions & 178 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
@@ -1,6 +1,6 @@
[tool.poetry]
name = "hume"
version = "0.7.8"
version = "0.7.9"
description = "A Python SDK for Hume AI"
readme = "README.md"
authors = []
Expand Down
2 changes: 1 addition & 1 deletion reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ client.tts.voices.create(
<dl>
<dd>

**generation_id:** `str` — Id of the TTS generation (as returned by the [/v0/tts endpoint](/reference/text-to-speech-evi/synthesize-json#response.body.generations.generation_id)) that should be saved as a voice.
**generation_id:** `str` — Id of the TTS generation (as returned by the [/v0/tts endpoint](/reference/text-to-speech-tts/synthesize-json#response.body.generations.generation_id)) that should be saved as a voice.

</dd>
</dl>
Expand Down
4 changes: 2 additions & 2 deletions src/hume/expression_measurement/batch/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def list_jobs(
timestamp_ms : typing.Optional[int]
Provide a timestamp in milliseconds to filter jobs.

When combined with the `when` parameter, you can filter jobs before or after the given timestamp. Defaults to the current Unix timestamp if one is not provided.
When combined with the `when` parameter, you can filter jobs before or after the given timestamp. Defaults to the current Unix timestamp if one is not provided.

sort_by : typing.Optional[SortBy]
Specify which timestamp to sort the jobs by.
Expand Down Expand Up @@ -449,7 +449,7 @@ async def list_jobs(
timestamp_ms : typing.Optional[int]
Provide a timestamp in milliseconds to filter jobs.

When combined with the `when` parameter, you can filter jobs before or after the given timestamp. Defaults to the current Unix timestamp if one is not provided.
When combined with the `when` parameter, you can filter jobs before or after the given timestamp. Defaults to the current Unix timestamp if one is not provided.

sort_by : typing.Optional[SortBy]
Specify which timestamp to sort the jobs by.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ class Transcription(UniversalBaseModel):
By default, we use an automated language detection method for our Speech Prosody, Language, and NER models. However, if you know what language is being spoken in your media samples, you can specify it via its BCP-47 tag and potentially obtain more accurate results.

You can specify any of the following languages:

- Chinese: `zh`
- Danish: `da`
- Dutch: `nl`
Expand Down
16 changes: 10 additions & 6 deletions src/hume/expression_measurement/stream/__init__.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
# This file was auto-generated by Fern from our API Definition.

from .types import (
Config,
EmotionEmbedding,
EmotionEmbeddingItem,
JobDetails,
Sentiment,
SentimentItem,
StreamBoundingBox,
TextPosition,
TimeRange,
Toxicity,
ToxicityItem,
)
from . import stream
from .stream import (
Config,
JobDetails,
StreamErrorMessage,
StreamFace,
StreamLanguage,
Expand All @@ -27,10 +34,6 @@
StreamWarningMessage,
StreamWarningMessageJobDetails,
SubscribeEvent,
TextPosition,
TimeRange,
Toxicity,
ToxicityItem,
)

__all__ = [
Expand Down Expand Up @@ -64,4 +67,5 @@
"TimeRange",
"Toxicity",
"ToxicityItem",
"stream",
]
49 changes: 49 additions & 0 deletions src/hume/expression_measurement/stream/stream/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# This file was auto-generated by Fern from our API Definition.

from .types import (
Config,
JobDetails,
StreamErrorMessage,
StreamFace,
StreamLanguage,
StreamModelPredictions,
StreamModelPredictionsBurst,
StreamModelPredictionsBurstPredictionsItem,
StreamModelPredictionsFace,
StreamModelPredictionsFacePredictionsItem,
StreamModelPredictionsFacemesh,
StreamModelPredictionsFacemeshPredictionsItem,
StreamModelPredictionsJobDetails,
StreamModelPredictionsLanguage,
StreamModelPredictionsLanguagePredictionsItem,
StreamModelPredictionsProsody,
StreamModelPredictionsProsodyPredictionsItem,
StreamModelsEndpointPayload,
StreamWarningMessage,
StreamWarningMessageJobDetails,
SubscribeEvent,
)

__all__ = [
"Config",
"JobDetails",
"StreamErrorMessage",
"StreamFace",
"StreamLanguage",
"StreamModelPredictions",
"StreamModelPredictionsBurst",
"StreamModelPredictionsBurstPredictionsItem",
"StreamModelPredictionsFace",
"StreamModelPredictionsFacePredictionsItem",
"StreamModelPredictionsFacemesh",
"StreamModelPredictionsFacemeshPredictionsItem",
"StreamModelPredictionsJobDetails",
"StreamModelPredictionsLanguage",
"StreamModelPredictionsLanguagePredictionsItem",
"StreamModelPredictionsProsody",
"StreamModelPredictionsProsodyPredictionsItem",
"StreamModelsEndpointPayload",
"StreamWarningMessage",
"StreamWarningMessageJobDetails",
"SubscribeEvent",
]
47 changes: 47 additions & 0 deletions src/hume/expression_measurement/stream/stream/types/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# This file was auto-generated by Fern from our API Definition.

from .config import Config
from .job_details import JobDetails
from .stream_error_message import StreamErrorMessage
from .stream_face import StreamFace
from .stream_language import StreamLanguage
from .stream_model_predictions import StreamModelPredictions
from .stream_model_predictions_burst import StreamModelPredictionsBurst
from .stream_model_predictions_burst_predictions_item import StreamModelPredictionsBurstPredictionsItem
from .stream_model_predictions_face import StreamModelPredictionsFace
from .stream_model_predictions_face_predictions_item import StreamModelPredictionsFacePredictionsItem
from .stream_model_predictions_facemesh import StreamModelPredictionsFacemesh
from .stream_model_predictions_facemesh_predictions_item import StreamModelPredictionsFacemeshPredictionsItem
from .stream_model_predictions_job_details import StreamModelPredictionsJobDetails
from .stream_model_predictions_language import StreamModelPredictionsLanguage
from .stream_model_predictions_language_predictions_item import StreamModelPredictionsLanguagePredictionsItem
from .stream_model_predictions_prosody import StreamModelPredictionsProsody
from .stream_model_predictions_prosody_predictions_item import StreamModelPredictionsProsodyPredictionsItem
from .stream_models_endpoint_payload import StreamModelsEndpointPayload
from .stream_warning_message import StreamWarningMessage
from .stream_warning_message_job_details import StreamWarningMessageJobDetails
from .subscribe_event import SubscribeEvent

__all__ = [
"Config",
"JobDetails",
"StreamErrorMessage",
"StreamFace",
"StreamLanguage",
"StreamModelPredictions",
"StreamModelPredictionsBurst",
"StreamModelPredictionsBurstPredictionsItem",
"StreamModelPredictionsFace",
"StreamModelPredictionsFacePredictionsItem",
"StreamModelPredictionsFacemesh",
"StreamModelPredictionsFacemeshPredictionsItem",
"StreamModelPredictionsJobDetails",
"StreamModelPredictionsLanguage",
"StreamModelPredictionsLanguagePredictionsItem",
"StreamModelPredictionsProsody",
"StreamModelPredictionsProsodyPredictionsItem",
"StreamModelsEndpointPayload",
"StreamWarningMessage",
"StreamWarningMessageJobDetails",
"SubscribeEvent",
]
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# This file was auto-generated by Fern from our API Definition.

from ....core.pydantic_utilities import UniversalBaseModel
from .....core.pydantic_utilities import UniversalBaseModel
import typing
import pydantic
from .stream_face import StreamFace
from .stream_language import StreamLanguage
from ....core.pydantic_utilities import IS_PYDANTIC_V2
from .....core.pydantic_utilities import IS_PYDANTIC_V2


class Config(UniversalBaseModel):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# This file was auto-generated by Fern from our API Definition.

from ....core.pydantic_utilities import UniversalBaseModel
from .....core.pydantic_utilities import UniversalBaseModel
import typing
import pydantic
from ....core.pydantic_utilities import IS_PYDANTIC_V2
from .....core.pydantic_utilities import IS_PYDANTIC_V2


class JobDetails(UniversalBaseModel):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# This file was auto-generated by Fern from our API Definition.

from ....core.pydantic_utilities import UniversalBaseModel
from .....core.pydantic_utilities import UniversalBaseModel
import typing
import pydantic
from .job_details import JobDetails
from ....core.pydantic_utilities import IS_PYDANTIC_V2
from .....core.pydantic_utilities import IS_PYDANTIC_V2


class StreamErrorMessage(UniversalBaseModel):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# This file was auto-generated by Fern from our API Definition.

from ....core.pydantic_utilities import UniversalBaseModel
from .....core.pydantic_utilities import UniversalBaseModel
import typing
import pydantic
from ....core.pydantic_utilities import IS_PYDANTIC_V2
from .....core.pydantic_utilities import IS_PYDANTIC_V2


class StreamFace(UniversalBaseModel):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# This file was auto-generated by Fern from our API Definition.

from ....core.pydantic_utilities import UniversalBaseModel
from .....core.pydantic_utilities import UniversalBaseModel
import typing
import pydantic
from ....core.pydantic_utilities import IS_PYDANTIC_V2
from .....core.pydantic_utilities import IS_PYDANTIC_V2


class StreamLanguage(UniversalBaseModel):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file was auto-generated by Fern from our API Definition.

from ....core.pydantic_utilities import UniversalBaseModel
from .....core.pydantic_utilities import UniversalBaseModel
import typing
import pydantic
from .stream_model_predictions_job_details import StreamModelPredictionsJobDetails
Expand All @@ -9,7 +9,7 @@
from .stream_model_predictions_facemesh import StreamModelPredictionsFacemesh
from .stream_model_predictions_language import StreamModelPredictionsLanguage
from .stream_model_predictions_prosody import StreamModelPredictionsProsody
from ....core.pydantic_utilities import IS_PYDANTIC_V2
from .....core.pydantic_utilities import IS_PYDANTIC_V2


class StreamModelPredictions(UniversalBaseModel):
Expand Down
Loading
Loading