@ai-sdk/lmnt 2.0.7 → 2.0.9

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/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @ai-sdk/lmnt
2
2
 
3
+ ## 2.0.9
4
+
5
+ ### Patch Changes
6
+
7
+ - 8dc54db: chore: add src folders to package bundle
8
+
9
+ ## 2.0.8
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [5c090e7]
14
+ - @ai-sdk/provider@3.0.4
15
+ - @ai-sdk/provider-utils@4.0.8
16
+
3
17
  ## 2.0.7
4
18
 
5
19
  ### Patch Changes
package/dist/index.js CHANGED
@@ -197,7 +197,7 @@ var LMNTSpeechModel = class {
197
197
  };
198
198
 
199
199
  // src/version.ts
200
- var VERSION = true ? "2.0.7" : "0.0.0-test";
200
+ var VERSION = true ? "2.0.9" : "0.0.0-test";
201
201
 
202
202
  // src/lmnt-provider.ts
203
203
  function createLMNT(options = {}) {
package/dist/index.mjs CHANGED
@@ -177,7 +177,7 @@ var LMNTSpeechModel = class {
177
177
  };
178
178
 
179
179
  // src/version.ts
180
- var VERSION = true ? "2.0.7" : "0.0.0-test";
180
+ var VERSION = true ? "2.0.9" : "0.0.0-test";
181
181
 
182
182
  // src/lmnt-provider.ts
183
183
  function createLMNT(options = {}) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/lmnt",
3
- "version": "2.0.7",
3
+ "version": "2.0.9",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -8,6 +8,7 @@
8
8
  "types": "./dist/index.d.ts",
9
9
  "files": [
10
10
  "dist/**/*",
11
+ "src",
11
12
  "CHANGELOG.md",
12
13
  "README.md"
13
14
  ],
@@ -20,15 +21,15 @@
20
21
  }
21
22
  },
22
23
  "dependencies": {
23
- "@ai-sdk/provider": "3.0.3",
24
- "@ai-sdk/provider-utils": "4.0.7"
24
+ "@ai-sdk/provider": "3.0.4",
25
+ "@ai-sdk/provider-utils": "4.0.8"
25
26
  },
26
27
  "devDependencies": {
27
28
  "@types/node": "20.17.24",
28
29
  "tsup": "^8",
29
30
  "typescript": "5.6.3",
30
31
  "zod": "3.25.76",
31
- "@ai-sdk/test-server": "1.0.1",
32
+ "@ai-sdk/test-server": "1.0.2",
32
33
  "@vercel/ai-tsconfig": "0.0.0"
33
34
  },
