@crewdle/web-sdk-types 1.0.44 → 1.0.46

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.
@@ -66,7 +66,8 @@ export declare enum GenerativeAIEngineType {
66
66
  Transformers = "transformers",
67
67
  OpenAI = "openai",
68
68
  Anthropic = "anthropic",
69
- VertexAI = "vertexai"
69
+ VertexAI = "vertexai",
70
+ ElevenLabs = "elevenlabs"
70
71
  }
71
72
  /**
72
73
  * The generative AI model interface.
@@ -67,4 +67,5 @@ export var GenerativeAIEngineType;
67
67
  GenerativeAIEngineType["OpenAI"] = "openai";
68
68
  GenerativeAIEngineType["Anthropic"] = "anthropic";
69
69
  GenerativeAIEngineType["VertexAI"] = "vertexai";
70
+ GenerativeAIEngineType["ElevenLabs"] = "elevenlabs";
70
71
  })(GenerativeAIEngineType || (GenerativeAIEngineType = {}));
@@ -12,5 +12,5 @@ export interface IGenerativeAISpeechCreateResult extends IGenerativeAIJobResult
12
12
  /**
13
13
  * The audio data for the generated speech.
14
14
  */
15
- audio: ArrayBuffer;
15
+ audio: ReadableStream;
16
16
  }
@@ -10,7 +10,7 @@ export interface IGenerativeAISpeechConnector {
10
10
  * @param voice The voice to use.
11
11
  * @param instructions Optional instructions for the speech.
12
12
  */
13
- speak(model: string, text: string, voice: string, instructions?: string): Promise<ArrayBuffer>;
13
+ speak(model: string, text: string, voice: string, instructions?: string): Promise<ReadableStream>;
14
14
  /**
15
15
  * Get the engine type.
16
16
  * @returns The engine type.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crewdle/web-sdk-types",
3
- "version": "1.0.44",
3
+ "version": "1.0.46",
4
4
  "description": "The Crewdle Mist Web SDK public types and interfaces",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",