Comments (13)
Looks like it's just a matter of updating the require.
Could you submit a PR if you have time? Otherwise, I'll tackle this over the weekend.
from react-native-speech.
Hey thanks for the quick answer! I'm not sure how to update the require to be honest, would really appreciate if you have the time to do it!
Have a great week-end
from react-native-speech.
I got this to work by following the instructions at: http://facebook.github.io/react-native/docs/linking-libraries-ios.html#content
there's an xcode project for the speech module that you drag in and add to your linker
from react-native-speech.
@aportner is there anything you think I should add to the readme to make it more helpful?
from react-native-speech.
nope, I think that's good. this was the first react native module I used, so I'm glad you included those instructions.
from react-native-speech.
maybe move the "Linking the Library" part of the readme under Installation?
from react-native-speech.
Thanks for the feedback @aportner.
from react-native-speech.
I don't believe this issue was ever resolved. I am facing this same issue currently with React Native 0.14.2. The issue appears to be related to facebook/react-native#1821 like @JonathanWi stated initially.
I tried updating the require without success. It appears that NativeModules.SpeechSynthesizer does not evaluate to an object.
from react-native-speech.
I'm having hte same problem @joshbuchea on 0.14.2.
from react-native-speech.
Never mind, just got it working. This is the require update I had to make in SpeechSynethesizer.ios.js
to get it to work:
var NativeSpeechSynthesizer = require('react-native').NativeModules.SpeechSynthesizer;
var invariant = require('react-native').invariant;
Note, this is not the same as the PR submitted by Yonas which reads like this:
var NativeSpeechSynthesizer = require('react-native').NativeModules;
// var invariant = require('invariant');
var invariant = require('react-native').invariant;
from react-native-speech.
Hey, still new to coding but got kind of the same problem as above. but updating the require in SpeechSynethesizer.ios.js didn't work for me. got the error
undefined is not an object('evaluating NativeSpeechSynthesizer .stopSpeakingAtBoundary')
any ideas ?
cheers
from react-native-speech.
Did you rebuild your ios project in xcode?
from react-native-speech.
link the xcodeproj and re-run the app.. should work fine.. It works fine for me.
from react-native-speech.
Related Issues (20)
- What about android support? HOT 4
- Getting an error when trying to use this library. HOT 4
- Add background support HOT 3
- Is this repository maintained?
- supplying numbers to speak causing silent crash
- Not working in device HOT 4
- PLEASE update README to mention it only supports iOS
- Can you support library for vietnamese ? HOT 4
- [ios] App can not speech by background HOT 1
- [needs]convert text to audio. HOT 1
- How can I check if a mobile phone has installed the TTS ?
- isSpeaking not working in iOS
- Not working for android. SpeechSynthesizer.android.js SpeechSynthesizer is not implemented HOT 1
- undefined is not an object (evaluating 'NativeSpeechSynthesizer.stopSpeakingAtBoundary') HOT 5
- Manual linking or automatic linking required
- After installing react-native-speech got error
- Indian Language are not supported!
- Linking Library guide link not working
- PLEASE FKING UPDATE THE README SO PEOPLE DON'T WASTE THEIR TIME
- Unable to link with 'pod install'. No 'podspec' file
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-speech.