34
35
  "peerDependencies": {
package/src/index.ts ADDED
@@ -0,0 +1,3 @@
1
+ export { createLMNT, lmnt } from './lmnt-provider';
2
+ export type { LMNTProvider, LMNTProviderSettings } from './lmnt-provider';
3
+ export { VERSION } from './version';
@@ -0,0 +1,39 @@
1
+ export type LMNTSpeechAPITypes = {
2
+ /** The voice id of the voice to use; voice ids can be retrieved by calls to List voices or Voice info. */
3
+ voice: string;
4
+ /** The text to synthesize; max 5000 characters per request (including spaces) */
5
+ text: string;
6
+ /** The model to use for synthesis. One of aurora (default) or blizzard. */
7
+ model?: 'aurora' | 'blizzard';
8
+ /** The desired language. Two letter ISO 639-1 code. Does not work with professional clones. Not all languages work with all models. Defaults to auto language detection. */
9
+ language?:
10
+ | 'auto'
11
+ | 'en'
12
+ | 'es'
13
+ | 'pt'
14
+ | 'fr'
15
+ | 'de'
16
+ | 'zh'
17
+ | 'ko'
18
+ | 'hi'
19
+ | 'ja'
20
+ | 'ru'
21
+ | 'it'
22
+ | 'tr';
23
+ /** The file format of the audio output */
24
+ format?: 'aac' | 'mp3' | 'mulaw' | 'raw' | 'wav';
25
+ /** The desired output sample rate in Hz */
26
+ sample_rate?: 8000 | 16000 | 24000;
27
+ /** The talking speed of the generated speech, a floating point value between 0.25 (slow) and 2.0 (fast). */
28
+ speed?: number;
29
+ /** Seed used to specify a different take; defaults to random */
30
+ seed?: number;
31
+ /** Set this to true to generate conversational-style speech rather than reading-style speech. Does not work with the blizzard model. */
32
+ conversational?: boolean;
33
+ /** Produce speech of this length in seconds; maximum 300.0 (5 minutes). Does not work with the blizzard model. */
34
+ length?: number;
35
+ /** Controls the stability of the generated speech. A lower value (like 0.3) produces more consistent, reliable speech. A higher value (like 0.9) gives more flexibility in how words are spoken, but might occasionally produce unusual intonations or speech patterns. */
36
+ top_p?: number;
37
+ /** Influences how expressive and emotionally varied the speech becomes. Lower values (like 0.3) create more neutral, consistent speaking styles. Higher values (like 1.0) allow for more dynamic emotional range and speaking styles. */
38
+ temperature?: number;
39
+ };
@@ -0,0 +1,9 @@
1
+ import { FetchFunction } from '@ai-sdk/provider-utils';
2
+
3
+ export type LMNTConfig = {
4
+ provider: string;
5
+ url: (options: { modelId: string; path: string }) => string;
6
+ headers: () => Record<string, string | undefined>;
7
+ fetch?: FetchFunction;
8
+ generateId?: () => string;
9
+ };
@@ -0,0 +1,34 @@
1
+ import { safeParseJSON } from '@ai-sdk/provider-utils';
2
+ import { lmntErrorDataSchema } from './lmnt-error';
3
+ import { describe, it, expect } from 'vitest';
4
+
5
+ describe('lmntErrorDataSchema', () => {
6
+ it('should parse LMNT resource exhausted error', async () => {
7
+ const error = `
8
+ {"error":{"message":"{\\n \\"error\\": {\\n \\"code\\": 429,\\n \\"message\\": \\"Resource has been exhausted (e.g. check quota).\\",\\n \\"status\\": \\"RESOURCE_EXHAUSTED\\"\\n }\\n}\\n","code":429}}
9
+ `;
10
+
11
+ const result = await safeParseJSON({
12
+ text: error,
13
+ schema: lmntErrorDataSchema,
14
+ });
15
+
16
+ expect(result).toStrictEqual({
17
+ success: true,
18
+ value: {
19
+ error: {
20
+ message:
21
+ '{\n "error": {\n "code": 429,\n "message": "Resource has been exhausted (e.g. check quota).",\n "status": "RESOURCE_EXHAUSTED"\n }\n}\n',
22
+ code: 429,
23
+ },
24
+ },
25
+ rawValue: {
26
+ error: {
27
+ message:
28
+ '{\n "error": {\n "code": 429,\n "message": "Resource has been exhausted (e.g. check quota).",\n "status": "RESOURCE_EXHAUSTED"\n }\n}\n',
29
+ code: 429,
30
+ },
31
+ },
32
+ });
33
+ });
34
+ });
@@ -0,0 +1,16 @@
1
+ import { z } from 'zod/v4';
2
+ import { createJsonErrorResponseHandler } from '@ai-sdk/provider-utils';
3
+
4
+ export const lmntErrorDataSchema = z.object({
5
+ error: z.object({
6
+ message: z.string(),
7
+ code: z.number(),
8
+ }),
9
+ });
10
+
11
+ export type LMNTErrorData = z.infer<typeof lmntErrorDataSchema>;
12
+
13
+ export const lmntFailedResponseHandler = createJsonErrorResponseHandler({
14
+ errorSchema: lmntErrorDataSchema,
15
+ errorToMessage: data => data.error.message,
16
+ });
@@ -0,0 +1,83 @@
1
+ import { SpeechModelV3, ProviderV3 } from '@ai-sdk/provider';
2
+ import {
3
+ FetchFunction,
4
+ loadApiKey,
5
+ withUserAgentSuffix,
6
+ } from '@ai-sdk/provider-utils';
7
+ import { LMNTSpeechModel } from './lmnt-speech-model';
8
+ import { LMNTSpeechModelId } from './lmnt-speech-options';
9
+ import { VERSION } from './version';
10
+
11
+ export interface LMNTProvider extends Pick<ProviderV3, 'speechModel'> {
12
+ (
13
+ modelId: 'aurora',
14
+ settings?: {},
15
+ ): {
16
+ speech: LMNTSpeechModel;
17
+ };
18
+
19
+ /**
20
+ Creates a model for speech synthesis.
21
+ */
22
+ speech(modelId: LMNTSpeechModelId): SpeechModelV3;
23
+ }
24
+
25
+ export interface LMNTProviderSettings {
26
+ /**
27
+ API key for authenticating requests.
28
+ */
29
+ apiKey?: string;
30
+
31
+ /**
32
+ Custom headers to include in the requests.
33
+ */
34
+ headers?: Record<string, string>;
35
+
36
+ /**
37
+ Custom fetch implementation. You can use it as a middleware to intercept requests,
38
+ or to provide a custom fetch implementation for e.g. testing.
39
+ */
40
+ fetch?: FetchFunction;
41
+ }
42
+
43
+ /**
44
+ Create an LMNT provider instance.
45
+ */
46
+ export function createLMNT(options: LMNTProviderSettings = {}): LMNTProvider {
47
+ const getHeaders = () =>
48
+ withUserAgentSuffix(
49
+ {
50
+ 'x-api-key': loadApiKey({
51
+ apiKey: options.apiKey,
52
+ environmentVariableName: 'LMNT_API_KEY',
53
+ description: 'LMNT',
54
+ }),
55
+ ...options.headers,
56
+ },
57
+ `ai-sdk/lmnt/${VERSION}`,
58
+ );
59
+
60
+ const createSpeechModel = (modelId: LMNTSpeechModelId) =>
61
+ new LMNTSpeechModel(modelId, {
62
+ provider: `lmnt.speech`,
63
+ url: ({ path }) => `https://api.lmnt.com${path}`,
64
+ headers: getHeaders,
65
+ fetch: options.fetch,
66
+ });
67
+
68
+ const provider = function (modelId: LMNTSpeechModelId) {
69
+ return {
70
+ speech: createSpeechModel(modelId),
71
+ };
72
+ };
73
+
74
+ provider.speech = createSpeechModel;
75
+ provider.speechModel = createSpeechModel;
76
+
77
+ return provider as LMNTProvider;
78
+ }
79
+
80
+ /**
81
+ Default LMNT provider instance.
82
+ */
83
+ export const lmnt = createLMNT();
@@ -0,0 +1,197 @@
1
+ import { createTestServer } from '@ai-sdk/test-server/with-vitest';
2
+ import { LMNTSpeechModel } from './lmnt-speech-model';
3
+ import { createLMNT } from './lmnt-provider';
4
+ import { describe, it, expect, vi } from 'vitest';
5
+
6
+ vi.mock('./version', () => ({
7
+ VERSION: '0.0.0-test',
8
+ }));
9
+
10
+ const provider = createLMNT({ apiKey: 'test-api-key' });
11
+ const model = provider.speech('aurora');
12
+
13
+ const server = createTestServer({
14
+ 'https://api.lmnt.com/v1/ai/speech/bytes': {},
15
+ });
16
+
17
+ describe('doGenerate', () => {
18
+ function prepareAudioResponse({
19
+ headers,
20
+ format = 'mp3',
21
+ }: {
22
+ headers?: Record<string, string>;
23
+ format?: 'aac' | 'mp3' | 'mulaw' | 'raw' | 'wav';
24
+ } = {}) {
25
+ const audioBuffer = new Uint8Array(100); // Mock audio data
26
+ server.urls['https://api.lmnt.com/v1/ai/speech/bytes'].response = {
27
+ type: 'binary',
28
+ headers: {
29
+ 'content-type': `audio/${format}`,
30
+ ...headers,
31
+ },
32
+ body: Buffer.from(audioBuffer),
33
+ };
34
+ return audioBuffer;
35
+ }
36
+
37
+ it('should pass the model and text', async () => {
38
+ prepareAudioResponse();
39
+
40
+ await model.doGenerate({
41
+ text: 'Hello from the AI SDK!',
42
+ });
43
+
44
+ expect(await server.calls[0].requestBodyJson).toMatchObject({
45
+ model: 'aurora',
46
+ text: 'Hello from the AI SDK!',
47
+ });
48
+ });
49
+
50
+ it('should pass headers', async () => {
51
+ prepareAudioResponse();
52
+
53
+ const provider = createLMNT({
54
+ apiKey: 'test-api-key',
55
+ headers: {
56
+ 'Custom-Provider-Header': 'provider-header-value',
57
+ },
58
+ });
59
+
60
+ await provider.speech('aurora').doGenerate({
61
+ text: 'Hello from the AI SDK!',
62
+ headers: {
63
+ 'Custom-Request-Header': 'request-header-value',
64
+ },
65
+ });
66
+
67
+ expect(server.calls[0].requestHeaders).toMatchObject({
68
+ 'x-api-key': 'test-api-key',
69
+ 'content-type': 'application/json',
70
+ 'custom-provider-header': 'provider-header-value',
71
+ 'custom-request-header': 'request-header-value',
72
+ });
73
+ expect(server.calls[0].requestUserAgent).toContain(
74
+ `ai-sdk/lmnt/0.0.0-test`,
75
+ );
76
+ });
77
+
78
+ it('should pass options', async () => {
79
+ prepareAudioResponse();
80
+
81
+ await model.doGenerate({
82
+ text: 'Hello from the AI SDK!',
83
+ voice: 'nova',
84
+ outputFormat: 'mp3',
85
+ speed: 1.5,
86
+ });
87
+
88
+ expect(await server.calls[0].requestBodyJson).toMatchObject({
89
+ model: 'aurora',
90
+ text: 'Hello from the AI SDK!',
91
+ voice: 'nova',
92
+ speed: 1.5,
93
+ response_format: 'mp3',
94
+ });
95
+ });
96
+
97
+ it('should return audio data with correct content type', async () => {
98
+ const audio = new Uint8Array(100); // Mock audio data
99
+ prepareAudioResponse({
100
+ format: 'mp3',
101
+ headers: {
102
+ 'x-request-id': 'test-request-id',
103
+ 'x-ratelimit-remaining': '123',
104
+ },
105
+ });
106
+
107
+ const result = await model.doGenerate({
108
+ text: 'Hello from the AI SDK!',
109
+ outputFormat: 'mp3',
110
+ });
111
+
112
+ expect(result.audio).toStrictEqual(audio);
113
+ });
114
+
115
+ it('should include response data with timestamp, modelId and headers', async () => {
116
+ prepareAudioResponse({
117
+ headers: {
118
+ 'x-request-id': 'test-request-id',
119
+ 'x-ratelimit-remaining': '123',
120
+ },
121
+ });
122
+
123
+ const testDate = new Date(0);
124
+ const customModel = new LMNTSpeechModel('aurora', {
125
+ provider: 'test-provider',
126
+ url: () => 'https://api.lmnt.com/v1/ai/speech/bytes',
127
+ headers: () => ({}),
128
+ _internal: {
129
+ currentDate: () => testDate,
130
+ },
131
+ });
132
+
133
+ const result = await customModel.doGenerate({
134
+ text: 'Hello from the AI SDK!',
135
+ });
136
+
137
+ expect(result.response).toMatchObject({
138
+ timestamp: testDate,
139
+ modelId: 'aurora',
140
+ headers: {
141
+ 'content-type': 'audio/mp3',
142
+ 'x-request-id': 'test-request-id',
143
+ 'x-ratelimit-remaining': '123',
144
+ },
145
+ });
146
+ });
147
+
148
+ it('should use real date when no custom date provider is specified', async () => {
149
+ prepareAudioResponse();
150
+
151
+ const testDate = new Date(0);
152
+ const customModel = new LMNTSpeechModel('aurora', {
153
+ provider: 'test-provider',
154
+ url: () => 'https://api.lmnt.com/v1/ai/speech/bytes',
155
+ headers: () => ({}),
156
+ _internal: {
157
+ currentDate: () => testDate,
158
+ },
159
+ });
160
+
161
+ const result = await customModel.doGenerate({
162
+ text: 'Hello from the AI SDK!',
163
+ });
164
+
165
+ expect(result.response.timestamp.getTime()).toEqual(testDate.getTime());
166
+ expect(result.response.modelId).toBe('aurora');
167
+ });
168
+
169
+ it('should handle different audio formats', async () => {
170
+ const formats = ['aac', 'mp3', 'mulaw', 'raw', 'wav'] as const;
171
+
172
+ for (const format of formats) {
173
+ const audio = prepareAudioResponse({ format });
174
+
175
+ const result = await model.doGenerate({
176
+ text: 'Hello from the AI SDK!',
177
+ providerOptions: {
178
+ lmnt: {
179
+ format,
180
+ },
181
+ },
182
+ });
183
+
184
+ expect(result.audio).toStrictEqual(audio);
185
+ }
186
+ });
187
+
188
+ it('should include warnings if any are generated', async () => {
189
+ prepareAudioResponse();
190
+
191
+ const result = await model.doGenerate({
192
+ text: 'Hello from the AI SDK!',
193
+ });
194
+
195
+ expect(result.warnings).toEqual([]);
196
+ });
197
+ });
@@ -0,0 +1,206 @@
1
+ import { SpeechModelV3, SharedV3Warning } from '@ai-sdk/provider';
2
+ import {
3
+ combineHeaders,
4
+ createBinaryResponseHandler,
5
+ parseProviderOptions,
6
+ postJsonToApi,
7
+ } from '@ai-sdk/provider-utils';
8
+ import { z } from 'zod/v4';
9
+ import { LMNTConfig } from './lmnt-config';
10
+ import { lmntFailedResponseHandler } from './lmnt-error';
11
+ import { LMNTSpeechModelId } from './lmnt-speech-options';
12
+ import { LMNTSpeechAPITypes } from './lmnt-api-types';
13
+
14
+ // https://docs.lmnt.com/api-reference/speech/synthesize-speech-bytes
15
+ const lmntSpeechCallOptionsSchema = z.object({
16
+ /**
17
+ * The model to use for speech synthesis e.g. 'aurora' or 'blizzard'.
18
+ * @default 'aurora'
19
+ */
20
+ model: z
21
+ .union([z.enum(['aurora', 'blizzard']), z.string()])
22
+ .nullish()
23
+ .default('aurora'),
24
+
25
+ /**
26
+ * The audio format of the output.
27
+ * @default 'mp3'
28
+ */
29
+ format: z
30
+ .enum(['aac', 'mp3', 'mulaw', 'raw', 'wav'])
31
+ .nullish()
32
+ .default('mp3'),
33
+
34
+ /**
35
+ * The sample rate of the output audio in Hz.
36
+ * @default 24000
37
+ */
38
+ sampleRate: z
39
+ .union([z.literal(8000), z.literal(16000), z.literal(24000)])
40
+ .nullish()
41
+ .default(24000),
42
+
43
+ /**
44
+ * The speed of the speech. Range: 0.25 to 2.
45
+ * @default 1
46
+ */
47
+ speed: z.number().min(0.25).max(2).nullish().default(1),
48
+
49
+ /**
50
+ * A seed value for deterministic generation.
51
+ */
52
+ seed: z.number().int().nullish(),
53
+
54
+ /**
55
+ * Whether to use a conversational style.
56
+ * @default false
57
+ */
58
+ conversational: z.boolean().nullish().default(false),
59
+
60
+ /**
61
+ * Maximum length of the output in seconds (up to 300).
62
+ */
63
+ length: z.number().max(300).nullish(),
64
+
65
+ /**
66
+ * Top-p sampling parameter. Range: 0 to 1.
67
+ * @default 1
68
+ */
69
+ topP: z.number().min(0).max(1).nullish().default(1),
70
+
71
+ /**
72
+ * Temperature for sampling. Higher values increase randomness.
73
+ * @default 1
74
+ */
75
+ temperature: z.number().min(0).nullish().default(1),
76
+ });
77
+
78
+ export type LMNTSpeechCallOptions = z.infer<typeof lmntSpeechCallOptionsSchema>;
79
+
80
+ interface LMNTSpeechModelConfig extends LMNTConfig {
81
+ _internal?: {
82
+ currentDate?: () => Date;
83
+ };
84
+ }
85
+
86
+ export class LMNTSpeechModel implements SpeechModelV3 {
87
+ readonly specificationVersion = 'v3';
88
+
89
+ get provider(): string {
90
+ return this.config.provider;
91
+ }
92
+
93
+ constructor(
94
+ readonly modelId: LMNTSpeechModelId,
95
+ private readonly config: LMNTSpeechModelConfig,
96
+ ) {}
97
+
98
+ private async getArgs({
99
+ text,
100
+ voice = 'ava',
101
+ outputFormat = 'mp3',
102
+ speed,
103
+ language,
104
+ providerOptions,
105
+ }: Parameters<SpeechModelV3['doGenerate']>[0]) {
106
+ const warnings: SharedV3Warning[] = [];
107
+
108
+ // Parse provider options
109
+ const lmntOptions = await parseProviderOptions({
110
+ provider: 'lmnt',
111
+ providerOptions,
112
+ schema: lmntSpeechCallOptionsSchema,
113
+ });
114
+
115
+ // Create request body
116
+ const requestBody: Record<string, unknown> = {
117
+ model: this.modelId,
118
+ text,
119
+ voice,
120
+ response_format: 'mp3',
121
+ speed,
122
+ };
123
+
124
+ if (outputFormat) {
125
+ if (['mp3', 'aac', 'mulaw', 'raw', 'wav'].includes(outputFormat)) {
126
+ requestBody.response_format = outputFormat;
127
+ } else {
128
+ warnings.push({
129
+ type: 'unsupported',
130
+ feature: 'outputFormat',
131
+ details: `Unsupported output format: ${outputFormat}. Using mp3 instead.`,
132
+ });
133
+ }
134
+ }
135
+
136
+ // Add provider-specific options
137
+ if (lmntOptions) {
138
+ const speechModelOptions: Omit<LMNTSpeechAPITypes, 'voice' | 'text'> = {
139
+ conversational: lmntOptions.conversational ?? undefined,
140
+ length: lmntOptions.length ?? undefined,
141
+ seed: lmntOptions.seed ?? undefined,
142
+ speed: lmntOptions.speed ?? undefined,
143
+ temperature: lmntOptions.temperature ?? undefined,
144
+ top_p: lmntOptions.topP ?? undefined,
145
+ sample_rate: lmntOptions.sampleRate ?? undefined,
146
+ };
147
+
148
+ for (const key in speechModelOptions) {
149
+ const value =
150
+ speechModelOptions[
151
+ key as keyof Omit<LMNTSpeechAPITypes, 'voice' | 'text'>
152
+ ];
153
+ if (value !== undefined) {
154
+ requestBody[key] = value;
155
+ }
156
+ }
157
+ }
158
+
159
+ if (language) {
160
+ requestBody.language = language;
161
+ }
162
+
163
+ return {
164
+ requestBody,
165
+ warnings,
166
+ };
167
+ }
168
+
169
+ async doGenerate(
170
+ options: Parameters<SpeechModelV3['doGenerate']>[0],
171
+ ): Promise<Awaited<ReturnType<SpeechModelV3['doGenerate']>>> {
172
+ const currentDate = this.config._internal?.currentDate?.() ?? new Date();
173
+ const { requestBody, warnings } = await this.getArgs(options);
174
+
175
+ const {
176
+ value: audio,
177
+ responseHeaders,
178
+ rawValue: rawResponse,
179
+ } = await postJsonToApi({
180
+ url: this.config.url({
181
+ path: '/v1/ai/speech/bytes',
182
+ modelId: this.modelId,
183
+ }),
184
+ headers: combineHeaders(this.config.headers(), options.headers),
185
+ body: requestBody,
186
+ failedResponseHandler: lmntFailedResponseHandler,
187
+ successfulResponseHandler: createBinaryResponseHandler(),
188
+ abortSignal: options.abortSignal,
189
+ fetch: this.config.fetch,
190
+ });
191
+
192
+ return {
193
+ audio,
194
+ warnings,
195
+ request: {
196
+ body: JSON.stringify(requestBody),
197
+ },
198
+ response: {
199
+ timestamp: currentDate,
200
+ modelId: this.modelId,
201
+ headers: responseHeaders,
202
+ body: rawResponse,
203
+ },
204
+ };
205
+ }
206
+ }
@@ -0,0 +1 @@
1
+ export type LMNTSpeechModelId = 'aurora' | 'blizzard' | (string & {});
package/src/version.ts ADDED
@@ -0,0 +1,6 @@
1
+ // Version string of this package injected at build time.
2
+ declare const __PACKAGE_VERSION__: string | undefined;
3
+ export const VERSION: string =
4
+ typeof __PACKAGE_VERSION__ !== 'undefined'
5
+ ? __PACKAGE_VERSION__
6
+ : '0.0.0-test';