sarvamai 0.1.6-a4 → 0.1.6

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.
@@ -51,8 +51,8 @@ class SarvamAIClient {
51
51
  this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
52
52
  "X-Fern-Language": "JavaScript",
53
53
  "X-Fern-SDK-Name": "sarvamai",
54
- "X-Fern-SDK-Version": "0.1.6-a4",
55
- "User-Agent": "sarvamai/0.1.6-a4",
54
+ "X-Fern-SDK-Version": "0.1.6",
55
+ "User-Agent": "sarvamai/0.1.6",
56
56
  "X-Fern-Runtime": core.RUNTIME.type,
57
57
  "X-Fern-Runtime-Version": core.RUNTIME.version,
58
58
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -38,4 +38,6 @@ export interface TextToSpeechRequest {
38
38
  enable_preprocessing?: boolean;
39
39
  /** Specifies the model to use for text-to-speech conversion. Default is bulbul:v2. */
40
40
  model?: SarvamAI.TextToSpeechModel;
41
+ /** Specifies the audio codec for the output audio file. Different codecs offer various compression and quality characteristics. */
42
+ audio_codec?: SarvamAI.AudioCodec;
41
43
  }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Audio codec options for the non-streaming /text-to-speech endpoint
6
+ */
7
+ export type AudioCodec = "mp3" | "linear16" | "mulaw" | "alaw" | "opus" | "flac" | "aac" | "wav";
8
+ export declare const AudioCodec: {
9
+ readonly Mp3: "mp3";
10
+ readonly Linear16: "linear16";
11
+ readonly Mulaw: "mulaw";
12
+ readonly Alaw: "alaw";
13
+ readonly Opus: "opus";
14
+ readonly Flac: "flac";
15
+ readonly Aac: "aac";
16
+ readonly Wav: "wav";
17
+ };
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.AudioCodec = void 0;
7
+ exports.AudioCodec = {
8
+ Mp3: "mp3",
9
+ Linear16: "linear16",
10
+ Mulaw: "mulaw",
11
+ Alaw: "alaw",
12
+ Opus: "opus",
13
+ Flac: "flac",
14
+ Aac: "aac",
15
+ Wav: "wav",
16
+ };
@@ -1,8 +1,10 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type SpeechToTextModel = "saarika:v2" | "saarika:v2.5";
4
+ export type SpeechToTextModel = "saarika:v1" | "saarika:v2" | "saarika:v2.5" | "saarika:flash";
5
5
  export declare const SpeechToTextModel: {
6
+ readonly SaarikaV1: "saarika:v1";
6
7
  readonly SaarikaV2: "saarika:v2";
7
8
  readonly SaarikaV25: "saarika:v2.5";
9
+ readonly SaarikaFlash: "saarika:flash";
8
10
  };
@@ -5,6 +5,8 @@
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.SpeechToTextModel = void 0;
7
7
  exports.SpeechToTextModel = {
8
+ SaarikaV1: "saarika:v1",
8
9
  SaarikaV2: "saarika:v2",
9
10
  SaarikaV25: "saarika:v2.5",
11
+ SaarikaFlash: "saarika:flash",
10
12
  };
@@ -1,8 +1,10 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type SpeechToTextTranslateModel = "saaras:v2" | "saaras:v2.5";
4
+ export type SpeechToTextTranslateModel = "saaras:v1" | "saaras:v2" | "saaras:v2.5" | "saaras:flash";
5
5
  export declare const SpeechToTextTranslateModel: {
6
+ readonly SaarasV1: "saaras:v1";
6
7
  readonly SaarasV2: "saaras:v2";
7
8
  readonly SaarasV25: "saaras:v2.5";
9
+ readonly SaarasFlash: "saaras:flash";
8
10
  };
@@ -5,6 +5,8 @@
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.SpeechToTextTranslateModel = void 0;
7
7
  exports.SpeechToTextTranslateModel = {
8
+ SaarasV1: "saaras:v1",
8
9
  SaarasV2: "saaras:v2",
9
10
  SaarasV25: "saaras:v2.5",
11
+ SaarasFlash: "saaras:flash",
10
12
  };
@@ -61,3 +61,4 @@ export * from "./TextToSpeechModel.js";
61
61
  export * from "./TextToSpeechResponse.js";
62
62
  export * from "./TextToSpeechSpeaker.js";
63
63
  export * from "./Format.js";
64
+ export * from "./AudioCodec.js";
@@ -77,3 +77,4 @@ __exportStar(require("./TextToSpeechModel.js"), exports);
77
77
  __exportStar(require("./TextToSpeechResponse.js"), exports);
78
78
  __exportStar(require("./TextToSpeechSpeaker.js"), exports);
79
79
  __exportStar(require("./Format.js"), exports);
80
+ __exportStar(require("./AudioCodec.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.6-a4";
1
+ export declare const SDK_VERSION = "0.1.6";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.1.6-a4";
4
+ exports.SDK_VERSION = "0.1.6";
@@ -15,8 +15,8 @@ export class SarvamAIClient {
15
15
  this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
16
16
  "X-Fern-Language": "JavaScript",
17
17
  "X-Fern-SDK-Name": "sarvamai",
18
- "X-Fern-SDK-Version": "0.1.6-a4",
19
- "User-Agent": "sarvamai/0.1.6-a4",
18
+ "X-Fern-SDK-Version": "0.1.6",
19
+ "User-Agent": "sarvamai/0.1.6",
20
20
  "X-Fern-Runtime": core.RUNTIME.type,
21
21
  "X-Fern-Runtime-Version": core.RUNTIME.version,
22
22
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -38,4 +38,6 @@ export interface TextToSpeechRequest {
38
38
  enable_preprocessing?: boolean;
39
39
  /** Specifies the model to use for text-to-speech conversion. Default is bulbul:v2. */
40
40
  model?: SarvamAI.TextToSpeechModel;
41
+ /** Specifies the audio codec for the output audio file. Different codecs offer various compression and quality characteristics. */
42
+ audio_codec?: SarvamAI.AudioCodec;
41
43
  }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Audio codec options for the non-streaming /text-to-speech endpoint
6
+ */
7
+ export type AudioCodec = "mp3" | "linear16" | "mulaw" | "alaw" | "opus" | "flac" | "aac" | "wav";
8
+ export declare const AudioCodec: {
9
+ readonly Mp3: "mp3";
10
+ readonly Linear16: "linear16";
11
+ readonly Mulaw: "mulaw";
12
+ readonly Alaw: "alaw";
13
+ readonly Opus: "opus";
14
+ readonly Flac: "flac";
15
+ readonly Aac: "aac";
16
+ readonly Wav: "wav";
17
+ };
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export const AudioCodec = {
5
+ Mp3: "mp3",
6
+ Linear16: "linear16",
7
+ Mulaw: "mulaw",
8
+ Alaw: "alaw",
9
+ Opus: "opus",
10
+ Flac: "flac",
11
+ Aac: "aac",
12
+ Wav: "wav",
13
+ };
@@ -1,8 +1,10 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type SpeechToTextModel = "saarika:v2" | "saarika:v2.5";
4
+ export type SpeechToTextModel = "saarika:v1" | "saarika:v2" | "saarika:v2.5" | "saarika:flash";
5
5
  export declare const SpeechToTextModel: {
6
+ readonly SaarikaV1: "saarika:v1";
6
7
  readonly SaarikaV2: "saarika:v2";
7
8
  readonly SaarikaV25: "saarika:v2.5";
9
+ readonly SaarikaFlash: "saarika:flash";
8
10
  };
@@ -2,6 +2,8 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  export const SpeechToTextModel = {
5
+ SaarikaV1: "saarika:v1",
5
6
  SaarikaV2: "saarika:v2",
6
7
  SaarikaV25: "saarika:v2.5",
8
+ SaarikaFlash: "saarika:flash",
7
9
  };
@@ -1,8 +1,10 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type SpeechToTextTranslateModel = "saaras:v2" | "saaras:v2.5";
4
+ export type SpeechToTextTranslateModel = "saaras:v1" | "saaras:v2" | "saaras:v2.5" | "saaras:flash";
5
5
  export declare const SpeechToTextTranslateModel: {
6
+ readonly SaarasV1: "saaras:v1";
6
7
  readonly SaarasV2: "saaras:v2";
7
8
  readonly SaarasV25: "saaras:v2.5";
9
+ readonly SaarasFlash: "saaras:flash";
8
10
  };
@@ -2,6 +2,8 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  export const SpeechToTextTranslateModel = {
5
+ SaarasV1: "saaras:v1",
5
6
  SaarasV2: "saaras:v2",
6
7
  SaarasV25: "saaras:v2.5",
8
+ SaarasFlash: "saaras:flash",
7
9
  };
@@ -61,3 +61,4 @@ export * from "./TextToSpeechModel.mjs";
61
61
  export * from "./TextToSpeechResponse.mjs";
62
62
  export * from "./TextToSpeechSpeaker.mjs";
63
63
  export * from "./Format.mjs";
64
+ export * from "./AudioCodec.mjs";
@@ -61,3 +61,4 @@ export * from "./TextToSpeechModel.mjs";
61
61
  export * from "./TextToSpeechResponse.mjs";
62
62
  export * from "./TextToSpeechSpeaker.mjs";
63
63
  export * from "./Format.mjs";
64
+ export * from "./AudioCodec.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.6-a4";
1
+ export declare const SDK_VERSION = "0.1.6";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.1.6-a4";
1
+ export const SDK_VERSION = "0.1.6";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sarvamai",
3
- "version": "0.1.6-a4",
3
+ "version": "0.1.6",
4
4
  "private": false,
5
5
  "repository": "https://github.com/sarvamai/sarvam-javascript-sdk",
6
6
  "type": "commonjs",