naoufal / react-native-speech Goto Github PK
View Code? Open in Web Editor NEWA text-to-speech library for React Native.
Home Page: https://www.npmjs.com/package/react-native-speech
A text-to-speech library for React Native.
Home Page: https://www.npmjs.com/package/react-native-speech
on your README file, you share a link to a guide that can help with linking this library but the link isn't working.
https://facebook.github.io/react-native/docs/linking-libraries.html#content
can you please update the link or please tell me how i can link this library
If I install the app on my physical device, I get no errors but there also is no audio. It works in the emulator. Any ideas what I have gotten wrong?
I tried adding inter-app-audio entitlement but that did not seem to resolve my problem...
error: bundling failed: Error: While trying to resolve module react-native-speech
from file /Applications/MAMP/htdocs/echoapp/demoPro/App.js
, the package /Applications/MAMP/htdocs/echoapp/demoPro/node_modules/react-native-speech/package.json
was successfully found. However, this package itself specifies a main
module field that could not be resolved (/Applications/MAMP/htdocs/echoapp/demoPro/node_modules/react-native-speech/SpeechSynthesizer.ios.js
. Indeed, none of these files exist:
/Applications/MAMP/htdocs/echoapp/demoPro/node_modules/react-native-speech/SpeechSynthesizer.ios.js(.native||.ios.js|.native.js|.js|.ios.json|.native.json|.json)
/Applications/MAMP/htdocs/echoapp/demoPro/node_modules/react-native-speech/SpeechSynthesizer.ios.js/index(.native||.ios.js|.native.js|.js|.ios.json|.native.json|.json)
You need to search the node_modules during archive or it will fail. Add this to the pbxproj file in the xcodeproj
"$(SRCROOT)/../../node_modules/react-native/React/**",
If you don't do this step you will get the error that RCTBridge not Found.
You are wasting people's time not mentioning that.
Particularly because there are Android files at the top of the tree - Makes you think there is some support!
Hi!
When using your component, I realized that Speech.stop(), which removes the Speech instance, won't allow me to re-launh a Speech.speak() again. When catching the error, Speech.speak tells me : "There is a speech in progress. Use the paused
method to know if it's paused." when there is absolutely nothing in progress.
I have no issue pausing / resuming a Speech.speak().
Any idea?
Cheers
Hey, still new to coding but got this error undefined is not an object('evaluating NativeSpeechSynthesizer .stopSpeakingAtBoundary') . tried updating the require as an other post with kinda the same error sugested.
any ideas ?
cheers
text_to_speech can not play by background, audio can .
so need to convert text to audio.
i am using this library for my app, it work perfectly for english. Now i want to use for vietnamese but it don't support.
When running app on iOS everything is working fine but when running on an android device getting the following error
undefined is not an object (evaluating 'NativeSpeechSynthesizer.stopSpeakingAtBoundary')
have tried adding require not working
Hi,
Your plugin looks very promising, and I'd love to use it in my current project, but it seems that - since React core update (see facebook/react-native#1821 ), SpeechSynthesizer is not part of the core anymore.
When trying to install your plugin, I'm prompted with an error screen due tu SpeechSynthesizer not being part of NativeModules.
Any Ideas on how to fix this?
Cheers
THIS SHIT ONLY WORKS ON IOS. Don't bother installing on android.
Dear team,
The plugin looks very nice and I have started using for my android project.
But unfortunately it not working after repeated debug of problem, I found in
SpeechSynthesizer.android.js file there is no native code invocation for TTS speech
SpeechSynthesizer
'use strict';
var warning = require('warning');
var SpeechSynthesizer = {
test: function() {
warning("Not yet implemented for Android.");
}
};
module.exports = SpeechSynthesizer;
Please confirm the same.
thanks
Hi,
I have installed react-native-speech in my current project. But after node module install I could not find any manual or automatic installation guide.
I trigger react-native link react-native-speech.
Still nothing working.
Could you share installation and manual linking guide? And other settings.
Add support for background and when screen is locked like this:
http://stackoverflow.com/questions/19183591/avspeechsynthesizer-in-background-mode
Hello,
I'm simply trying to require this library as a module within my application, and it just doesn't work. I have successfully added your other library react-native-activity-view to my application with no errors at all, I also followed the facebook docs like you suggested.
Unable to resolve module NativeModules from /path/tomy/home/dir/node_modules/react-native-speech/SpeechSynthesizer.ios.js: Invalid
Unable to resolve module NativeModules
Commenting out your require on NativeModules prompted that *invariant * could not be found as a module.
Unable to resolve module invariant
I'm actively researching these issues, any help would be greatly appreciated.
Speech.speak({
text: 'React Native Speech is awesome! I\'m going to use it in my next project.',
voice: 'en-US',
gender: 'female'
});
How can I check if a mobile phone has installed the TTS ?
Is there a method to check it ?
Thanks.
Just curious because I see a lot of unchecked issues and un-answered concerns (especially for android support).
I would be happy to help close some issues or add some features if you are short on time. Thanks for an awesome iOS component! ๐
Super slow - cant seem to change the utterance rate? Takes like 6 seconds to say a sentence with weird pauses.
Good Morning
when I run the code listed (excerpt) in the emulator it plays ok .when I run it in my device (ipad) does not play any sound .My ios for both is IOS 10.2
....
var Speech = require('react-native-speech');
...
rowPressedF(){
//start
Speech.speak({
text: 'Welcome',
voice: 'en-GB'
});
Thanks
Would be nice to let the user know visually
As of now this plugins only supports iOS, Have you a plan for android support ?
If yes, till when you will be publish this ?
If you supply this module with a number to speak, for example:
Speech.speak({ text: 5 });
it will result in a silent runtime error which crashes the app without any reported errors or stack traces.
I am simply casting all my number values to strings before sending them to react-native-speech to avoid this problem, but you might want to run an internal catch (or cast) to prevent these types of errors, and facilitate some nice error messages for a better debugging experience.
android is OK
ios is NG. App can not speech by background.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.