@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"speech.d.ts","sourceRoot":"","sources":["../../../src/sdk/speech.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"speech.d.ts","sourceRoot":"","sources":["../../../src/sdk/speech.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,wCAAwC,EAEzC,MAAM,qDAAqD,CAAC;AAE7D,OAAO,EACL,8BAA8B,EAE/B,MAAM,2CAA2C,CAAC;AAKnD,OAAO,EAEL,wBAAwB,EACzB,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC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;;;;;OAKG;IACG,gBAAgB,CACpB,OAAO,EAAE,UAAU,CAAC,gCAAgC,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,2BAA2B,CAAC;IAQlD;;;;;OAKG;IACG,oBAAoB,CACxB,OAAO,EAAE,UAAU,CAAC,oCAAoC,EACxD,OAAO,CAAC,EAAE,cAAc,GAAG;QACzB,oBAAoB,CAAC,EAAE,8BAA8B,CAAC;KACvD,GACA,OAAO,CAAC,UAAU,CAAC,qCAAqC,CAAC;IAQ5D;;;;;OAKG;IACG,wBAAwB,CAC5B,OAAO,EAAE,UAAU,CAAC,8BAA8B,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,uBAAuB,CAAC;IAQ9C;;;;;OAKG;IACG,uBAAuB,CAC3B,OAAO,EAAE,UAAU,CAAC,6BAA6B,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,yBAAyB,CAAC;IAQhD;;;;;OAKG;IACG,0BAA0B,CAC9B,OAAO,EAAE,UAAU,CAAC,gCAAgC,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,2BAA2B,CAAC;IAQlD;;;;;OAKG;IACG,8BAA8B,CAClC,OAAO,EAAE,UAAU,CAAC,oCAAoC,EACxD,OAAO,CAAC,EAAE,cAAc,GAAG;QACzB,oBAAoB,CAAC,EAAE,wCAAwC,CAAC;KACjE,GACA,OAAO,CAAC,UAAU,CAAC,qCAAqC,CAAC;CAO7D"}
|
package/dist/esm/sdk/speech.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { llmSpeechDeleteTranscriptionHistory } from "../funcs/llmSpeechDeleteTranscriptionHistory.js";
|
|
5
5
|
import { llmSpeechDeleteTtsHistory } from "../funcs/llmSpeechDeleteTtsHistory.js";
|
|
6
6
|
import { llmSpeechGetTranscriptionHistory } from "../funcs/llmSpeechGetTranscriptionHistory.js";
|
|
7
|
-
import { llmSpeechGetTranscriptionHistoryContent } from "../funcs/llmSpeechGetTranscriptionHistoryContent.js";
|
|
7
|
+
import { llmSpeechGetTranscriptionHistoryContent, } from "../funcs/llmSpeechGetTranscriptionHistoryContent.js";
|
|
8
8
|
import { llmSpeechGetTtsHistory } from "../funcs/llmSpeechGetTtsHistory.js";
|
|
9
9
|
import { llmSpeechGetTtsHistoryContent, } from "../funcs/llmSpeechGetTtsHistoryContent.js";
|
|
10
10
|
import { llmSpeechListTranscriptionHistory } from "../funcs/llmSpeechListTranscriptionHistory.js";
|
|
@@ -17,6 +17,7 @@ import { ClientSDK } from "../lib/sdks.js";
|
|
|
17
17
|
import { unwrapAsync } from "../types/fp.js";
|
|
18
18
|
export { SpeakStreamingAcceptEnum } from "../funcs/llmSpeechSpeakStreaming.js";
|
|
19
19
|
export { GetTtsHistoryContentAcceptEnum } from "../funcs/llmSpeechGetTtsHistoryContent.js";
|
|
20
|
+
export { GetTranscriptionHistoryContentAcceptEnum } from "../funcs/llmSpeechGetTranscriptionHistoryContent.js";
|
|
20
21
|
export class Speech extends ClientSDK {
|
|
21
22
|
/**
|
|
22
23
|
* Speech to text transcription
|
|
@@ -67,6 +68,7 @@ export class Speech extends ClientSDK {
|
|
|
67
68
|
* **Request Body:**
|
|
68
69
|
* - `text`: Input text to convert to speech - required
|
|
69
70
|
* - `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
|
|
71
|
+
* - `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
72
|
* - `model`: TTS model identifier (default: "auto") - "auto" selects the default provider; a registry-resolvable id dispatches to the matching provider
|
|
71
73
|
*
|
|
72
74
|
* **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.
|
|
@@ -90,6 +92,7 @@ export class Speech extends ClientSDK {
|
|
|
90
92
|
* - `text`: Input text to convert to speech - required
|
|
91
93
|
* - `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
|
|
92
94
|
* - `format`: Audio format (default: "mp3") - "mp3" for compressed MPEG audio (96 kbps) or "pcm" for uncompressed WAV
|
|
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
|
|
93
96
|
* - `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"`)
|
|
94
97
|
*
|
|
95
98
|
* **Response:**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"speech.js","sourceRoot":"","sources":["../../../src/sdk/speech.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,mCAAmC,EAAE,MAAM,iDAAiD,CAAC;AACtG,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AAClF,OAAO,EAAE,gCAAgC,EAAE,MAAM,8CAA8C,CAAC;AAChG,OAAO,
|
|
1
|
+
{"version":3,"file":"speech.js","sourceRoot":"","sources":["../../../src/sdk/speech.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,mCAAmC,EAAE,MAAM,iDAAiD,CAAC;AACtG,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AAClF,OAAO,EAAE,gCAAgC,EAAE,MAAM,8CAA8C,CAAC;AAChG,OAAO,EAEL,uCAAuC,GACxC,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAC5E,OAA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I,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,8BAA8B,CAClC,OAAwD,EACxD,OAEC;QAED,OAAO,WAAW,CAAC,uCAAuC,CACxD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod/v3";
|
|
6
5
|
import { SDKCore } from "../core.js";
|
|
7
6
|
import { encodeSimple } from "../lib/encodings.js";
|
|
8
7
|
import { matchStatusCode } from "../lib/http.js";
|
|
@@ -26,6 +25,24 @@ import * as operations from "../models/operations/index.js";
|
|
|
26
25
|
import { APICall, APIPromise } from "../types/async.js";
|
|
27
26
|
import { Result } from "../types/fp.js";
|
|
28
27
|
|
|
28
|
+
export enum GetTranscriptionHistoryContentAcceptEnum {
|
|
29
|
+
applicationOctetStream = "application/octet-stream",
|
|
30
|
+
audioFlac = "audio/flac",
|
|
31
|
+
audioMp3 = "audio/mp3",
|
|
32
|
+
audioMp4 = "audio/mp4",
|
|
33
|
+
audioMpeg = "audio/mpeg",
|
|
34
|
+
audioMpga = "audio/mpga",
|
|
35
|
+
audioOgg = "audio/ogg",
|
|
36
|
+
audioWav = "audio/wav",
|
|
37
|
+
audioWebm = "audio/webm",
|
|
38
|
+
audioXFlac = "audio/x-flac",
|
|
39
|
+
audioXM4a = "audio/x-m4a",
|
|
40
|
+
audioXWav = "audio/x-wav",
|
|
41
|
+
videoMp4 = "video/mp4",
|
|
42
|
+
videoMpeg = "video/mpeg",
|
|
43
|
+
videoWebm = "video/webm",
|
|
44
|
+
}
|
|
45
|
+
|
|
29
46
|
/**
|
|
30
47
|
* Retrieve speech-to-text audio
|
|
31
48
|
*
|
|
@@ -37,10 +54,12 @@ import { Result } from "../types/fp.js";
|
|
|
37
54
|
export function llmSpeechGetTranscriptionHistoryContent(
|
|
38
55
|
client: SDKCore,
|
|
39
56
|
request: operations.GetSpeechToTextHistoryContentRequest,
|
|
40
|
-
options?: RequestOptions
|
|
57
|
+
options?: RequestOptions & {
|
|
58
|
+
acceptHeaderOverride?: GetTranscriptionHistoryContentAcceptEnum;
|
|
59
|
+
},
|
|
41
60
|
): APIPromise<
|
|
42
61
|
Result<
|
|
43
|
-
|
|
62
|
+
operations.GetSpeechToTextHistoryContentResponse,
|
|
44
63
|
| SDKError
|
|
45
64
|
| ResponseValidationError
|
|
46
65
|
| ConnectionError
|
|
@@ -61,11 +80,13 @@ export function llmSpeechGetTranscriptionHistoryContent(
|
|
|
61
80
|
async function $do(
|
|
62
81
|
client: SDKCore,
|
|
63
82
|
request: operations.GetSpeechToTextHistoryContentRequest,
|
|
64
|
-
options?: RequestOptions
|
|
83
|
+
options?: RequestOptions & {
|
|
84
|
+
acceptHeaderOverride?: GetTranscriptionHistoryContentAcceptEnum;
|
|
85
|
+
},
|
|
65
86
|
): Promise<
|
|
66
87
|
[
|
|
67
88
|
Result<
|
|
68
|
-
|
|
89
|
+
operations.GetSpeechToTextHistoryContentResponse,
|
|
69
90
|
| SDKError
|
|
70
91
|
| ResponseValidationError
|
|
71
92
|
| ConnectionError
|
|
@@ -103,7 +124,8 @@ async function $do(
|
|
|
103
124
|
)(pathParams);
|
|
104
125
|
|
|
105
126
|
const headers = new Headers(compactMap({
|
|
106
|
-
Accept:
|
|
127
|
+
Accept: options?.acceptHeaderOverride
|
|
128
|
+
|| "application/octet-stream;q=1, audio/flac;q=0.93, audio/mp3;q=0.87, audio/mp4;q=0.80, audio/mpeg;q=0.73, audio/mpga;q=0.67, audio/ogg;q=0.60, audio/wav;q=0.53, audio/webm;q=0.47, audio/x-flac;q=0.40, audio/x-m4a;q=0.33, audio/x-wav;q=0.27, video/mp4;q=0.20, video/mpeg;q=0.13, video/webm;q=0",
|
|
107
129
|
"X-On-Behalf-Of": encodeSimple(
|
|
108
130
|
"X-On-Behalf-Of",
|
|
109
131
|
payload["X-On-Behalf-Of"],
|
|
@@ -168,7 +190,7 @@ async function $do(
|
|
|
168
190
|
const response = doResult.value;
|
|
169
191
|
|
|
170
192
|
const [result] = await M.match<
|
|
171
|
-
|
|
193
|
+
operations.GetSpeechToTextHistoryContentResponse,
|
|
172
194
|
| SDKError
|
|
173
195
|
| ResponseValidationError
|
|
174
196
|
| ConnectionError
|
|
@@ -178,7 +200,80 @@ async function $do(
|
|
|
178
200
|
| UnexpectedClientError
|
|
179
201
|
| SDKValidationError
|
|
180
202
|
>(
|
|
181
|
-
M.stream(
|
|
203
|
+
M.stream(
|
|
204
|
+
200,
|
|
205
|
+
operations.GetSpeechToTextHistoryContentResponse$inboundSchema,
|
|
206
|
+
{ ctype: "audio/flac" },
|
|
207
|
+
),
|
|
208
|
+
M.stream(
|
|
209
|
+
200,
|
|
210
|
+
operations.GetSpeechToTextHistoryContentResponse$inboundSchema,
|
|
211
|
+
{ ctype: "audio/x-flac" },
|
|
212
|
+
),
|
|
213
|
+
M.stream(
|
|
214
|
+
200,
|
|
215
|
+
operations.GetSpeechToTextHistoryContentResponse$inboundSchema,
|
|
216
|
+
{ ctype: "audio/mpeg" },
|
|
217
|
+
),
|
|
218
|
+
M.stream(
|
|
219
|
+
200,
|
|
220
|
+
operations.GetSpeechToTextHistoryContentResponse$inboundSchema,
|
|
221
|
+
{ ctype: "audio/mp3" },
|
|
222
|
+
),
|
|
223
|
+
M.stream(
|
|
224
|
+
200,
|
|
225
|
+
operations.GetSpeechToTextHistoryContentResponse$inboundSchema,
|
|
226
|
+
{ ctype: "audio/mp4" },
|
|
227
|
+
),
|
|
228
|
+
M.stream(
|
|
229
|
+
200,
|
|
230
|
+
operations.GetSpeechToTextHistoryContentResponse$inboundSchema,
|
|
231
|
+
{ ctype: "audio/wav" },
|
|
232
|
+
),
|
|
233
|
+
M.stream(
|
|
234
|
+
200,
|
|
235
|
+
operations.GetSpeechToTextHistoryContentResponse$inboundSchema,
|
|
236
|
+
{ ctype: "audio/x-wav" },
|
|
237
|
+
),
|
|
238
|
+
M.stream(
|
|
239
|
+
200,
|
|
240
|
+
operations.GetSpeechToTextHistoryContentResponse$inboundSchema,
|
|
241
|
+
{ ctype: "audio/webm" },
|
|
242
|
+
),
|
|
243
|
+
M.stream(
|
|
244
|
+
200,
|
|
245
|
+
operations.GetSpeechToTextHistoryContentResponse$inboundSchema,
|
|
246
|
+
{ ctype: "audio/ogg" },
|
|
247
|
+
),
|
|
248
|
+
M.stream(
|
|
249
|
+
200,
|
|
250
|
+
operations.GetSpeechToTextHistoryContentResponse$inboundSchema,
|
|
251
|
+
{ ctype: "video/mp4" },
|
|
252
|
+
),
|
|
253
|
+
M.stream(
|
|
254
|
+
200,
|
|
255
|
+
operations.GetSpeechToTextHistoryContentResponse$inboundSchema,
|
|
256
|
+
{ ctype: "video/mpeg" },
|
|
257
|
+
),
|
|
258
|
+
M.stream(
|
|
259
|
+
200,
|
|
260
|
+
operations.GetSpeechToTextHistoryContentResponse$inboundSchema,
|
|
261
|
+
{ ctype: "video/webm" },
|
|
262
|
+
),
|
|
263
|
+
M.stream(
|
|
264
|
+
200,
|
|
265
|
+
operations.GetSpeechToTextHistoryContentResponse$inboundSchema,
|
|
266
|
+
{ ctype: "audio/x-m4a" },
|
|
267
|
+
),
|
|
268
|
+
M.stream(
|
|
269
|
+
200,
|
|
270
|
+
operations.GetSpeechToTextHistoryContentResponse$inboundSchema,
|
|
271
|
+
{ ctype: "audio/mpga" },
|
|
272
|
+
),
|
|
273
|
+
M.stream(
|
|
274
|
+
200,
|
|
275
|
+
operations.GetSpeechToTextHistoryContentResponse$inboundSchema,
|
|
276
|
+
),
|
|
182
277
|
M.fail("4XX"),
|
|
183
278
|
M.fail("5XX"),
|
|
184
279
|
)(response, req);
|
|
@@ -34,6 +34,7 @@ import { Result } from "../types/fp.js";
|
|
|
34
34
|
* **Request Body:**
|
|
35
35
|
* - `text`: Input text to convert to speech - required
|
|
36
36
|
* - `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
|
|
37
|
+
* - `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
|
|
37
38
|
* - `model`: TTS model identifier (default: "auto") - "auto" selects the default provider; a registry-resolvable id dispatches to the matching provider
|
|
38
39
|
*
|
|
39
40
|
* **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.
|
|
@@ -46,6 +46,7 @@ export enum SpeakStreamingAcceptEnum {
|
|
|
46
46
|
* - `text`: Input text to convert to speech - required
|
|
47
47
|
* - `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
|
|
48
48
|
* - `format`: Audio format (default: "mp3") - "mp3" for compressed MPEG audio (96 kbps) or "pcm" for uncompressed WAV
|
|
49
|
+
* - `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
|
|
49
50
|
* - `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"`)
|
|
50
51
|
*
|
|
51
52
|
* **Response:**
|
package/src/lib/config.ts
CHANGED
|
@@ -65,7 +65,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
65
65
|
export const SDK_METADATA = {
|
|
66
66
|
language: "typescript",
|
|
67
67
|
openapiDocVersion: "1.1.0",
|
|
68
|
-
sdkVersion: "0.55.
|
|
68
|
+
sdkVersion: "0.55.20",
|
|
69
69
|
genVersion: "2.950.2",
|
|
70
|
-
userAgent: "speakeasy-sdk/typescript 0.55.
|
|
70
|
+
userAgent: "speakeasy-sdk/typescript 0.55.20 2.950.2 1.1.0 @meetkai/mka1",
|
|
71
71
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -19,6 +19,7 @@ Convert text to speech with automatic language detection.
|
|
|
19
19
|
**Request Body:**
|
|
20
20
|
- \`text\`: Input text to convert to speech - required
|
|
21
21
|
- \`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
|
|
22
|
+
- \`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
|
|
22
23
|
- \`model\`: TTS model identifier (default: "auto") - "auto" selects the default provider; a registry-resolvable id dispatches to the matching provider
|
|
23
24
|
|
|
24
25
|
**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.`,
|
|
@@ -26,6 +26,7 @@ Convert text to speech with real-time streaming audio delivery.
|
|
|
26
26
|
- \`text\`: Input text to convert to speech - required
|
|
27
27
|
- \`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
|
|
28
28
|
- \`format\`: Audio format (default: "mp3") - "mp3" for compressed MPEG audio (96 kbps) or "pcm" for uncompressed WAV
|
|
29
|
+
- \`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
|
|
29
30
|
- \`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"\`)
|
|
30
31
|
|
|
31
32
|
**Response:**
|
|
@@ -49,6 +49,10 @@ export type TextToSpeechRequest = {
|
|
|
49
49
|
* Input text to convert to speech
|
|
50
50
|
*/
|
|
51
51
|
text: string;
|
|
52
|
+
/**
|
|
53
|
+
* Public voice ID from model discovery. Overrides the model's language default. With language=auto, the selected voice determines the language; an explicit conflicting language is rejected.
|
|
54
|
+
*/
|
|
55
|
+
voice?: string | undefined;
|
|
52
56
|
/**
|
|
53
57
|
* Language code: 'auto' for automatic detection, or ISO 639-1 language codes. With 'auto', text confidently detected as a language without a voice is rejected with a 400 naming it.
|
|
54
58
|
*/
|
|
@@ -77,6 +81,7 @@ export const TextToSpeechRequest$inboundSchema: z.ZodType<
|
|
|
77
81
|
unknown
|
|
78
82
|
> = z.object({
|
|
79
83
|
text: z.string(),
|
|
84
|
+
voice: z.string().optional(),
|
|
80
85
|
language: Language$inboundSchema.default("auto"),
|
|
81
86
|
model: z.string().default("auto"),
|
|
82
87
|
store: z.boolean().default(false),
|
|
@@ -84,6 +89,7 @@ export const TextToSpeechRequest$inboundSchema: z.ZodType<
|
|
|
84
89
|
/** @internal */
|
|
85
90
|
export type TextToSpeechRequest$Outbound = {
|
|
86
91
|
text: string;
|
|
92
|
+
voice?: string | undefined;
|
|
87
93
|
language: string;
|
|
88
94
|
model: string;
|
|
89
95
|
store: boolean;
|
|
@@ -96,6 +102,7 @@ export const TextToSpeechRequest$outboundSchema: z.ZodType<
|
|
|
96
102
|
TextToSpeechRequest
|
|
97
103
|
> = z.object({
|
|
98
104
|
text: z.string(),
|
|
105
|
+
voice: z.string().optional(),
|
|
99
106
|
language: Language$outboundSchema.default("auto"),
|
|
100
107
|
model: z.string().default("auto"),
|
|
101
108
|
store: z.boolean().default(false),
|
|
@@ -63,6 +63,10 @@ export type TextToSpeechStreamingRequest = {
|
|
|
63
63
|
* Input text to convert to speech
|
|
64
64
|
*/
|
|
65
65
|
text: string;
|
|
66
|
+
/**
|
|
67
|
+
* Public voice ID from model discovery. Overrides the model's language default. With language=auto, the selected voice determines the language; an explicit conflicting language is rejected.
|
|
68
|
+
*/
|
|
69
|
+
voice?: string | undefined;
|
|
66
70
|
/**
|
|
67
71
|
* Language code: 'auto' for automatic detection, or ISO 639-1 language codes. With 'auto', text confidently detected as a language without a voice is rejected with a 400 naming it.
|
|
68
72
|
*/
|
|
@@ -105,6 +109,7 @@ export const TextToSpeechStreamingRequest$inboundSchema: z.ZodType<
|
|
|
105
109
|
unknown
|
|
106
110
|
> = z.object({
|
|
107
111
|
text: z.string(),
|
|
112
|
+
voice: z.string().optional(),
|
|
108
113
|
language: TextToSpeechStreamingRequestLanguage$inboundSchema.default("auto"),
|
|
109
114
|
model: z.string().default("auto"),
|
|
110
115
|
store: z.boolean().default(false),
|
|
@@ -113,6 +118,7 @@ export const TextToSpeechStreamingRequest$inboundSchema: z.ZodType<
|
|
|
113
118
|
/** @internal */
|
|
114
119
|
export type TextToSpeechStreamingRequest$Outbound = {
|
|
115
120
|
text: string;
|
|
121
|
+
voice?: string | undefined;
|
|
116
122
|
language: string;
|
|
117
123
|
model: string;
|
|
118
124
|
store: boolean;
|
|
@@ -126,6 +132,7 @@ export const TextToSpeechStreamingRequest$outboundSchema: z.ZodType<
|
|
|
126
132
|
TextToSpeechStreamingRequest
|
|
127
133
|
> = z.object({
|
|
128
134
|
text: z.string(),
|
|
135
|
+
voice: z.string().optional(),
|
|
129
136
|
language: TextToSpeechStreamingRequestLanguage$outboundSchema.default("auto"),
|
|
130
137
|
model: z.string().default("auto"),
|
|
131
138
|
store: z.boolean().default(false),
|
|
@@ -25,6 +25,7 @@ export const UpdateCatalogModelRequestApiProviderType = {
|
|
|
25
25
|
Meetkai: "meetkai",
|
|
26
26
|
MeetkaiGateway: "meetkaiGateway",
|
|
27
27
|
Openai: "openai",
|
|
28
|
+
Openrouter: "openrouter",
|
|
28
29
|
} as const;
|
|
29
30
|
export type UpdateCatalogModelRequestApiProviderType = ClosedEnum<
|
|
30
31
|
typeof UpdateCatalogModelRequestApiProviderType
|
|
@@ -70,6 +70,17 @@ export const Weights = {
|
|
|
70
70
|
} as const;
|
|
71
71
|
export type Weights = ClosedEnum<typeof Weights>;
|
|
72
72
|
|
|
73
|
+
export type Voices = {
|
|
74
|
+
id: string;
|
|
75
|
+
name: string;
|
|
76
|
+
language: string;
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
export type Tts = {
|
|
80
|
+
defaultVoice: { [k: string]: string };
|
|
81
|
+
voices: Array<Voices>;
|
|
82
|
+
};
|
|
83
|
+
|
|
73
84
|
/**
|
|
74
85
|
* `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.
|
|
75
86
|
*/
|
|
@@ -200,6 +211,10 @@ export type GetModelResponseBody = {
|
|
|
200
211
|
* Languages the model is intended for, as ISO 639-1 codes, mirroring `modelCard.languages`. Null when unrecorded.
|
|
201
212
|
*/
|
|
202
213
|
languages: Array<string> | null;
|
|
214
|
+
/**
|
|
215
|
+
* Available public TTS voices and default voice IDs by language. Provider voice identifiers are not exposed.
|
|
216
|
+
*/
|
|
217
|
+
tts: Tts | null;
|
|
203
218
|
/**
|
|
204
219
|
* Known limitations in one short paragraph, mirroring `modelCard.limitations`. Null when unrecorded.
|
|
205
220
|
*/
|
|
@@ -407,6 +422,84 @@ export const Weights$inboundSchema: z.ZodNativeEnum<typeof Weights> = z
|
|
|
407
422
|
export const Weights$outboundSchema: z.ZodNativeEnum<typeof Weights> =
|
|
408
423
|
Weights$inboundSchema;
|
|
409
424
|
|
|
425
|
+
/** @internal */
|
|
426
|
+
export const Voices$inboundSchema: z.ZodType<Voices, z.ZodTypeDef, unknown> = z
|
|
427
|
+
.object({
|
|
428
|
+
id: z.string(),
|
|
429
|
+
name: z.string(),
|
|
430
|
+
language: z.string(),
|
|
431
|
+
});
|
|
432
|
+
/** @internal */
|
|
433
|
+
export type Voices$Outbound = {
|
|
434
|
+
id: string;
|
|
435
|
+
name: string;
|
|
436
|
+
language: string;
|
|
437
|
+
};
|
|
438
|
+
|
|
439
|
+
/** @internal */
|
|
440
|
+
export const Voices$outboundSchema: z.ZodType<
|
|
441
|
+
Voices$Outbound,
|
|
442
|
+
z.ZodTypeDef,
|
|
443
|
+
Voices
|
|
444
|
+
> = z.object({
|
|
445
|
+
id: z.string(),
|
|
446
|
+
name: z.string(),
|
|
447
|
+
language: z.string(),
|
|
448
|
+
});
|
|
449
|
+
|
|
450
|
+
export function voicesToJSON(voices: Voices): string {
|
|
451
|
+
return JSON.stringify(Voices$outboundSchema.parse(voices));
|
|
452
|
+
}
|
|
453
|
+
export function voicesFromJSON(
|
|
454
|
+
jsonString: string,
|
|
455
|
+
): SafeParseResult<Voices, SDKValidationError> {
|
|
456
|
+
return safeParse(
|
|
457
|
+
jsonString,
|
|
458
|
+
(x) => Voices$inboundSchema.parse(JSON.parse(x)),
|
|
459
|
+
`Failed to parse 'Voices' from JSON`,
|
|
460
|
+
);
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
/** @internal */
|
|
464
|
+
export const Tts$inboundSchema: z.ZodType<Tts, z.ZodTypeDef, unknown> = z
|
|
465
|
+
.object({
|
|
466
|
+
default_voice: z.record(z.string()),
|
|
467
|
+
voices: z.array(z.lazy(() => Voices$inboundSchema)),
|
|
468
|
+
}).transform((v) => {
|
|
469
|
+
return remap$(v, {
|
|
470
|
+
"default_voice": "defaultVoice",
|
|
471
|
+
});
|
|
472
|
+
});
|
|
473
|
+
/** @internal */
|
|
474
|
+
export type Tts$Outbound = {
|
|
475
|
+
default_voice: { [k: string]: string };
|
|
476
|
+
voices: Array<Voices$Outbound>;
|
|
477
|
+
};
|
|
478
|
+
|
|
479
|
+
/** @internal */
|
|
480
|
+
export const Tts$outboundSchema: z.ZodType<Tts$Outbound, z.ZodTypeDef, Tts> = z
|
|
481
|
+
.object({
|
|
482
|
+
defaultVoice: z.record(z.string()),
|
|
483
|
+
voices: z.array(z.lazy(() => Voices$outboundSchema)),
|
|
484
|
+
}).transform((v) => {
|
|
485
|
+
return remap$(v, {
|
|
486
|
+
defaultVoice: "default_voice",
|
|
487
|
+
});
|
|
488
|
+
});
|
|
489
|
+
|
|
490
|
+
export function ttsToJSON(tts: Tts): string {
|
|
491
|
+
return JSON.stringify(Tts$outboundSchema.parse(tts));
|
|
492
|
+
}
|
|
493
|
+
export function ttsFromJSON(
|
|
494
|
+
jsonString: string,
|
|
495
|
+
): SafeParseResult<Tts, SDKValidationError> {
|
|
496
|
+
return safeParse(
|
|
497
|
+
jsonString,
|
|
498
|
+
(x) => Tts$inboundSchema.parse(JSON.parse(x)),
|
|
499
|
+
`Failed to parse 'Tts' from JSON`,
|
|
500
|
+
);
|
|
501
|
+
}
|
|
502
|
+
|
|
410
503
|
/** @internal */
|
|
411
504
|
export const GetModelStatus$inboundSchema: z.ZodNativeEnum<
|
|
412
505
|
typeof GetModelStatus
|
|
@@ -565,6 +658,7 @@ export const GetModelResponseBody$inboundSchema: z.ZodType<
|
|
|
565
658
|
weights: z.nullable(Weights$inboundSchema),
|
|
566
659
|
license: z.nullable(z.string()),
|
|
567
660
|
languages: z.nullable(z.array(z.string())),
|
|
661
|
+
tts: z.nullable(z.lazy(() => Tts$inboundSchema)),
|
|
568
662
|
limitations: z.nullable(z.string()),
|
|
569
663
|
lifecycle: z.lazy(() => Lifecycle$inboundSchema),
|
|
570
664
|
capabilities: z.lazy(() => Capabilities$inboundSchema),
|
|
@@ -607,6 +701,7 @@ export type GetModelResponseBody$Outbound = {
|
|
|
607
701
|
weights: string | null;
|
|
608
702
|
license: string | null;
|
|
609
703
|
languages: Array<string> | null;
|
|
704
|
+
tts: Tts$Outbound | null;
|
|
610
705
|
limitations: string | null;
|
|
611
706
|
lifecycle: Lifecycle$Outbound;
|
|
612
707
|
capabilities: Capabilities$Outbound;
|
|
@@ -644,6 +739,7 @@ export const GetModelResponseBody$outboundSchema: z.ZodType<
|
|
|
644
739
|
weights: z.nullable(Weights$outboundSchema),
|
|
645
740
|
license: z.nullable(z.string()),
|
|
646
741
|
languages: z.nullable(z.array(z.string())),
|
|
742
|
+
tts: z.nullable(z.lazy(() => Tts$outboundSchema)),
|
|
647
743
|
limitations: z.nullable(z.string()),
|
|
648
744
|
lifecycle: z.lazy(() => Lifecycle$outboundSchema),
|
|
649
745
|
capabilities: z.lazy(() => Capabilities$outboundSchema),
|
|
@@ -16,6 +16,23 @@ export type GetSpeechToTextHistoryContentRequest = {
|
|
|
16
16
|
xOnBehalfOf?: string | undefined;
|
|
17
17
|
};
|
|
18
18
|
|
|
19
|
+
export type GetSpeechToTextHistoryContentResponse =
|
|
20
|
+
| ReadableStream<Uint8Array>
|
|
21
|
+
| ReadableStream<Uint8Array>
|
|
22
|
+
| ReadableStream<Uint8Array>
|
|
23
|
+
| ReadableStream<Uint8Array>
|
|
24
|
+
| ReadableStream<Uint8Array>
|
|
25
|
+
| ReadableStream<Uint8Array>
|
|
26
|
+
| ReadableStream<Uint8Array>
|
|
27
|
+
| ReadableStream<Uint8Array>
|
|
28
|
+
| ReadableStream<Uint8Array>
|
|
29
|
+
| ReadableStream<Uint8Array>
|
|
30
|
+
| ReadableStream<Uint8Array>
|
|
31
|
+
| ReadableStream<Uint8Array>
|
|
32
|
+
| ReadableStream<Uint8Array>
|
|
33
|
+
| ReadableStream<Uint8Array>
|
|
34
|
+
| ReadableStream<Uint8Array>;
|
|
35
|
+
|
|
19
36
|
/** @internal */
|
|
20
37
|
export const GetSpeechToTextHistoryContentRequest$inboundSchema: z.ZodType<
|
|
21
38
|
GetSpeechToTextHistoryContentRequest,
|
|
@@ -70,3 +87,86 @@ export function getSpeechToTextHistoryContentRequestFromJSON(
|
|
|
70
87
|
`Failed to parse 'GetSpeechToTextHistoryContentRequest' from JSON`,
|
|
71
88
|
);
|
|
72
89
|
}
|
|
90
|
+
|
|
91
|
+
/** @internal */
|
|
92
|
+
export const GetSpeechToTextHistoryContentResponse$inboundSchema: z.ZodType<
|
|
93
|
+
GetSpeechToTextHistoryContentResponse,
|
|
94
|
+
z.ZodTypeDef,
|
|
95
|
+
unknown
|
|
96
|
+
> = z.union([
|
|
97
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
98
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
99
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
100
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
101
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
102
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
103
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
104
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
105
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
106
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
107
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
108
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
109
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
110
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
111
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
112
|
+
]);
|
|
113
|
+
/** @internal */
|
|
114
|
+
export type GetSpeechToTextHistoryContentResponse$Outbound =
|
|
115
|
+
| ReadableStream<Uint8Array>
|
|
116
|
+
| ReadableStream<Uint8Array>
|
|
117
|
+
| ReadableStream<Uint8Array>
|
|
118
|
+
| ReadableStream<Uint8Array>
|
|
119
|
+
| ReadableStream<Uint8Array>
|
|
120
|
+
| ReadableStream<Uint8Array>
|
|
121
|
+
| ReadableStream<Uint8Array>
|
|
122
|
+
| ReadableStream<Uint8Array>
|
|
123
|
+
| ReadableStream<Uint8Array>
|
|
124
|
+
| ReadableStream<Uint8Array>
|
|
125
|
+
| ReadableStream<Uint8Array>
|
|
126
|
+
| ReadableStream<Uint8Array>
|
|
127
|
+
| ReadableStream<Uint8Array>
|
|
128
|
+
| ReadableStream<Uint8Array>
|
|
129
|
+
| ReadableStream<Uint8Array>;
|
|
130
|
+
|
|
131
|
+
/** @internal */
|
|
132
|
+
export const GetSpeechToTextHistoryContentResponse$outboundSchema: z.ZodType<
|
|
133
|
+
GetSpeechToTextHistoryContentResponse$Outbound,
|
|
134
|
+
z.ZodTypeDef,
|
|
135
|
+
GetSpeechToTextHistoryContentResponse
|
|
136
|
+
> = z.union([
|
|
137
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
138
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
139
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
140
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
141
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
142
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
143
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
144
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
145
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
146
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
147
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
148
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
149
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
150
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
151
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
152
|
+
]);
|
|
153
|
+
|
|
154
|
+
export function getSpeechToTextHistoryContentResponseToJSON(
|
|
155
|
+
getSpeechToTextHistoryContentResponse: GetSpeechToTextHistoryContentResponse,
|
|
156
|
+
): string {
|
|
157
|
+
return JSON.stringify(
|
|
158
|
+
GetSpeechToTextHistoryContentResponse$outboundSchema.parse(
|
|
159
|
+
getSpeechToTextHistoryContentResponse,
|
|
160
|
+
),
|
|
161
|
+
);
|
|
162
|
+
}
|
|
163
|
+
export function getSpeechToTextHistoryContentResponseFromJSON(
|
|
164
|
+
jsonString: string,
|
|
165
|
+
): SafeParseResult<GetSpeechToTextHistoryContentResponse, SDKValidationError> {
|
|
166
|
+
return safeParse(
|
|
167
|
+
jsonString,
|
|
168
|
+
(x) =>
|
|
169
|
+
GetSpeechToTextHistoryContentResponse$inboundSchema.parse(JSON.parse(x)),
|
|
170
|
+
`Failed to parse 'GetSpeechToTextHistoryContentResponse' from JSON`,
|
|
171
|
+
);
|
|
172
|
+
}
|