Skip to content

Commit da116f0

Browse files
committed
Release 0.1.1
1 parent 715d4fa commit da116f0

38 files changed

+772
-6
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@fern-api/hume",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"private": false,
55
"repository": "https://github.com/fern-hume/hume-typescript-sdk",
66
"main": "./index.js",

src/Client.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export class HumeClient {
7373
"X-Hume-Api-Key": await core.Supplier.get(this._options.apiKey),
7474
"X-Fern-Language": "JavaScript",
7575
"X-Fern-SDK-Name": "@fern-api/hume",
76-
"X-Fern-SDK-Version": "0.1.0",
76+
"X-Fern-SDK-Version": "0.1.1",
7777
},
7878
contentType: "application/json",
7979
queryParameters: _queryParams,
@@ -128,7 +128,7 @@ export class HumeClient {
128128
"X-Hume-Api-Key": await core.Supplier.get(this._options.apiKey),
129129
"X-Fern-Language": "JavaScript",
130130
"X-Fern-SDK-Name": "@fern-api/hume",
131-
"X-Fern-SDK-Version": "0.1.0",
131+
"X-Fern-SDK-Version": "0.1.1",
132132
},
133133
contentType: "application/json",
134134
body: await serializers.BaseRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -183,7 +183,7 @@ export class HumeClient {
183183
"X-Hume-Api-Key": await core.Supplier.get(this._options.apiKey),
184184
"X-Fern-Language": "JavaScript",
185185
"X-Fern-SDK-Name": "@fern-api/hume",
186-
"X-Fern-SDK-Version": "0.1.0",
186+
"X-Fern-SDK-Version": "0.1.1",
187187
},
188188
contentType: "application/json",
189189
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -234,7 +234,7 @@ export class HumeClient {
234234
"X-Hume-Api-Key": await core.Supplier.get(this._options.apiKey),
235235
"X-Fern-Language": "JavaScript",
236236
"X-Fern-SDK-Name": "@fern-api/hume",
237-
"X-Fern-SDK-Version": "0.1.0",
237+
"X-Fern-SDK-Version": "0.1.1",
238238
},
239239
contentType: "application/json",
240240
responseType: "blob",
@@ -281,7 +281,7 @@ export class HumeClient {
281281
"X-Hume-Api-Key": await core.Supplier.get(this._options.apiKey),
282282
"X-Fern-Language": "JavaScript",
283283
"X-Fern-SDK-Name": "@fern-api/hume",
284-
"X-Fern-SDK-Version": "0.1.0",
284+
"X-Fern-SDK-Version": "0.1.1",
285285
},
286286
contentType: "application/json",
287287
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,

src/api/types/ModelsError.ts

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
export interface ModelsError {
6+
/** Error message text. */
7+
error?: string;
8+
/** Unique identifier for the error. */
9+
code?: string;
10+
}

src/api/types/ModelsInput.ts

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
import * as Hume from "..";
6+
7+
export interface ModelsInput {
8+
data?: string;
9+
/**
10+
* Configuration used to specify which models should be used and with what settings.
11+
*
12+
*/
13+
models?: Hume.ModelsInputModels;
14+
/**
15+
* Length in milliseconds of streaming sliding window.
16+
*
17+
* Extending the length of this window will prepend media context from past payloads into the current payload.
18+
*
19+
* For example, if on the first payload you send 500ms of data and on the second payload you send an additional 500ms of data, a window of at least 1000ms will allow the model to process all 1000ms of stream data.
20+
*
21+
* A window of 600ms would append the full 500ms of the second payload to the last 100ms of the first payload.
22+
*
23+
* Note: This feature is currently only supported for audio data and audio models. For other file types and models this parameter will be ignored.
24+
*
25+
*/
26+
streamWindowMs?: number;
27+
/**
28+
* Whether to reset the streaming sliding window before processing the current payload.
29+
*
30+
* If this parameter is set to `true` then past context will be deleted before processing the current payload.
31+
*
32+
* Use reset_stream when one audio file is done being processed and you do not want context to leak across files.
33+
*
34+
*/
35+
resetStream?: boolean;
36+
/**
37+
* Set to `true` to enable the data parameter to be parsed as raw text rather than base64 encoded bytes.
38+
* This parameter is useful if you want to send text to be processed by the language model, but it cannot be used with other file types like audio, image, or video.
39+
*
40+
*/
41+
rawText?: boolean;
42+
/**
43+
* Set to `true` to get details about the job.
44+
*
45+
* This parameter can be set in the same payload as data or it can be set without data and models configuration to get the job details between payloads.
46+
*
47+
* This parameter is useful to get the unique job ID.
48+
*
49+
*/
50+
jobDetails?: boolean;
51+
/**
52+
* Pass an arbitrary string as the payload ID and get it back at the top level of the socket response.
53+
*
54+
* This can be useful if you have multiple requests running asynchronously and want to disambiguate responses as they are received.
55+
*
56+
*/
57+
payloadId?: string;
58+
}

