Coder Social home page Coder Social logo

Comments (13)

naoufal avatar naoufal commented on June 22, 2024

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.

JonathanWi avatar JonathanWi commented on June 22, 2024

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.

aportner avatar aportner commented on June 22, 2024

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.

naoufal avatar naoufal commented on June 22, 2024

@aportner is there anything you think I should add to the readme to make it more helpful?

from react-native-speech.

aportner avatar aportner commented on June 22, 2024

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.

aportner avatar aportner commented on June 22, 2024

maybe move the "Linking the Library" part of the readme under Installation?

from react-native-speech.

naoufal avatar naoufal commented on June 22, 2024

Thanks for the feedback @aportner.

from react-native-speech.

joshbuchea avatar joshbuchea commented on June 22, 2024

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.

nicholasalanbrown avatar nicholasalanbrown commented on June 22, 2024

I'm having hte same problem @joshbuchea on 0.14.2.

from react-native-speech.

nicholasalanbrown avatar nicholasalanbrown commented on June 22, 2024

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.

aladante avatar aladante commented on June 22, 2024

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.

allenmanning avatar allenmanning commented on June 22, 2024

Did you rebuild your ios project in xcode?

from react-native-speech.

ksrawat avatar ksrawat commented on June 22, 2024

link the xcodeproj and re-run the app.. should work fine.. It works fine for me.

from react-native-speech.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.