@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/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
- Mode as ConversationMode,
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
+ }
@@ -17,6 +17,7 @@ export function constructOverrides(
17
17
  },
18
18
  tts: {
19
19
  voice_id: config.overrides.tts?.voiceId,
20
+ speed: config.overrides.tts?.speed,
20
21
  },
21
22
  conversation: {
22
23
  text_only: config.overrides.conversation?.textOnly,
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.5";
2
+ export const PACKAGE_VERSION = "0.5.6";