@meetkai/mka1 0.55.18 → 0.55.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/mcp-server.js +110 -13
- package/bin/mcp-server.js.map +17 -17
- package/dist/commonjs/funcs/llmSpeechGetTranscriptionHistoryContent.d.ts +20 -1
- package/dist/commonjs/funcs/llmSpeechGetTranscriptionHistoryContent.d.ts.map +1 -1
- package/dist/commonjs/funcs/llmSpeechGetTranscriptionHistoryContent.js +22 -3
- package/dist/commonjs/funcs/llmSpeechGetTranscriptionHistoryContent.js.map +1 -1
- package/dist/commonjs/funcs/llmSpeechSpeak.d.ts +1 -0
- package/dist/commonjs/funcs/llmSpeechSpeak.d.ts.map +1 -1
- package/dist/commonjs/funcs/llmSpeechSpeak.js +1 -0
- package/dist/commonjs/funcs/llmSpeechSpeak.js.map +1 -1
- package/dist/commonjs/funcs/llmSpeechSpeakStreaming.d.ts +1 -0
- package/dist/commonjs/funcs/llmSpeechSpeakStreaming.d.ts.map +1 -1
- package/dist/commonjs/funcs/llmSpeechSpeakStreaming.js +1 -0
- package/dist/commonjs/funcs/llmSpeechSpeakStreaming.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/mcp-server/tools/llmSpeechSpeak.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/llmSpeechSpeak.js +1 -0
- package/dist/commonjs/mcp-server/tools/llmSpeechSpeak.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/llmSpeechSpeakStreaming.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/llmSpeechSpeakStreaming.js +1 -0
- package/dist/commonjs/mcp-server/tools/llmSpeechSpeakStreaming.js.map +1 -1
- package/dist/commonjs/models/components/addcatalogmodelrequest.d.ts +1 -0
- package/dist/commonjs/models/components/addcatalogmodelrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/addcatalogmodelrequest.js +1 -0
- package/dist/commonjs/models/components/addcatalogmodelrequest.js.map +1 -1
- package/dist/commonjs/models/components/texttospeechrequest.d.ts +5 -0
- package/dist/commonjs/models/components/texttospeechrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/texttospeechrequest.js +2 -0
- package/dist/commonjs/models/components/texttospeechrequest.js.map +1 -1
- package/dist/commonjs/models/components/texttospeechstreamingrequest.d.ts +5 -0
- package/dist/commonjs/models/components/texttospeechstreamingrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/texttospeechstreamingrequest.js +2 -0
- package/dist/commonjs/models/components/texttospeechstreamingrequest.js.map +1 -1
- package/dist/commonjs/models/components/updatecatalogmodelrequest.d.ts +1 -0
- package/dist/commonjs/models/components/updatecatalogmodelrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/updatecatalogmodelrequest.js +1 -0
- package/dist/commonjs/models/components/updatecatalogmodelrequest.js.map +1 -1
- package/dist/commonjs/models/operations/getmodel.d.ts +41 -0
- package/dist/commonjs/models/operations/getmodel.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getmodel.js +52 -1
- package/dist/commonjs/models/operations/getmodel.js.map +1 -1
- package/dist/commonjs/models/operations/getspeechtotexthistorycontent.d.ts +9 -0
- package/dist/commonjs/models/operations/getspeechtotexthistorycontent.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getspeechtotexthistorycontent.js +45 -1
- package/dist/commonjs/models/operations/getspeechtotexthistorycontent.js.map +1 -1
- package/dist/commonjs/models/operations/listmodels.d.ts +41 -0
- package/dist/commonjs/models/operations/listmodels.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listmodels.js +49 -1
- package/dist/commonjs/models/operations/listmodels.js.map +1 -1
- package/dist/commonjs/react-query/llmSpeechGetTranscriptionHistoryContent.core.d.ts +8 -3
- package/dist/commonjs/react-query/llmSpeechGetTranscriptionHistoryContent.core.d.ts.map +1 -1
- package/dist/commonjs/react-query/llmSpeechGetTranscriptionHistoryContent.core.js.map +1 -1
- package/dist/commonjs/react-query/llmSpeechGetTranscriptionHistoryContent.d.ts +1 -0
- package/dist/commonjs/react-query/llmSpeechGetTranscriptionHistoryContent.d.ts.map +1 -1
- package/dist/commonjs/react-query/llmSpeechGetTranscriptionHistoryContent.js +3 -1
- package/dist/commonjs/react-query/llmSpeechGetTranscriptionHistoryContent.js.map +1 -1
- package/dist/commonjs/react-query/llmSpeechSpeak.d.ts +1 -0
- package/dist/commonjs/react-query/llmSpeechSpeak.d.ts.map +1 -1
- package/dist/commonjs/react-query/llmSpeechSpeak.js +1 -0
- package/dist/commonjs/react-query/llmSpeechSpeak.js.map +1 -1
- package/dist/commonjs/react-query/llmSpeechSpeakStreaming.d.ts +1 -0
- package/dist/commonjs/react-query/llmSpeechSpeakStreaming.d.ts.map +1 -1
- package/dist/commonjs/react-query/llmSpeechSpeakStreaming.js +1 -0
- package/dist/commonjs/react-query/llmSpeechSpeakStreaming.js.map +1 -1
- package/dist/commonjs/sdk/speech.d.ts +7 -1
- package/dist/commonjs/sdk/speech.d.ts.map +1 -1
- package/dist/commonjs/sdk/speech.js +5 -1
- package/dist/commonjs/sdk/speech.js.map +1 -1
- package/dist/esm/funcs/llmSpeechGetTranscriptionHistoryContent.d.ts +20 -1
- package/dist/esm/funcs/llmSpeechGetTranscriptionHistoryContent.d.ts.map +1 -1
- package/dist/esm/funcs/llmSpeechGetTranscriptionHistoryContent.js +21 -3
- package/dist/esm/funcs/llmSpeechGetTranscriptionHistoryContent.js.map +1 -1
- package/dist/esm/funcs/llmSpeechSpeak.d.ts +1 -0
- package/dist/esm/funcs/llmSpeechSpeak.d.ts.map +1 -1
- package/dist/esm/funcs/llmSpeechSpeak.js +1 -0
- package/dist/esm/funcs/llmSpeechSpeak.js.map +1 -1
- package/dist/esm/funcs/llmSpeechSpeakStreaming.d.ts +1 -0
- package/dist/esm/funcs/llmSpeechSpeakStreaming.d.ts.map +1 -1
- package/dist/esm/funcs/llmSpeechSpeakStreaming.js +1 -0
- package/dist/esm/funcs/llmSpeechSpeakStreaming.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/mcp-server/tools/llmSpeechSpeak.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/llmSpeechSpeak.js +1 -0
- package/dist/esm/mcp-server/tools/llmSpeechSpeak.js.map +1 -1
- package/dist/esm/mcp-server/tools/llmSpeechSpeakStreaming.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/llmSpeechSpeakStreaming.js +1 -0
- package/dist/esm/mcp-server/tools/llmSpeechSpeakStreaming.js.map +1 -1
- package/dist/esm/models/components/addcatalogmodelrequest.d.ts +1 -0
- package/dist/esm/models/components/addcatalogmodelrequest.d.ts.map +1 -1
- package/dist/esm/models/components/addcatalogmodelrequest.js +1 -0
- package/dist/esm/models/components/addcatalogmodelrequest.js.map +1 -1
- package/dist/esm/models/components/texttospeechrequest.d.ts +5 -0
- package/dist/esm/models/components/texttospeechrequest.d.ts.map +1 -1
- package/dist/esm/models/components/texttospeechrequest.js +2 -0
- package/dist/esm/models/components/texttospeechrequest.js.map +1 -1
- package/dist/esm/models/components/texttospeechstreamingrequest.d.ts +5 -0
- package/dist/esm/models/components/texttospeechstreamingrequest.d.ts.map +1 -1
- package/dist/esm/models/components/texttospeechstreamingrequest.js +2 -0
- package/dist/esm/models/components/texttospeechstreamingrequest.js.map +1 -1
- package/dist/esm/models/components/updatecatalogmodelrequest.d.ts +1 -0
- package/dist/esm/models/components/updatecatalogmodelrequest.d.ts.map +1 -1
- package/dist/esm/models/components/updatecatalogmodelrequest.js +1 -0
- package/dist/esm/models/components/updatecatalogmodelrequest.js.map +1 -1
- package/dist/esm/models/operations/getmodel.d.ts +41 -0
- package/dist/esm/models/operations/getmodel.d.ts.map +1 -1
- package/dist/esm/models/operations/getmodel.js +47 -0
- package/dist/esm/models/operations/getmodel.js.map +1 -1
- package/dist/esm/models/operations/getspeechtotexthistorycontent.d.ts +9 -0
- package/dist/esm/models/operations/getspeechtotexthistorycontent.d.ts.map +1 -1
- package/dist/esm/models/operations/getspeechtotexthistorycontent.js +42 -0
- package/dist/esm/models/operations/getspeechtotexthistorycontent.js.map +1 -1
- package/dist/esm/models/operations/listmodels.d.ts +41 -0
- package/dist/esm/models/operations/listmodels.d.ts.map +1 -1
- package/dist/esm/models/operations/listmodels.js +44 -0
- package/dist/esm/models/operations/listmodels.js.map +1 -1
- package/dist/esm/react-query/llmSpeechGetTranscriptionHistoryContent.core.d.ts +8 -3
- package/dist/esm/react-query/llmSpeechGetTranscriptionHistoryContent.core.d.ts.map +1 -1
- package/dist/esm/react-query/llmSpeechGetTranscriptionHistoryContent.core.js +1 -1
- package/dist/esm/react-query/llmSpeechGetTranscriptionHistoryContent.core.js.map +1 -1
- package/dist/esm/react-query/llmSpeechGetTranscriptionHistoryContent.d.ts +1 -0
- package/dist/esm/react-query/llmSpeechGetTranscriptionHistoryContent.d.ts.map +1 -1
- package/dist/esm/react-query/llmSpeechGetTranscriptionHistoryContent.js +1 -0
- package/dist/esm/react-query/llmSpeechGetTranscriptionHistoryContent.js.map +1 -1
- package/dist/esm/react-query/llmSpeechSpeak.d.ts +1 -0
- package/dist/esm/react-query/llmSpeechSpeak.d.ts.map +1 -1
- package/dist/esm/react-query/llmSpeechSpeak.js +1 -0
- package/dist/esm/react-query/llmSpeechSpeak.js.map +1 -1
- package/dist/esm/react-query/llmSpeechSpeakStreaming.d.ts +1 -0
- package/dist/esm/react-query/llmSpeechSpeakStreaming.d.ts.map +1 -1
- package/dist/esm/react-query/llmSpeechSpeakStreaming.js +1 -0
- package/dist/esm/react-query/llmSpeechSpeakStreaming.js.map +1 -1
- package/dist/esm/sdk/speech.d.ts +7 -1
- package/dist/esm/sdk/speech.d.ts.map +1 -1
- package/dist/esm/sdk/speech.js +4 -1
- package/dist/esm/sdk/speech.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/llmSpeechGetTranscriptionHistoryContent.ts +103 -8
- package/src/funcs/llmSpeechSpeak.ts +1 -0
- package/src/funcs/llmSpeechSpeakStreaming.ts +1 -0
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools/llmSpeechSpeak.ts +1 -0
- package/src/mcp-server/tools/llmSpeechSpeakStreaming.ts +1 -0
- package/src/models/components/addcatalogmodelrequest.ts +1 -0
- package/src/models/components/texttospeechrequest.ts +7 -0
- package/src/models/components/texttospeechstreamingrequest.ts +7 -0
- package/src/models/components/updatecatalogmodelrequest.ts +1 -0
- package/src/models/operations/getmodel.ts +96 -0
- package/src/models/operations/getspeechtotexthistorycontent.ts +100 -0
- package/src/models/operations/listmodels.ts +105 -0
- package/src/react-query/llmSpeechGetTranscriptionHistoryContent.core.ts +12 -6
- package/src/react-query/llmSpeechGetTranscriptionHistoryContent.ts +2 -0
- package/src/react-query/llmSpeechSpeak.ts +1 -0
- package/src/react-query/llmSpeechSpeakStreaming.ts +1 -0
- package/src/sdk/speech.ts +12 -3
|
@@ -69,6 +69,17 @@ export const ListModelsWeights = {
|
|
|
69
69
|
} as const;
|
|
70
70
|
export type ListModelsWeights = ClosedEnum<typeof ListModelsWeights>;
|
|
71
71
|
|
|
72
|
+
export type TtsVoices = {
|
|
73
|
+
id: string;
|
|
74
|
+
name: string;
|
|
75
|
+
language: string;
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
export type ListModelsTts = {
|
|
79
|
+
defaultVoice: { [k: string]: string };
|
|
80
|
+
voices: Array<TtsVoices>;
|
|
81
|
+
};
|
|
82
|
+
|
|
72
83
|
/**
|
|
73
84
|
* `active`, `deprecated` (still served, retirement announced or pending) or `retired` (the retirement date has passed). Informational in this version: the gateway does not yet refuse a retired model.
|
|
74
85
|
*/
|
|
@@ -196,6 +207,10 @@ export type ListModelsData = {
|
|
|
196
207
|
* Languages the model is intended for, as ISO 639-1 codes, mirroring `modelCard.languages`. Null when unrecorded.
|
|
197
208
|
*/
|
|
198
209
|
languages: Array<string> | null;
|
|
210
|
+
/**
|
|
211
|
+
* Available public TTS voices and default voice IDs by language. Provider voice identifiers are not exposed.
|
|
212
|
+
*/
|
|
213
|
+
tts: ListModelsTts | null;
|
|
199
214
|
/**
|
|
200
215
|
* Known limitations in one short paragraph, mirroring `modelCard.limitations`. Null when unrecorded.
|
|
201
216
|
*/
|
|
@@ -418,6 +433,93 @@ export const ListModelsWeights$outboundSchema: z.ZodNativeEnum<
|
|
|
418
433
|
typeof ListModelsWeights
|
|
419
434
|
> = ListModelsWeights$inboundSchema;
|
|
420
435
|
|
|
436
|
+
/** @internal */
|
|
437
|
+
export const TtsVoices$inboundSchema: z.ZodType<
|
|
438
|
+
TtsVoices,
|
|
439
|
+
z.ZodTypeDef,
|
|
440
|
+
unknown
|
|
441
|
+
> = z.object({
|
|
442
|
+
id: z.string(),
|
|
443
|
+
name: z.string(),
|
|
444
|
+
language: z.string(),
|
|
445
|
+
});
|
|
446
|
+
/** @internal */
|
|
447
|
+
export type TtsVoices$Outbound = {
|
|
448
|
+
id: string;
|
|
449
|
+
name: string;
|
|
450
|
+
language: string;
|
|
451
|
+
};
|
|
452
|
+
|
|
453
|
+
/** @internal */
|
|
454
|
+
export const TtsVoices$outboundSchema: z.ZodType<
|
|
455
|
+
TtsVoices$Outbound,
|
|
456
|
+
z.ZodTypeDef,
|
|
457
|
+
TtsVoices
|
|
458
|
+
> = z.object({
|
|
459
|
+
id: z.string(),
|
|
460
|
+
name: z.string(),
|
|
461
|
+
language: z.string(),
|
|
462
|
+
});
|
|
463
|
+
|
|
464
|
+
export function ttsVoicesToJSON(ttsVoices: TtsVoices): string {
|
|
465
|
+
return JSON.stringify(TtsVoices$outboundSchema.parse(ttsVoices));
|
|
466
|
+
}
|
|
467
|
+
export function ttsVoicesFromJSON(
|
|
468
|
+
jsonString: string,
|
|
469
|
+
): SafeParseResult<TtsVoices, SDKValidationError> {
|
|
470
|
+
return safeParse(
|
|
471
|
+
jsonString,
|
|
472
|
+
(x) => TtsVoices$inboundSchema.parse(JSON.parse(x)),
|
|
473
|
+
`Failed to parse 'TtsVoices' from JSON`,
|
|
474
|
+
);
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
/** @internal */
|
|
478
|
+
export const ListModelsTts$inboundSchema: z.ZodType<
|
|
479
|
+
ListModelsTts,
|
|
480
|
+
z.ZodTypeDef,
|
|
481
|
+
unknown
|
|
482
|
+
> = z.object({
|
|
483
|
+
default_voice: z.record(z.string()),
|
|
484
|
+
voices: z.array(z.lazy(() => TtsVoices$inboundSchema)),
|
|
485
|
+
}).transform((v) => {
|
|
486
|
+
return remap$(v, {
|
|
487
|
+
"default_voice": "defaultVoice",
|
|
488
|
+
});
|
|
489
|
+
});
|
|
490
|
+
/** @internal */
|
|
491
|
+
export type ListModelsTts$Outbound = {
|
|
492
|
+
default_voice: { [k: string]: string };
|
|
493
|
+
voices: Array<TtsVoices$Outbound>;
|
|
494
|
+
};
|
|
495
|
+
|
|
496
|
+
/** @internal */
|
|
497
|
+
export const ListModelsTts$outboundSchema: z.ZodType<
|
|
498
|
+
ListModelsTts$Outbound,
|
|
499
|
+
z.ZodTypeDef,
|
|
500
|
+
ListModelsTts
|
|
501
|
+
> = z.object({
|
|
502
|
+
defaultVoice: z.record(z.string()),
|
|
503
|
+
voices: z.array(z.lazy(() => TtsVoices$outboundSchema)),
|
|
504
|
+
}).transform((v) => {
|
|
505
|
+
return remap$(v, {
|
|
506
|
+
defaultVoice: "default_voice",
|
|
507
|
+
});
|
|
508
|
+
});
|
|
509
|
+
|
|
510
|
+
export function listModelsTtsToJSON(listModelsTts: ListModelsTts): string {
|
|
511
|
+
return JSON.stringify(ListModelsTts$outboundSchema.parse(listModelsTts));
|
|
512
|
+
}
|
|
513
|
+
export function listModelsTtsFromJSON(
|
|
514
|
+
jsonString: string,
|
|
515
|
+
): SafeParseResult<ListModelsTts, SDKValidationError> {
|
|
516
|
+
return safeParse(
|
|
517
|
+
jsonString,
|
|
518
|
+
(x) => ListModelsTts$inboundSchema.parse(JSON.parse(x)),
|
|
519
|
+
`Failed to parse 'ListModelsTts' from JSON`,
|
|
520
|
+
);
|
|
521
|
+
}
|
|
522
|
+
|
|
421
523
|
/** @internal */
|
|
422
524
|
export const ListModelsStatus$inboundSchema: z.ZodNativeEnum<
|
|
423
525
|
typeof ListModelsStatus
|
|
@@ -584,6 +686,7 @@ export const ListModelsData$inboundSchema: z.ZodType<
|
|
|
584
686
|
weights: z.nullable(ListModelsWeights$inboundSchema),
|
|
585
687
|
license: z.nullable(z.string()),
|
|
586
688
|
languages: z.nullable(z.array(z.string())),
|
|
689
|
+
tts: z.nullable(z.lazy(() => ListModelsTts$inboundSchema)),
|
|
587
690
|
limitations: z.nullable(z.string()),
|
|
588
691
|
lifecycle: z.lazy(() => ListModelsLifecycle$inboundSchema),
|
|
589
692
|
capabilities: z.lazy(() => ListModelsCapabilities$inboundSchema),
|
|
@@ -626,6 +729,7 @@ export type ListModelsData$Outbound = {
|
|
|
626
729
|
weights: string | null;
|
|
627
730
|
license: string | null;
|
|
628
731
|
languages: Array<string> | null;
|
|
732
|
+
tts: ListModelsTts$Outbound | null;
|
|
629
733
|
limitations: string | null;
|
|
630
734
|
lifecycle: ListModelsLifecycle$Outbound;
|
|
631
735
|
capabilities: ListModelsCapabilities$Outbound;
|
|
@@ -663,6 +767,7 @@ export const ListModelsData$outboundSchema: z.ZodType<
|
|
|
663
767
|
weights: z.nullable(ListModelsWeights$outboundSchema),
|
|
664
768
|
license: z.nullable(z.string()),
|
|
665
769
|
languages: z.nullable(z.array(z.string())),
|
|
770
|
+
tts: z.nullable(z.lazy(() => ListModelsTts$outboundSchema)),
|
|
666
771
|
limitations: z.nullable(z.string()),
|
|
667
772
|
lifecycle: z.lazy(() => ListModelsLifecycle$outboundSchema),
|
|
668
773
|
capabilities: z.lazy(() => ListModelsCapabilities$outboundSchema),
|
|
@@ -8,20 +8,24 @@ import {
|
|
|
8
8
|
QueryKey,
|
|
9
9
|
} from "@tanstack/react-query";
|
|
10
10
|
import { SDKCore } from "../core.js";
|
|
11
|
-
import {
|
|
11
|
+
import {
|
|
12
|
+
GetTranscriptionHistoryContentAcceptEnum,
|
|
13
|
+
llmSpeechGetTranscriptionHistoryContent,
|
|
14
|
+
} from "../funcs/llmSpeechGetTranscriptionHistoryContent.js";
|
|
12
15
|
import { combineSignals } from "../lib/primitives.js";
|
|
13
16
|
import { RequestOptions } from "../lib/sdks.js";
|
|
14
17
|
import * as operations from "../models/operations/index.js";
|
|
15
18
|
import { unwrapAsync } from "../types/fp.js";
|
|
16
|
-
export type LlmSpeechGetTranscriptionHistoryContentQueryData =
|
|
17
|
-
|
|
18
|
-
>;
|
|
19
|
+
export type LlmSpeechGetTranscriptionHistoryContentQueryData =
|
|
20
|
+
operations.GetSpeechToTextHistoryContentResponse;
|
|
19
21
|
|
|
20
22
|
export function prefetchLlmSpeechGetTranscriptionHistoryContent(
|
|
21
23
|
queryClient: QueryClient,
|
|
22
24
|
client$: SDKCore,
|
|
23
25
|
request: operations.GetSpeechToTextHistoryContentRequest,
|
|
24
|
-
options?: RequestOptions
|
|
26
|
+
options?: RequestOptions & {
|
|
27
|
+
acceptHeaderOverride?: GetTranscriptionHistoryContentAcceptEnum;
|
|
28
|
+
},
|
|
25
29
|
): Promise<void> {
|
|
26
30
|
return queryClient.prefetchQuery({
|
|
27
31
|
...buildLlmSpeechGetTranscriptionHistoryContentQuery(
|
|
@@ -35,7 +39,9 @@ export function prefetchLlmSpeechGetTranscriptionHistoryContent(
|
|
|
35
39
|
export function buildLlmSpeechGetTranscriptionHistoryContentQuery(
|
|
36
40
|
client$: SDKCore,
|
|
37
41
|
request: operations.GetSpeechToTextHistoryContentRequest,
|
|
38
|
-
options?: RequestOptions
|
|
42
|
+
options?: RequestOptions & {
|
|
43
|
+
acceptHeaderOverride?: GetTranscriptionHistoryContentAcceptEnum;
|
|
44
|
+
},
|
|
39
45
|
): {
|
|
40
46
|
queryKey: QueryKey;
|
|
41
47
|
queryFn: (
|
|
@@ -50,6 +50,8 @@ export type LlmSpeechGetTranscriptionHistoryContentQueryError =
|
|
|
50
50
|
| UnexpectedClientError
|
|
51
51
|
| SDKValidationError;
|
|
52
52
|
|
|
53
|
+
export { GetTranscriptionHistoryContentAcceptEnum } from "../funcs/llmSpeechGetTranscriptionHistoryContent.js";
|
|
54
|
+
|
|
53
55
|
/**
|
|
54
56
|
* Retrieve speech-to-text audio
|
|
55
57
|
*
|
|
@@ -52,6 +52,7 @@ export type LlmSpeechSpeakMutationError =
|
|
|
52
52
|
* **Request Body:**
|
|
53
53
|
* - `text`: Input text to convert to speech - required
|
|
54
54
|
* - `language`: Language code (default: "auto") - "auto" for automatic detection, or one of the supported ISO 639-1 codes: en, zh, hi, es, ar, bn, pt, ru, ja, pa, de, ko, fr, tr, it, th, pl, nl, id, vi, ur, uk
|
|
55
|
+
* - `voice`: Optional public voice ID from model discovery; otherwise the resolved language selects its configured default. The example assumes an operator-configured `meetkai:speech` model exposing `sophia`; use IDs advertised by your deployment
|
|
55
56
|
* - `model`: TTS model identifier (default: "auto") - "auto" selects the default provider; a registry-resolvable id dispatches to the matching provider
|
|
56
57
|
*
|
|
57
58
|
* **Response:** Returns audio file in WAV format with X-Language-Code header. When `store` is `true`, the generation is persisted before the response returns and the new history record id is included in the X-Tts-Id header.
|
|
@@ -67,6 +67,7 @@ export type LlmSpeechSpeakStreamingMutationError =
|
|
|
67
67
|
* - `text`: Input text to convert to speech - required
|
|
68
68
|
* - `language`: Language code (default: "auto") - "auto" for automatic detection, or one of the supported ISO 639-1 codes: en, zh, hi, es, ar, bn, pt, ru, ja, pa, de, ko, fr, tr, it, th, pl, nl, id, vi, ur, uk
|
|
69
69
|
* - `format`: Audio format (default: "mp3") - "mp3" for compressed MPEG audio (96 kbps) or "pcm" for uncompressed WAV
|
|
70
|
+
* - `voice`: Optional public voice ID from model discovery; otherwise the resolved language selects its configured default. The example assumes an operator-configured `meetkai:speech` model exposing `sophia`; use IDs advertised by your deployment
|
|
70
71
|
* - `model`: TTS model identifier (default: "auto") - "auto" selects the default provider; a registry-resolvable id dispatches to the matching provider (note: not all providers support `format: "mp3"`)
|
|
71
72
|
*
|
|
72
73
|
* **Response:**
|
package/src/sdk/speech.ts
CHANGED
|
@@ -5,7 +5,10 @@
|
|
|
5
5
|
import { llmSpeechDeleteTranscriptionHistory } from "../funcs/llmSpeechDeleteTranscriptionHistory.js";
|
|
6
6
|
import { llmSpeechDeleteTtsHistory } from "../funcs/llmSpeechDeleteTtsHistory.js";
|
|
7
7
|
import { llmSpeechGetTranscriptionHistory } from "../funcs/llmSpeechGetTranscriptionHistory.js";
|
|
8
|
-
import {
|
|
8
|
+
import {
|
|
9
|
+
GetTranscriptionHistoryContentAcceptEnum,
|
|
10
|
+
llmSpeechGetTranscriptionHistoryContent,
|
|
11
|
+
} from "../funcs/llmSpeechGetTranscriptionHistoryContent.js";
|
|
9
12
|
import { llmSpeechGetTtsHistory } from "../funcs/llmSpeechGetTtsHistory.js";
|
|
10
13
|
import {
|
|
11
14
|
GetTtsHistoryContentAcceptEnum,
|
|
@@ -29,6 +32,8 @@ export { SpeakStreamingAcceptEnum } from "../funcs/llmSpeechSpeakStreaming.js";
|
|
|
29
32
|
|
|
30
33
|
export { GetTtsHistoryContentAcceptEnum } from "../funcs/llmSpeechGetTtsHistoryContent.js";
|
|
31
34
|
|
|
35
|
+
export { GetTranscriptionHistoryContentAcceptEnum } from "../funcs/llmSpeechGetTranscriptionHistoryContent.js";
|
|
36
|
+
|
|
32
37
|
export class Speech extends ClientSDK {
|
|
33
38
|
/**
|
|
34
39
|
* Speech to text transcription
|
|
@@ -87,6 +92,7 @@ export class Speech extends ClientSDK {
|
|
|
87
92
|
* **Request Body:**
|
|
88
93
|
* - `text`: Input text to convert to speech - required
|
|
89
94
|
* - `language`: Language code (default: "auto") - "auto" for automatic detection, or one of the supported ISO 639-1 codes: en, zh, hi, es, ar, bn, pt, ru, ja, pa, de, ko, fr, tr, it, th, pl, nl, id, vi, ur, uk
|
|
95
|
+
* - `voice`: Optional public voice ID from model discovery; otherwise the resolved language selects its configured default. The example assumes an operator-configured `meetkai:speech` model exposing `sophia`; use IDs advertised by your deployment
|
|
90
96
|
* - `model`: TTS model identifier (default: "auto") - "auto" selects the default provider; a registry-resolvable id dispatches to the matching provider
|
|
91
97
|
*
|
|
92
98
|
* **Response:** Returns audio file in WAV format with X-Language-Code header. When `store` is `true`, the generation is persisted before the response returns and the new history record id is included in the X-Tts-Id header.
|
|
@@ -118,6 +124,7 @@ export class Speech extends ClientSDK {
|
|
|
118
124
|
* - `text`: Input text to convert to speech - required
|
|
119
125
|
* - `language`: Language code (default: "auto") - "auto" for automatic detection, or one of the supported ISO 639-1 codes: en, zh, hi, es, ar, bn, pt, ru, ja, pa, de, ko, fr, tr, it, th, pl, nl, id, vi, ur, uk
|
|
120
126
|
* - `format`: Audio format (default: "mp3") - "mp3" for compressed MPEG audio (96 kbps) or "pcm" for uncompressed WAV
|
|
127
|
+
* - `voice`: Optional public voice ID from model discovery; otherwise the resolved language selects its configured default. The example assumes an operator-configured `meetkai:speech` model exposing `sophia`; use IDs advertised by your deployment
|
|
121
128
|
* - `model`: TTS model identifier (default: "auto") - "auto" selects the default provider; a registry-resolvable id dispatches to the matching provider (note: not all providers support `format: "mp3"`)
|
|
122
129
|
*
|
|
123
130
|
* **Response:**
|
|
@@ -290,8 +297,10 @@ export class Speech extends ClientSDK {
|
|
|
290
297
|
*/
|
|
291
298
|
async getTranscriptionHistoryContent(
|
|
292
299
|
request: operations.GetSpeechToTextHistoryContentRequest,
|
|
293
|
-
options?: RequestOptions
|
|
294
|
-
|
|
300
|
+
options?: RequestOptions & {
|
|
301
|
+
acceptHeaderOverride?: GetTranscriptionHistoryContentAcceptEnum;
|
|
302
|
+
},
|
|
303
|
+
): Promise<operations.GetSpeechToTextHistoryContentResponse> {
|
|
295
304
|
return unwrapAsync(llmSpeechGetTranscriptionHistoryContent(
|
|
296
305
|
this,
|
|
297
306
|
request,
|