expo-speech 13.1.8-canary-20250613-b29d676-2 → 13.2.0-canary-20250701-6a945c5

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.
Files changed (43) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/android/build.gradle +2 -2
  3. package/build/Speech.types.d.ts +5 -0
  4. package/build/Speech.types.d.ts.map +1 -1
  5. package/build/Speech.types.js.map +1 -1
  6. package/expo-module.config.json +1 -1
  7. package/ios/SpeechModule.swift +4 -0
  8. package/ios/SpeechOptions.swift +2 -0
  9. package/local-maven-repo/host/exp/exponent/expo.modules.speech/{13.1.8-canary-20250613-b29d676-2/expo.modules.speech-13.1.8-canary-20250613-b29d676-2.module → 13.2.0-canary-20250701-6a945c5/expo.modules.speech-13.2.0-canary-20250701-6a945c5.module} +7 -7
  10. package/local-maven-repo/host/exp/exponent/expo.modules.speech/13.2.0-canary-20250701-6a945c5/expo.modules.speech-13.2.0-canary-20250701-6a945c5.module.md5 +1 -0
  11. package/local-maven-repo/host/exp/exponent/expo.modules.speech/13.2.0-canary-20250701-6a945c5/expo.modules.speech-13.2.0-canary-20250701-6a945c5.module.sha1 +1 -0
  12. package/local-maven-repo/host/exp/exponent/expo.modules.speech/13.2.0-canary-20250701-6a945c5/expo.modules.speech-13.2.0-canary-20250701-6a945c5.module.sha256 +1 -0
  13. package/local-maven-repo/host/exp/exponent/expo.modules.speech/13.2.0-canary-20250701-6a945c5/expo.modules.speech-13.2.0-canary-20250701-6a945c5.module.sha512 +1 -0
  14. package/local-maven-repo/host/exp/exponent/expo.modules.speech/{13.1.8-canary-20250613-b29d676-2/expo.modules.speech-13.1.8-canary-20250613-b29d676-2.pom → 13.2.0-canary-20250701-6a945c5/expo.modules.speech-13.2.0-canary-20250701-6a945c5.pom} +1 -1
  15. package/local-maven-repo/host/exp/exponent/expo.modules.speech/13.2.0-canary-20250701-6a945c5/expo.modules.speech-13.2.0-canary-20250701-6a945c5.pom.md5 +1 -0
  16. package/local-maven-repo/host/exp/exponent/expo.modules.speech/13.2.0-canary-20250701-6a945c5/expo.modules.speech-13.2.0-canary-20250701-6a945c5.pom.sha1 +1 -0
  17. package/local-maven-repo/host/exp/exponent/expo.modules.speech/13.2.0-canary-20250701-6a945c5/expo.modules.speech-13.2.0-canary-20250701-6a945c5.pom.sha256 +1 -0
  18. package/local-maven-repo/host/exp/exponent/expo.modules.speech/13.2.0-canary-20250701-6a945c5/expo.modules.speech-13.2.0-canary-20250701-6a945c5.pom.sha512 +1 -0
  19. package/local-maven-repo/host/exp/exponent/expo.modules.speech/maven-metadata.xml +4 -4
  20. package/local-maven-repo/host/exp/exponent/expo.modules.speech/maven-metadata.xml.md5 +1 -1
  21. package/local-maven-repo/host/exp/exponent/expo.modules.speech/maven-metadata.xml.sha1 +1 -1
  22. package/local-maven-repo/host/exp/exponent/expo.modules.speech/maven-metadata.xml.sha256 +1 -1
  23. package/local-maven-repo/host/exp/exponent/expo.modules.speech/maven-metadata.xml.sha512 +1 -1
  24. package/package.json +3 -3
  25. package/src/Speech/Speech.types.ts +5 -0
  26. package/local-maven-repo/host/exp/exponent/expo.modules.speech/13.1.8-canary-20250613-b29d676-2/expo.modules.speech-13.1.8-canary-20250613-b29d676-2.module.md5 +0 -1
  27. package/local-maven-repo/host/exp/exponent/expo.modules.speech/13.1.8-canary-20250613-b29d676-2/expo.modules.speech-13.1.8-canary-20250613-b29d676-2.module.sha1 +0 -1
  28. package/local-maven-repo/host/exp/exponent/expo.modules.speech/13.1.8-canary-20250613-b29d676-2/expo.modules.speech-13.1.8-canary-20250613-b29d676-2.module.sha256 +0 -1
  29. package/local-maven-repo/host/exp/exponent/expo.modules.speech/13.1.8-canary-20250613-b29d676-2/expo.modules.speech-13.1.8-canary-20250613-b29d676-2.module.sha512 +0 -1
  30. package/local-maven-repo/host/exp/exponent/expo.modules.speech/13.1.8-canary-20250613-b29d676-2/expo.modules.speech-13.1.8-canary-20250613-b29d676-2.pom.md5 +0 -1
  31. package/local-maven-repo/host/exp/exponent/expo.modules.speech/13.1.8-canary-20250613-b29d676-2/expo.modules.speech-13.1.8-canary-20250613-b29d676-2.pom.sha1 +0 -1
  32. package/local-maven-repo/host/exp/exponent/expo.modules.speech/13.1.8-canary-20250613-b29d676-2/expo.modules.speech-13.1.8-canary-20250613-b29d676-2.pom.sha256 +0 -1
  33. package/local-maven-repo/host/exp/exponent/expo.modules.speech/13.1.8-canary-20250613-b29d676-2/expo.modules.speech-13.1.8-canary-20250613-b29d676-2.pom.sha512 +0 -1
  34. /package/local-maven-repo/host/exp/exponent/expo.modules.speech/{13.1.8-canary-20250613-b29d676-2/expo.modules.speech-13.1.8-canary-20250613-b29d676-2-sources.jar → 13.2.0-canary-20250701-6a945c5/expo.modules.speech-13.2.0-canary-20250701-6a945c5-sources.jar} +0 -0
  35. /package/local-maven-repo/host/exp/exponent/expo.modules.speech/{13.1.8-canary-20250613-b29d676-2/expo.modules.speech-13.1.8-canary-20250613-b29d676-2-sources.jar.md5 → 13.2.0-canary-20250701-6a945c5/expo.modules.speech-13.2.0-canary-20250701-6a945c5-sources.jar.md5} +0 -0
  36. /package/local-maven-repo/host/exp/exponent/expo.modules.speech/{13.1.8-canary-20250613-b29d676-2/expo.modules.speech-13.1.8-canary-20250613-b29d676-2-sources.jar.sha1 → 13.2.0-canary-20250701-6a945c5/expo.modules.speech-13.2.0-canary-20250701-6a945c5-sources.jar.sha1} +0 -0
  37. /package/local-maven-repo/host/exp/exponent/expo.modules.speech/{13.1.8-canary-20250613-b29d676-2/expo.modules.speech-13.1.8-canary-20250613-b29d676-2-sources.jar.sha256 → 13.2.0-canary-20250701-6a945c5/expo.modules.speech-13.2.0-canary-20250701-6a945c5-sources.jar.sha256} +0 -0
  38. /package/local-maven-repo/host/exp/exponent/expo.modules.speech/{13.1.8-canary-20250613-b29d676-2/expo.modules.speech-13.1.8-canary-20250613-b29d676-2-sources.jar.sha512 → 13.2.0-canary-20250701-6a945c5/expo.modules.speech-13.2.0-canary-20250701-6a945c5-sources.jar.sha512} +0 -0
  39. /package/local-maven-repo/host/exp/exponent/expo.modules.speech/{13.1.8-canary-20250613-b29d676-2/expo.modules.speech-13.1.8-canary-20250613-b29d676-2.aar → 13.2.0-canary-20250701-6a945c5/expo.modules.speech-13.2.0-canary-20250701-6a945c5.aar} +0 -0
  40. /package/local-maven-repo/host/exp/exponent/expo.modules.speech/{13.1.8-canary-20250613-b29d676-2/expo.modules.speech-13.1.8-canary-20250613-b29d676-2.aar.md5 → 13.2.0-canary-20250701-6a945c5/expo.modules.speech-13.2.0-canary-20250701-6a945c5.aar.md5} +0 -0
  41. /package/local-maven-repo/host/exp/exponent/expo.modules.speech/{13.1.8-canary-20250613-b29d676-2/expo.modules.speech-13.1.8-canary-20250613-b29d676-2.aar.sha1 → 13.2.0-canary-20250701-6a945c5/expo.modules.speech-13.2.0-canary-20250701-6a945c5.aar.sha1} +0 -0
  42. /package/local-maven-repo/host/exp/exponent/expo.modules.speech/{13.1.8-canary-20250613-b29d676-2/expo.modules.speech-13.1.8-canary-20250613-b29d676-2.aar.sha256 → 13.2.0-canary-20250701-6a945c5/expo.modules.speech-13.2.0-canary-20250701-6a945c5.aar.sha256} +0 -0
  43. /package/local-maven-repo/host/exp/exponent/expo.modules.speech/{13.1.8-canary-20250613-b29d676-2/expo.modules.speech-13.1.8-canary-20250613-b29d676-2.aar.sha512 → 13.2.0-canary-20250701-6a945c5/expo.modules.speech-13.2.0-canary-20250701-6a945c5.aar.sha512} +0 -0