src/api/types/ModelsInputModels.ts

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
import * as Hume from "..";
6+
7+
/**
8+
* Configuration used to specify which models should be used and with what settings.
9+
*
10+
*/
11+
export interface ModelsInputModels {
12+
/**
13+
* Configuration for the vocal burst emotion model.
14+
*
15+
* Note: Model configuration is not currently available in streaming.
16+
*
17+
* Please use the default configuration by passing an empty object `{}`.
18+
*
19+
*/
20+
burst?: Record<string, unknown>;
21+
/**
22+
* Configuration for the facial expression emotion model.
23+
*
24+
* Note: Using the `reset_stream` parameter does not have any effect on face identification. A single face identifier cache is maintained over a full session whether `reset_stream` is used or not.
25+
*
26+
*/
27+
face?: Hume.ModelsInputModelsFace;
28+
/**
29+
* Configuration for the facemesh emotion model.
30+
*
31+
* Note: Model configuration is not currently available in streaming.
32+
*
33+
* Please use the default configuration by passing an empty object `{}`.
34+
*
35+
*/
36+
facemesh?: Record<string, unknown>;
37+
/** Configuration for the language emotion model. */
38+
language?: Hume.ModelsInputModelsLanguage;
39+
/**
40+
* Configuration for the speech prosody emotion model.
41+
*
42+
* Note: Model configuration is not currently available in streaming.
43+
*
44+
* Please use the default configuration by passing an empty object `{}`.
45+
*
46+
*/
47+
prosody?: Record<string, unknown>;
48+
}
+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
/**
6+
* Configuration for the facial expression emotion model.
7+
*
8+
* Note: Using the `reset_stream` parameter does not have any effect on face identification. A single face identifier cache is maintained over a full session whether `reset_stream` is used or not.
9+
*
10+
*/
11+
export interface ModelsInputModelsFace {
12+
/** Configuration for FACS predictions. If missing or null, no FACS predictions will be generated. */
13+
facs?: Record<string, unknown>;
14+
/** Configuration for Descriptions predictions. If missing or null, no Descriptions predictions will be generated. */
15+
descriptions?: Record<string, unknown>;
16+
/**
17+
* Whether to return identifiers for faces across frames. If true, unique identifiers will be assigned to face bounding boxes to differentiate different faces. If false, all faces will be tagged with an "unknown" ID.
18+
*
19+
*/
20+
identifyFaces?: boolean;
21+
/**
22+
* Number of frames per second to process. Other frames will be omitted from the response.
23+
*
24+
*/
25+
fpsPred?: number;
26+
/**
27+
* Face detection probability threshold. Faces detected with a probability less than this threshold will be omitted from the response.
28+
*
29+
*/
30+
probThreshold?: number;
31+
/**
32+
* Minimum bounding box side length in pixels to treat as a face. Faces detected with a bounding box side length in pixels less than this threshold will be omitted from the response.
33+
*
34+
*/
35+
minFaceSize?: number;
36+
}
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
/**
6+
* Configuration for the language emotion model.
7+
*/
8+
export interface ModelsInputModelsLanguage {
9+
/** Configuration for sentiment predictions. If missing or null, no sentiment predictions will be generated. */
10+
sentiment?: Record<string, unknown>;
11+
/** Configuration for toxicity predictions. If missing or null, no toxicity predictions will be generated. */
12+
toxicity?: Record<string, unknown>;
13+
/** The granularity at which to generate predictions. Values are `word`, `sentence`, `utterance`, or `passage`. To get a single prediction for the entire text of your streaming payload use `passage`. Default value is `word`. */
14+
granularity?: string;
15+
}

