@elevenlabs/client 0.5.2 → 0.6.1
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/README.md +59 -1
- package/dist/BaseConversation.d.ts +2 -2
- package/dist/VoiceConversation.d.ts +11 -6
- package/dist/index.d.ts +5 -1
- package/dist/lib.cjs +1 -1
- package/dist/lib.cjs.map +1 -1
- package/dist/lib.modern.js +1 -1
- package/dist/lib.modern.js.map +1 -1
- package/dist/lib.module.js +1 -1
- package/dist/lib.module.js.map +1 -1
- package/dist/lib.umd.js +1 -1
- package/dist/lib.umd.js.map +1 -1
- package/dist/utils/BaseConnection.d.ts +1 -0
- package/dist/utils/WebRTCConnection.d.ts +8 -0
- package/dist/utils/input.d.ts +5 -2
- package/dist/utils/output.d.ts +3 -1
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
package/dist/utils/input.d.ts
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import type { FormatConfig } from "./connection";
|
|
2
2
|
export type InputConfig = {
|
|
3
3
|
preferHeadphonesForIosDevices?: boolean;
|
|
4
|
+
inputDeviceId?: string;
|
|
4
5
|
};
|
|
5
6
|
export declare class Input {
|
|
6
7
|
readonly context: AudioContext;
|
|
7
8
|
readonly analyser: AnalyserNode;
|
|
8
9
|
readonly worklet: AudioWorkletNode;
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
inputStream: MediaStream;
|
|
11
|
+
private mediaStreamSource;
|
|
12
|
+
static create({ sampleRate, format, preferHeadphonesForIosDevices, inputDeviceId, }: FormatConfig & InputConfig): Promise<Input>;
|
|
11
13
|
private constructor();
|
|
12
14
|
close(): Promise<void>;
|
|
13
15
|
setMuted(isMuted: boolean): void;
|
|
16
|
+
setInputDevice(inputDeviceId: string): Promise<void>;
|
|
14
17
|
}
|
package/dist/utils/output.d.ts
CHANGED
|
@@ -4,7 +4,9 @@ export declare class Output {
|
|
|
4
4
|
readonly analyser: AnalyserNode;
|
|
5
5
|
readonly gain: GainNode;
|
|
6
6
|
readonly worklet: AudioWorkletNode;
|
|
7
|
-
|
|
7
|
+
readonly audioElement: HTMLAudioElement;
|
|
8
|
+
static create({ sampleRate, format, outputDeviceId, }: FormatConfig): Promise<Output>;
|
|
8
9
|
private constructor();
|
|
10
|
+
setOutputDevice(deviceId: string): Promise<void>;
|
|
9
11
|
close(): Promise<void>;
|
|
10
12
|
}
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const PACKAGE_VERSION = "0.
|
|
1
|
+
export declare const PACKAGE_VERSION = "0.6.1";
|