@memori.ai/memori-react 2.9.2 → 2.10.0

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.
@@ -237,9 +237,14 @@ const StartPanel: React.FC<Props> = ({
237
237
  disabled={!!memori.blockedUntil && !memori.isGiver}
238
238
  loading={clickedStart}
239
239
  onClick={_e => {
240
- speechSynthesis.speak(
241
- new SpeechSynthesisUtterance('') // This is needed to enable the speech synthesis on iOS
242
- );
240
+ try {
241
+ window.speechSynthesis.speak(
242
+ new SpeechSynthesisUtterance('') // This is needed to enable the speech synthesis on iOS
243
+ );
244
+ } catch (e) {
245
+ console.error(e);
246
+ }
247
+
243
248
  if (initializeTTS) initializeTTS();
244
249
  if (onClickStart) onClickStart();
245
250
  }}