@meetkai/mka1 0.48.41 → 0.48.42
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 +7 -6
- package/bin/mcp-server.js.map +9 -9
- package/dist/commonjs/funcs/llmSpeechSpeak.d.ts +1 -1
- package/dist/commonjs/funcs/llmSpeechSpeak.js +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.js +1 -1
- 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/react-query/llmSpeechSpeak.d.ts +1 -1
- package/dist/commonjs/react-query/llmSpeechSpeak.js +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 +2 -1
- package/dist/commonjs/sdk/speech.d.ts.map +1 -1
- package/dist/commonjs/sdk/speech.js +2 -1
- package/dist/commonjs/sdk/speech.js.map +1 -1
- package/dist/esm/funcs/llmSpeechSpeak.d.ts +1 -1
- package/dist/esm/funcs/llmSpeechSpeak.js +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.js +1 -1
- 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/react-query/llmSpeechSpeak.d.ts +1 -1
- package/dist/esm/react-query/llmSpeechSpeak.js +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 +2 -1
- package/dist/esm/sdk/speech.d.ts.map +1 -1
- package/dist/esm/sdk/speech.js +2 -1
- package/dist/esm/sdk/speech.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/llmSpeechSpeak.ts +1 -1
- 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 -1
- package/src/mcp-server/tools/llmSpeechSpeakStreaming.ts +1 -0
- package/src/react-query/llmSpeechSpeak.ts +1 -1
- package/src/react-query/llmSpeechSpeakStreaming.ts +1 -0
- package/src/sdk/speech.ts +2 -1
package/package.json
CHANGED
|
@@ -36,7 +36,7 @@ import { Result } from "../types/fp.js";
|
|
|
36
36
|
* - `language`: Language code (default: "auto") - "auto" for automatic detection, or 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
|
|
37
37
|
* - `model`: TTS model identifier (default: "auto") - "auto" selects the default provider; a registry-resolvable id dispatches to the matching provider
|
|
38
38
|
*
|
|
39
|
-
* **Response:** Returns audio file in WAV format with X-Language-Code header
|
|
39
|
+
* **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.
|
|
40
40
|
*/
|
|
41
41
|
export function llmSpeechSpeak(
|
|
42
42
|
client: SDKCore,
|
|
@@ -52,6 +52,7 @@ export enum SpeakStreamingAcceptEnum {
|
|
|
52
52
|
* - Streams audio chunks in real-time
|
|
53
53
|
* - Returns `X-Language-Code` header with detected/used language
|
|
54
54
|
* - Content-Type: `audio/mpeg` (MP3) or `audio/wav` (PCM)
|
|
55
|
+
* - When `store` is `true`, returns the `X-Tts-Id` header with the id the history record will be stored under; persistence is best-effort and completes shortly after the stream ends
|
|
55
56
|
*
|
|
56
57
|
* **Use Cases:**
|
|
57
58
|
* - Real-time applications requiring immediate audio playback
|
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.48.
|
|
68
|
+
sdkVersion: "0.48.42",
|
|
69
69
|
genVersion: "2.916.4",
|
|
70
|
-
userAgent: "speakeasy-sdk/typescript 0.48.
|
|
70
|
+
userAgent: "speakeasy-sdk/typescript 0.48.42 2.916.4 1.1.0 @meetkai/mka1",
|
|
71
71
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -21,7 +21,7 @@ Convert text to speech with automatic language detection.
|
|
|
21
21
|
- \`language\`: Language code (default: "auto") - "auto" for automatic detection, or 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
|
|
22
22
|
- \`model\`: TTS model identifier (default: "auto") - "auto" selects the default provider; a registry-resolvable id dispatches to the matching provider
|
|
23
23
|
|
|
24
|
-
**Response:** Returns audio file in WAV format with X-Language-Code header
|
|
24
|
+
**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.`,
|
|
25
25
|
args,
|
|
26
26
|
tool: async (client, args, ctx) => {
|
|
27
27
|
const [result, apiCall] = await llmSpeechSpeak(
|
|
@@ -32,6 +32,7 @@ Convert text to speech with real-time streaming audio delivery.
|
|
|
32
32
|
- Streams audio chunks in real-time
|
|
33
33
|
- Returns \`X-Language-Code\` header with detected/used language
|
|
34
34
|
- Content-Type: \`audio/mpeg\` (MP3) or \`audio/wav\` (PCM)
|
|
35
|
+
- When \`store\` is \`true\`, returns the \`X-Tts-Id\` header with the id the history record will be stored under; persistence is best-effort and completes shortly after the stream ends
|
|
35
36
|
|
|
36
37
|
**Use Cases:**
|
|
37
38
|
- Real-time applications requiring immediate audio playback
|
|
@@ -54,7 +54,7 @@ export type LlmSpeechSpeakMutationError =
|
|
|
54
54
|
* - `language`: Language code (default: "auto") - "auto" for automatic detection, or 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
|
|
55
55
|
* - `model`: TTS model identifier (default: "auto") - "auto" selects the default provider; a registry-resolvable id dispatches to the matching provider
|
|
56
56
|
*
|
|
57
|
-
* **Response:** Returns audio file in WAV format with X-Language-Code header
|
|
57
|
+
* **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.
|
|
58
58
|
*/
|
|
59
59
|
export function useLlmSpeechSpeakMutation(
|
|
60
60
|
options?: MutationHookOptions<
|
|
@@ -73,6 +73,7 @@ export type LlmSpeechSpeakStreamingMutationError =
|
|
|
73
73
|
* - Streams audio chunks in real-time
|
|
74
74
|
* - Returns `X-Language-Code` header with detected/used language
|
|
75
75
|
* - Content-Type: `audio/mpeg` (MP3) or `audio/wav` (PCM)
|
|
76
|
+
* - When `store` is `true`, returns the `X-Tts-Id` header with the id the history record will be stored under; persistence is best-effort and completes shortly after the stream ends
|
|
76
77
|
*
|
|
77
78
|
* **Use Cases:**
|
|
78
79
|
* - Real-time applications requiring immediate audio playback
|
package/src/sdk/speech.ts
CHANGED
|
@@ -89,7 +89,7 @@ export class Speech extends ClientSDK {
|
|
|
89
89
|
* - `language`: Language code (default: "auto") - "auto" for automatic detection, or 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
|
|
90
90
|
* - `model`: TTS model identifier (default: "auto") - "auto" selects the default provider; a registry-resolvable id dispatches to the matching provider
|
|
91
91
|
*
|
|
92
|
-
* **Response:** Returns audio file in WAV format with X-Language-Code header
|
|
92
|
+
* **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.
|
|
93
93
|
*/
|
|
94
94
|
async speak(
|
|
95
95
|
request: operations.TextToSpeechRequest,
|
|
@@ -124,6 +124,7 @@ export class Speech extends ClientSDK {
|
|
|
124
124
|
* - Streams audio chunks in real-time
|
|
125
125
|
* - Returns `X-Language-Code` header with detected/used language
|
|
126
126
|
* - Content-Type: `audio/mpeg` (MP3) or `audio/wav` (PCM)
|
|
127
|
+
* - When `store` is `true`, returns the `X-Tts-Id` header with the id the history record will be stored under; persistence is best-effort and completes shortly after the stream ends
|
|
127
128
|
*
|
|
128
129
|
* **Use Cases:**
|
|
129
130
|
* - Real-time applications requiring immediate audio playback
|