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
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,15 @@ export interface VoiceProps {
30
30
identifier: string;
31
31
}
32
32
exportinterfaceVoiceOptions{
33
+
/**
34
+
* Determines how speech audio should behave with the iOS silent switch (ringer)
35
+
* @platform ios
36
+
*
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
40
+
*/
41
+
silentMode?: 'obey'|'respect'|'ignore';
33
42
/** The language code to use (e.g., 'en', 'fr', 'en-US', 'fr-FR') */
0 commit comments