package/CHANGELOG.md CHANGED
@@ -6,6 +6,8 @@
6
6
 
7
7
  ### 🎉 New features
8
8
 
9
+ - [iOS] added `useApplicationAudioSession` option ([#37487](https://github.com/expo/expo/pull/37487) by [@vonovak](https://github.com/vonovak))
10
+
9
11
  ### 🐛 Bug fixes
10
12
 
11
13
  ### 💡 Others
@@ -4,12 +4,12 @@ plugins {
4
4
  }
5
5
 
6
6
  group = 'host.exp.exponent'
7
- version = '13.1.8-canary-20250613-b29d676-2'
7
+ version = '13.2.0-canary-20250701-6a945c5'
8
8
 
9
9
  android {
10
10
  namespace "expo.modules.speech"
11
11
  defaultConfig {
12
12
  versionCode 18
13
- versionName "13.1.8-canary-20250613-b29d676-2"
13
+ versionName "13.2.0-canary-20250701-6a945c5"
14
14
  }
15
15
  }
@@ -23,6 +23,11 @@ export type SpeechOptions = {
23
23
  * Rate of the voice to speak `text`. `1.0` is the normal rate.
24
24
  */
25
25
  rate?: number;
26
+ /**
27
+ * If you set this value to `false`, the system creates a separate audio session to automatically manage speech, interruptions, and mixing and ducking the speech with other audio sources.
28
+ * @platform ios
29
+ */
30
+ useApplicationAudioSession?: boolean;
26
31
  /**
27
32
  * A callback that is invoked when speaking starts.
28
33
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Speech.types.d.ts","sourceRoot":"","sources":["../src/Speech/Speech.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAAG,CAAC,IAAI,EAAE,wBAAwB,EAAE,EAAE,EAAE,oBAAoB,KAAK,GAAG,CAAC;AACpG,MAAM,MAAM,mBAAmB,GAAG;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,CAAC;AAE5E;;;;GAIG;AACH,MAAM,MAAM,2BAA2B,GAAG,CAAC,EAAE,EAAE,mBAAmB,KAAK,IAAI,CAAC;AAG5E,MAAM,MAAM,aAAa,GAAG;IAC1B;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,GAAG,mBAAmB,CAAC;IAC3C;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,IAAI,GAAG,mBAAmB,CAAC;IAC7C;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,GAAG,mBAAmB,CAAC;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,EAAE,YAAY,CAAC;IACtB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAGF,MAAM,MAAM,QAAQ,GAAG,KAAK,GAAG;IAC7B,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,OAAO,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Speech.types.js","sourceRoot":"","sources":["../src/Speech/Speech.types.ts"],"names":[],"mappings":"AAkEA,cAAc;AACd;;GAEG;AACH,MAAM,CAAN,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,mCAAmB,CAAA;IACnB,qCAAqB,CAAA;AACvB,CAAC,EAHW,YAAY,KAAZ,YAAY,QAGvB","sourcesContent":["export type SpeechEventCallback = (this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any;\nexport type NativeBoundaryEvent = { charIndex: number; charLength: number };\n\n/**\n * Native-only callback with parameters related to the word about to be uttered.\n * @platform ios\n * @platform android\n */\nexport type NativeBoundaryEventCallback = (ev: NativeBoundaryEvent) => void;\n\n// @needsAudit @docsMissing\nexport type SpeechOptions = {\n /**\n * The code of a language that should be used to read the `text`, refer to IETF BCP 47 to see\n * valid codes.\n */\n language?: string;\n /**\n * Pitch of the voice to speak `text`. `1.0` is the normal pitch.\n */\n pitch?: number;\n /**\n * Rate of the voice to speak `text`. `1.0` is the normal rate.\n */\n rate?: number;\n /**\n * A callback that is invoked when speaking starts.\n */\n onStart?: () => void | SpeechEventCallback;\n /**\n * A callback that is invoked when speaking is stopped by calling `Speech.stop()`.\n */\n onStopped?: () => void | SpeechEventCallback;\n /**\n * A callback that is invoked when speaking finishes.\n */\n onDone?: () => void | SpeechEventCallback;\n /**\n * A callback that is invoked when an error occurred while speaking.\n * @param error\n * @platform android\n * @platform ios\n */\n onError?: (error: Error) => void | SpeechEventCallback;\n /**\n * Volume of the voice to speak `text`. A number between `0.0` (muted) and `1.0` (max volume)\n *\n * @default 1.0\n * @platform web\n */\n volume?: number;\n /**\n * Voice identifier.\n */\n voice?: string;\n _voiceIndex?: number;\n\n /**\n * A callback that is invoked when the spoken utterance reaches a word.\n */\n onBoundary?: NativeBoundaryEventCallback | SpeechEventCallback | null;\n onMark?: SpeechEventCallback | null;\n onPause?: SpeechEventCallback | null;\n onResume?: SpeechEventCallback | null;\n};\n\n// @needsAudit\n/**\n * Enum representing the voice quality.\n */\nexport enum VoiceQuality {\n Default = 'Default',\n Enhanced = 'Enhanced',\n}\n\n// @needsAudit\n/**\n * Object describing the available voices on the device.\n */\nexport type Voice = {\n /**\n * Voice unique identifier.\n */\n identifier: string;\n /**\n * Voice name.\n */\n name: string;\n /**\n * Voice quality.\n */\n quality: VoiceQuality;\n /**\n * Voice language.\n */\n language: string;\n};\n\n// @docsMissing\nexport type WebVoice = Voice & {\n isDefault: boolean;\n localService: boolean;\n name: string;\n voiceURI: string;\n};\n"]}
1
+ {"version":3,"file":"Speech.types.js","sourceRoot":"","sources":["../src/Speech/Speech.types.ts"],"names":[],"mappings":"AAuEA,cAAc;AACd;;GAEG;AACH,MAAM,CAAN,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,mCAAmB,CAAA;IACnB,qCAAqB,CAAA;AACvB,CAAC,EAHW,YAAY,KAAZ,YAAY,QAGvB","sourcesContent":["export type SpeechEventCallback = (this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any;\nexport type NativeBoundaryEvent = { charIndex: number; charLength: number };\n\n/**\n * Native-only callback with parameters related to the word about to be uttered.\n * @platform ios\n * @platform android\n */\nexport type NativeBoundaryEventCallback = (ev: NativeBoundaryEvent) => void;\n\n// @needsAudit @docsMissing\nexport type SpeechOptions = {\n /**\n * The code of a language that should be used to read the `text`, refer to IETF BCP 47 to see\n * valid codes.\n */\n language?: string;\n /**\n * Pitch of the voice to speak `text`. `1.0` is the normal pitch.\n */\n pitch?: number;\n /**\n * Rate of the voice to speak `text`. `1.0` is the normal rate.\n */\n rate?: number;\n /**\n * If you set this value to `false`, the system creates a separate audio session to automatically manage speech, interruptions, and mixing and ducking the speech with other audio sources.\n * @platform ios\n */\n useApplicationAudioSession?: boolean;\n /**\n * A callback that is invoked when speaking starts.\n */\n onStart?: () => void | SpeechEventCallback;\n /**\n * A callback that is invoked when speaking is stopped by calling `Speech.stop()`.\n */\n onStopped?: () => void | SpeechEventCallback;\n /**\n * A callback that is invoked when speaking finishes.\n */\n onDone?: () => void | SpeechEventCallback;\n /**\n * A callback that is invoked when an error occurred while speaking.\n * @param error\n * @platform android\n * @platform ios\n */\n onError?: (error: Error) => void | SpeechEventCallback;\n /**\n * Volume of the voice to speak `text`. A number between `0.0` (muted) and `1.0` (max volume)\n *\n * @default 1.0\n * @platform web\n */\n volume?: number;\n /**\n * Voice identifier.\n */\n voice?: string;\n _voiceIndex?: number;\n\n /**\n * A callback that is invoked when the spoken utterance reaches a word.\n */\n onBoundary?: NativeBoundaryEventCallback | SpeechEventCallback | null;\n onMark?: SpeechEventCallback | null;\n onPause?: SpeechEventCallback | null;\n onResume?: SpeechEventCallback | null;\n};\n\n// @needsAudit\n/**\n * Enum representing the voice quality.\n */\nexport enum VoiceQuality {\n Default = 'Default',\n Enhanced = 'Enhanced',\n}\n\n// @needsAudit\n/**\n * Object describing the available voices on the device.\n */\nexport type Voice = {\n /**\n * Voice unique identifier.\n */\n identifier: string;\n /**\n * Voice name.\n */\n name: string;\n /**\n * Voice quality.\n */\n quality: VoiceQuality;\n /**\n * Voice language.\n */\n language: string;\n};\n\n// @docsMissing\nexport type WebVoice = Voice & {\n isDefault: boolean;\n localService: boolean;\n name: string;\n voiceURI: string;\n};\n"]}
@@ -8,7 +8,7 @@
8
8
  "publication": {
9
9
  "groupId": "host.exp.exponent",
10
10
  "artifactId": "expo.modules.speech",
11
- "version": "13.1.8-canary-20250613-b29d676-2",
11
+ "version": "13.2.0-canary-20250701-6a945c5",
12
12
  "repository": "local-maven-repo"
13
13
  }
14
14
  }
@@ -49,6 +49,10 @@ public final class SpeechModule: Module, SpeechResultHadler {
49
49
  utterance.rate = Float(rate) * AVSpeechUtteranceDefaultSpeechRate
50
50
  }
51
51
 
52
+ if let useApplicationAudioSession = options.useApplicationAudioSession {
53
+ synthesizer.usesApplicationAudioSession = useApplicationAudioSession
54
+ }
55
+
52
56
  synthesizer.speak(utterance)
53
57
  }
54
58
 
@@ -9,6 +9,8 @@ struct SpeechOptions: Record {
9
9
  var rate: Double?
10
10
  @Field
11
11
  var voice: String?
12
+ @Field
13
+ var useApplicationAudioSession: Bool?
12
14
  }
13
15
 
14
16
  struct VoiceInfo: Record {
@@ -3,7 +3,7 @@
3
3
  "component": {
4
4
  "group": "host.exp.exponent",
5
5
  "module": "expo.modules.speech",
6
- "version": "13.1.8-canary-20250613-b29d676-2",
6
+ "version": "13.2.0-canary-20250701-6a945c5",
7
7
  "attributes": {
8
8
  "org.gradle.status": "release"
9
9
  }
@@ -24,8 +24,8 @@
24
24
  },
25
25
  "files": [
26
26
  {
27
- "name": "expo.modules.speech-13.1.8-canary-20250613-b29d676-2.aar",
28
- "url": "expo.modules.speech-13.1.8-canary-20250613-b29d676-2.aar",
27
+ "name": "expo.modules.speech-13.2.0-canary-20250701-6a945c5.aar",
28
+ "url": "expo.modules.speech-13.2.0-canary-20250701-6a945c5.aar",
29
29
  "size": 33720,
30
30
  "sha512": "23b0c28f0ffda211d9c830e6a68dcef296753205a602969b49909cee2bf37db7f17d318e977ca4a4aba9e6a7c58e582908438dcafde789217e2db150379dc013",
31
31
  "sha256": "620a5b863fbe33f645f563d9eab13301d04fcadbb8e19fef2b1ad773c351e39b",
@@ -53,8 +53,8 @@
53
53
  ],
54
54
  "files": [
55
55
  {
56
- "name": "expo.modules.speech-13.1.8-canary-20250613-b29d676-2.aar",
57
- "url": "expo.modules.speech-13.1.8-canary-20250613-b29d676-2.aar",
56
+ "name": "expo.modules.speech-13.2.0-canary-20250701-6a945c5.aar",
57
+ "url": "expo.modules.speech-13.2.0-canary-20250701-6a945c5.aar",
58
58
  "size": 33720,
59
59
  "sha512": "23b0c28f0ffda211d9c830e6a68dcef296753205a602969b49909cee2bf37db7f17d318e977ca4a4aba9e6a7c58e582908438dcafde789217e2db150379dc013",
60
60
  "sha256": "620a5b863fbe33f645f563d9eab13301d04fcadbb8e19fef2b1ad773c351e39b",
@@ -73,8 +73,8 @@
73
73
  },
74
74
  "files": [
75
75
  {
76
- "name": "expo.modules.speech-13.1.8-canary-20250613-b29d676-2-sources.jar",
77
- "url": "expo.modules.speech-13.1.8-canary-20250613-b29d676-2-sources.jar",
76
+ "name": "expo.modules.speech-13.2.0-canary-20250701-6a945c5-sources.jar",
77
+ "url": "expo.modules.speech-13.2.0-canary-20250701-6a945c5-sources.jar",
78
78
  "size": 4456,
79
79
  "sha512": "65a14a8725ea767bd567528ad3a78a29f81e408962294eafdd5f155739d160ce96137d274ef53cde838e63f2a0f5851540798f1c0d16e95f47441950d5059fc0",
80
80
  "sha256": "4fc634dda90823301ae8e8fea85e84d9fd3d8da9d1eff738fe23708fa21a0f64",
@@ -0,0 +1 @@
1
+ 487ceec63058662a002e4a176c439bb1b92eeeb4b9c11188ff4862f11509f345fb97ffb8748543bf2f15317f4561b23e3ff793c819b3846bf03aac7ab2ad0c1d
@@ -9,7 +9,7 @@
9
9
  <modelVersion>4.0.0</modelVersion>
10
10
  <groupId>host.exp.exponent</groupId>
11
11
  <artifactId>expo.modules.speech</artifactId>
12
- <version>13.1.8-canary-20250613-b29d676-2</version>
12
+ <version>13.2.0-canary-20250701-6a945c5</version>
13
13
  <packaging>aar</packaging>
14
14
  <name>expo.modules.speech</name>
15
15
  <url>https://github.com/expo/expo</url>
@@ -0,0 +1 @@
1
+ 2e3477e97d7cbec1c8ff21db10998b2535b8841a48db38973c2522b1cd25693f5a697ef2a4b1e676a4fbce797516d4df6bf9c6a4416130c3cfe08a16a48cbcf5
@@ -3,11 +3,11 @@
3
3
  <groupId>host.exp.exponent</groupId>
4
4
  <artifactId>expo.modules.speech</artifactId>
5
5
  <versioning>
6
- <latest>13.1.8-canary-20250613-b29d676-2</latest>
7
- <release>13.1.8-canary-20250613-b29d676-2</release>
6
+ <latest>13.2.0-canary-20250701-6a945c5</latest>
7
+ <release>13.2.0-canary-20250701-6a945c5</release>
8
8
  <versions>
9
- <version>13.1.8-canary-20250613-b29d676-2</version>
9
+ <version>13.2.0-canary-20250701-6a945c5</version>
10
10
  </versions>
11
- <lastUpdated>20250613144723</lastUpdated>
11
+ <lastUpdated>20250701174026</lastUpdated>
12
12
  </versioning>
13
13
  </metadata>
@@ -1 +1 @@
1
- 572bcb9ddc70378d5ef5fb3e7753f55a
1
+ a98677cddd686cc783e2f3ec555f0d70
@@ -1 +1 @@
1
- 0102c92dd70ea86951df308abbfa73c98adb02b6
1
+ 873745810f95b03f3a2e14ba6c6973bcb95ecb33
@@ -1 +1 @@
1
- 874afa720ca359a01754b39b37549148dd64184fa3bc5f9d253cd4f480d1b0d6
1
+ 2da81c646f4cc534a9cfc86c88b6fbeddf36e0e47e8b06d9f9243f6d57ebe987
@@ -1 +1 @@
1
- d6b9ab733f1d02ad2fe4282c5533ff90c3ed081dc6d467febf90408d765ff7521fda42b73ae962226a497263b914bed8f6550e5bea9c32a124c6d8526a975162
1
+ a1af8f4d5057e358d7e07b2432865d346bf689bb902901abdee70816dcdea15488088a6fe0f59f62823be4db801bad875e4a7b8d219f7ba2fa120aea184faf00
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-speech",
3
- "version": "13.1.8-canary-20250613-b29d676-2",
3
+ "version": "13.2.0-canary-20250701-6a945c5",
4
4
  "description": "Provides text-to-speech functionality.",
5
5
  "main": "build/Speech.js",
6
6
  "types": "build/Speech.d.ts",
@@ -37,9 +37,9 @@
37
37
  },
38
38
  "dependencies": {},
39
39
  "devDependencies": {
40
- "expo-module-scripts": "4.1.8-canary-20250613-b29d676-2"
40
+ "expo-module-scripts": "4.1.9-canary-20250701-6a945c5"
41
41
  },
42
42
  "peerDependencies": {
43
- "expo": "54.0.0-canary-20250613-b29d676-1"
43
+ "expo": "54.0.0-canary-20250701-6a945c5"
44
44
  }
45
45
  }
@@ -23,6 +23,11 @@ export type SpeechOptions = {
23
23
  * Rate of the voice to speak `text`. `1.0` is the normal rate.
24
24
  */
25
25
  rate?: number;
26
+ /**
27
+ * If you set this value to `false`, the system creates a separate audio session to automatically manage speech, interruptions, and mixing and ducking the speech with other audio sources.
28
+ * @platform ios
29
+ */
30
+ useApplicationAudioSession?: boolean;
26
31
  /**
27
32
  * A callback that is invoked when speaking starts.
28
33
  */
@@ -1 +0,0 @@
1
- c58bd0cca896369f89d44ced6914a6ec778f4f9801d48a2d368b0612a2114f95b95c6218631b84caa2dad1ac082eeb5ed7a471be70da236e8670091fd88fe47d
@@ -1 +0,0 @@
1
- 7a1e1b09ab2f893026204b8446c314899d7b4e71835164f2c2125184007b71dd8ce5f3ab259f85766347eb18c0af92250df9eeef0ecfca4bd9031914a4d752cb