src/api/types/ModelsSuccess.ts

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
import * as Hume from "..";
6+
7+
export interface ModelsSuccess {
8+
/** Response for the vocal burst emotion model. */
9+
burst?: Hume.ModelsSuccessBurst;
10+
/** Response for the facial expression emotion model. */
11+
face?: Hume.ModelsSuccessFace;
12+
/** Response for the facemesh emotion model. */
13+
facemesh?: Hume.ModelsSuccessFacemesh;
14+
/** Response for the language emotion model. */
15+
language?: Hume.ModelsSuccessLanguage;
16+
/** Response for the speech prosody emotion model. */
17+
prosody?: Hume.ModelsSuccessProsody;
18+
}

src/api/types/ModelsSuccessBurst.ts

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
import * as Hume from "..";
6+
7+
/**
8+
* Response for the vocal burst emotion model.
9+
*/
10+
export interface ModelsSuccessBurst {
11+
predictions?: Hume.ModelsSuccessBurstPredictionsItem[];
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
import * as Hume from "..";
6+
7+
export interface ModelsSuccessBurstPredictionsItem {
8+
time?: Hume.TimeRange;
9+
emotions?: Hume.EmotionEmbedding;
10+
}

src/api/types/ModelsSuccessFace.ts

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
import * as Hume from "..";
6+
7+
/**
8+
* Response for the facial expression emotion model.
9+
*/
10+
export interface ModelsSuccessFace {
11+
predictions?: Hume.ModelsSuccessFacePredictionsItem[];
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
import * as Hume from "..";
6+
7+
export interface ModelsSuccessFacePredictionsItem {
8+
/** Frame number */
9+
frame?: number;
10+
/** Time in seconds when face detection occurred. */
11+
time?: number;
12+
bbox?: Hume.BoundingBox;
13+
/** The predicted probability that a detected face was actually a face. */
14+
prob?: number;
15+
/** Identifier for a face. Not that this defaults to `unknown` unless face identification is enabled in the face model configuration. */
16+
faceId?: string;
17+
emotions?: Hume.EmotionEmbedding;
18+
facs?: Hume.EmotionEmbedding;
19+
descriptions?: Hume.EmotionEmbedding;
20+
}
+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
import * as Hume from "..";
6+
7+
/**
8+
* Response for the facemesh emotion model.
9+
*/
10+
export interface ModelsSuccessFacemesh {
11+
predictions?: Hume.ModelsSuccessFacemeshPredictionsItem[];
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
import * as Hume from "..";
6+
7+
export interface ModelsSuccessFacemeshPredictionsItem {
8+
emotions?: Hume.EmotionEmbedding;
9+
}
+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
import * as Hume from "..";
6+
7+
/**
8+
* Response for the language emotion model.
9+
*/
10+
export interface ModelsSuccessLanguage {
11+
predictions?: Hume.ModelsSuccessLanguagePredictionsItem[];
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
import * as Hume from "..";
6+
7+
export interface ModelsSuccessLanguagePredictionsItem {
8+
/** A segment of text (like a word or a sentence). */
9+
text?: string;
10+
position?: Hume.TextPosition;
11+
emotions?: Hume.EmotionEmbedding;
12+
sentiment?: Hume.Sentiment;
13+
toxicity?: Hume.Toxicity;
14+
}

src/api/types/ModelsSuccessProsody.ts

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
import * as Hume from "..";
6+
7+
/**
8+
* Response for the speech prosody emotion model.
9+
*/
10+
export interface ModelsSuccessProsody {
11+
predictions?: Hume.ModelsSuccessProsodyPredictionsItem[];
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
import * as Hume from "..";
6+
7+
export interface ModelsSuccessProsodyPredictionsItem {
8+
time?: Hume.TimeRange;
9+
emotions?: Hume.EmotionEmbedding;
10+
}

src/api/types/ModelsWarning.ts

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
export interface ModelsWarning {
6+
/** Warning message text. */
7+
warning?: string;
8+
/** Unique identifier for the error. */
9+
code?: string;
10+
}

0 commit comments

Comments
 (0)