@elevenlabs/react-native 0.5.5 → 0.5.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.
- package/.turbo/turbo-build.log +11 -11
- package/.turbo/turbo-generate-version.log +1 -1
- package/README.md +54 -1
- package/dist/ElevenLabsProvider.d.ts +2 -1
- package/dist/components/LiveKitRoomWrapper.d.ts +3 -2
- package/dist/hooks/useConversationSession.d.ts +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/lib.js +1 -1
- package/dist/lib.js.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/types.d.ts +18 -1
- package/dist/version.d.ts +1 -1
- package/package.json +2 -2
- package/src/ElevenLabsProvider.test.tsx +64 -1
- package/src/ElevenLabsProvider.tsx +27 -7
- package/src/components/LiveKitRoomWrapper.tsx +22 -2
- package/src/index.ts +1 -0
- package/src/types.ts +24 -6
- package/src/utils/overrides.ts +1 -0
- package/src/version.ts +1 -1
package/src/types.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import type * as Types from "@elevenlabs/types";
|
|
2
2
|
import type {
|
|
3
|
+
AsrInitiationMetadataEvent as AsrMetadataEvent,
|
|
4
|
+
Callbacks,
|
|
5
|
+
ConversationMetadata,
|
|
6
|
+
Mode as ConversationMode,
|
|
3
7
|
Incoming,
|
|
4
|
-
Outgoing,
|
|
5
8
|
Interruption,
|
|
6
|
-
ConversationMetadata,
|
|
7
|
-
Ping,
|
|
8
9
|
Role as MessageRole,
|
|
9
|
-
|
|
10
|
+
Outgoing,
|
|
11
|
+
Ping,
|
|
10
12
|
Status,
|
|
11
|
-
Callbacks,
|
|
12
|
-
AsrInitiationMetadataEvent as AsrMetadataEvent,
|
|
13
13
|
} from "@elevenlabs/types";
|
|
14
14
|
export type { Callbacks } from "@elevenlabs/types";
|
|
15
15
|
|
|
@@ -70,6 +70,7 @@ export type ConversationConfig = {
|
|
|
70
70
|
};
|
|
71
71
|
tts?: {
|
|
72
72
|
voiceId?: string;
|
|
73
|
+
speed?: number;
|
|
73
74
|
};
|
|
74
75
|
conversation?: {
|
|
75
76
|
textOnly?: boolean;
|
|
@@ -139,3 +140,20 @@ export type ConversationEvent =
|
|
|
139
140
|
| ConversationMetadataEvent
|
|
140
141
|
| AsrInitiationMetadataEvent
|
|
141
142
|
| AgentChatResponsePartEvent;
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Audio session configuration for controlling how the SDK handles audio
|
|
146
|
+
*/
|
|
147
|
+
export interface AudioSessionConfig {
|
|
148
|
+
/**
|
|
149
|
+
* Whether audio should mix with other audio sources.
|
|
150
|
+
* When true, the SDK will configure the audio session to allow
|
|
151
|
+
* concurrent audio playback with other audio sources.
|
|
152
|
+
*
|
|
153
|
+
* iOS: Adds AVAudioSessionCategoryOptionMixWithOthers
|
|
154
|
+
* Android: Uses AUDIOFOCUS_GAIN_TRANSIENT_MAY_DUCK
|
|
155
|
+
*
|
|
156
|
+
* @default false (exclusive audio session)
|
|
157
|
+
*/
|
|
158
|
+
allowMixingWithOthers?: boolean;
|
|
159
|
+
}
|
package/src/utils/overrides.ts
CHANGED
package/src/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// This file is auto-generated during build
|
|
2
|
-
export const PACKAGE_VERSION = "0.5.
|
|
2
|
+
export const PACKAGE_VERSION = "0.5.6";
|