Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tts.stop() throwing an error. #273

Open
arrfandannge opened this issue Nov 6, 2024 · 12 comments
Open

Tts.stop() throwing an error. #273

arrfandannge opened this issue Nov 6, 2024 · 12 comments

Comments

@arrfandannge
Copy link

Environment:-

  1. React Native 0.76
  2. ios 15

On calling await Tts.stop() i'm getting the following error: Error: TextToSpeech.stop(): Error while converting JavaScript argument 0 to Objective C type BOOL. Objective C type BOOL is unsupported.

Anyone experiencing the same issue with Tts.stop() ?

@nusjeff
Copy link

nusjeff commented Nov 7, 2024

same error

@arrfandannge
Copy link
Author

Any workarounds for this issue. Its breaking my app entirely.

@el-lsan
Copy link

el-lsan commented Nov 15, 2024

Facing the same issue after upgrading to React Native 0.76

@ihsanktmr
Copy link

Facing the similar problem after upgrading React Native version to 0.76, we would be very glad to hear back from the contributors. Thanks.

@slimane777
Copy link

same here, looking forward to an update

@AshishRnDev
Copy link

Environment:-

  1. React Native 0.76
  2. ios 15

On calling await Tts.stop() i'm getting the following error: Error: TextToSpeech.stop(): Error while converting JavaScript argument 0 to Objective C type BOOL. Objective C type BOOL is unsupported.

Anyone experiencing the same issue with Tts.stop() ?

its solution is disabling the New Architecture in the app
in IOS :-

  1. cd ios && rm -rf ./build
  2. RCT_NEW_ARCH_ENABLED=0 pod install

in Android simply do this
newArchEnabled=false
in gradle.properties file

@fondue-tech
Copy link

Environment:-

  1. React Native 0.76
  2. ios 15

On calling await Tts.stop() i'm getting the following error: Error: TextToSpeech.stop(): Error while converting JavaScript argument 0 to Objective C type BOOL. Objective C type BOOL is unsupported.
Anyone experiencing the same issue with Tts.stop() ?

its solution is disabling the New Architecture in the app in IOS :-

  1. cd ios && rm -rf ./build
  2. RCT_NEW_ARCH_ENABLED=0 pod install

in Android simply do this newArchEnabled=false in gradle.properties file

This is a workaround and not a solution.
New Arch is enabled by default in RN 0.76.1 and disabling it removes a lot of improvements.

I have decided to disable this package for the time being.

@powfix
Copy link

powfix commented Nov 29, 2024

same error on [email protected] iOS 18.0.1

powfix added a commit to powfix/react-native-tts that referenced this issue Nov 29, 2024
@powfix
Copy link

powfix commented Nov 29, 2024

I have submitted a pull request to fix this issue.
Pull Request #274.

@sandeepdoad
Copy link

Thanks @powfix its worked for [email protected] iOS 18.0.0

@Jamal-Ud-Din-hub
Copy link

same error

"react-native": "0.76.5",
"react-native-tts": "^4.1.1",

@Jamal-Ud-Din-hub
Copy link

Jamal-Ud-Din-hub commented Jan 10, 2025

I have submitted a pull request to fix this issue. Pull Request #274.

Thanks! It worked.

Rebuild after making changes.

I am using iOS only

"react-native": "0.76.5",
"react-native-tts": "^4.1.1",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants