vargai 0.4.0-alpha10 → 0.4.0-alpha11
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/package.json
CHANGED
|
@@ -196,8 +196,16 @@ export function createElevenLabs(
|
|
|
196
196
|
};
|
|
197
197
|
}
|
|
198
198
|
|
|
199
|
-
|
|
200
|
-
export {
|
|
199
|
+
let _elevenlabs: ElevenLabsProvider | undefined;
|
|
200
|
+
export const elevenlabs = new Proxy({} as ElevenLabsProvider, {
|
|
201
|
+
get(_, prop) {
|
|
202
|
+
if (!_elevenlabs) {
|
|
203
|
+
_elevenlabs = createElevenLabs();
|
|
204
|
+
}
|
|
205
|
+
return _elevenlabs[prop as keyof ElevenLabsProvider];
|
|
206
|
+
},
|
|
207
|
+
});
|
|
208
|
+
export { VOICES };
|
|
201
209
|
|
|
202
210
|
export interface GenerateMusicOptions {
|
|
203
211
|
prompt: string;
|