MikeyParton / react-speech-kit

React hooks for Speech Recognition and Speech Synthesis
https://mikeyparton.github.io/react-speech-kit
238 stars 63 forks source link

react-speech-kit support in React-18? #79

Closed fahadashiq12 closed 1 year ago

fahadashiq12 commented 2 years ago

I am trying to install react-speech-kit in react-18 project but it didn't work out? Any alternatives to this library I want the specific section of my react application to implement text-to-speech functionality.

fahadashiq12 commented 2 years ago

Note: The Project is in Typescript

morganney commented 2 years ago

@fahadashiq12 if you're looking for text-to-speech in React 18 with TypeScript you can try tts-react. I've been developing it over the past couple of weeks but should be considered production ready.

asadullahehsan commented 2 years ago

@fahadashiq12 if you're looking for text-to-speech in React 18 with TypeScript you can try tts-react. I've been developing it over the past couple of weeks but should be considered production ready.

@morganney thanks. Even I was going to open this issue.

asadullahehsan commented 2 years ago

I am trying to install react-speech-kit in react-18 project but it didn't work out? Any alternatives to this library I want the specific section of my react application to implement text-to-speech functionality.

@fahadashiq12 , Same here! Now I was going to open this issue Actually they need to do two things

  1. Give support for React version 18
  2. Make a defined types file to support ts
asadullahehsan commented 2 years ago

@MikeyParton , please help us out with this issue. Thanks.

gr1pcoding commented 1 year ago

@asadullahehsan @fahadashiq12 Hello all, I found myself here and figured out there's nothing in this package that won't work on React18. I installed the package with: npm install --legacy-peer-deps react-speech-kit

asadullahehsan commented 1 year ago

@gr1pcoding , we can do that, no doubt. But would it be safe for the whole project in the long run? As there are already 5-6 more npm packages used in this project. This is not the only one package being used with React 18.

gr1pcoding commented 1 year ago

@asadullahehsan I didn't see any dependencies listed in package.json so it didn't seem to be an issue, the two source files don't import anything other than react. I'm just using this in a personal project though so hadn't given it much thought.

rakibulinux commented 1 year ago

I try with npm install react-speech-kit -f and it's working fine.

fahadashiq12 commented 1 year ago

I guess this issue has been resolved closing this one.