You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/NativeSpeech.ts
+11-4Lines changed: 11 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -31,12 +31,19 @@ export interface VoiceProps {
31
31
}
32
32
exportinterfaceVoiceOptions{
33
33
/**
34
-
* Determines how speech audio should behave with the iOS silent switch (ringer)
34
+
* If `true`, audio from other apps will be temporarily lowered (ducked) while speech is active.
35
+
* This is for critical announcements (e.g., navigation) and takes priority over `silentMode` on iOS.
36
+
* @default false
37
+
*/
38
+
ducking?: boolean;
39
+
/**
40
+
* Determines how speech audio interacts with the device's silent (ringer) switch.
41
+
* This option is ignored if `ducking` is `true`.
35
42
* @platform ios
36
43
*
37
-
* - `obey`: (Default) The library does not change the app's audio session. Speech audio will follow the app's current audio configuration or the system default
38
-
* - `respect`: Speech audio will be silenced by the ringer switch. This is for non-critical speech
39
-
* - `ignore`: Speech audio will play even if the ringer switch is on silent. Use this for critical speech like navigation
44
+
* - `obey`: (Default) Does not change the app's audio session. Speech follows the system default.
45
+
* - `respect`: Speech will be silenced by the ringer switch. Use for non-critical audio.
46
+
* - `ignore`: Speech will play even if the ringer is off. Use for critical audio when ducking is not desired.
40
47
*/
41
48
silentMode?: 'obey'|'respect'|'ignore';
42
49
/** The language code to use (e.g., 'en', 'fr', 'en-US', 'fr-FR') */
0 commit comments