Comments (10)
Same problem here!
from react-native-tts.
@ak1394 @wenkesj I am seeing this as well. When playing audio, and simply running Voice.start() (from react-native-voice)
, the phone ear speaker is used instead of the body speakers. I don't think this was happening a couple weeks ago. I think there might have been a ios change. Any ideas?
I am running IOS 11.2.5
Not sure where we want to keep this thread. Also have a comment here: react-native-voice/voice#75
Issue could have something to do with the new HomePod support they built in?
https://support.apple.com/en-us/HT208067
For my case, I don't actually need both the audio and voice recognition to be happening at the sametime. If we introduced promises(await async) to this module that might solve the issue. That way I can wait on tts.speak(someString)
to finish before enabling the microphone via Voice.start()
.
Thoughts?
from react-native-tts.
Guys, I'm not sure I can be much of help here, this seems like IOS issue? As of returning promises from speak(), for now you should be able to use events to wait for it to finish speaking. I have to document it but speak() returns an utteranceId and if you subscribe with Tts.addEventListener('tts-finish', (event) => console.log("finish", event));
you'll see the same id in the event as well.
from react-native-tts.
Thanks @ak1394. That was helpful! Moving this conversation back over to react-native-voice for now.
from react-native-tts.
Hi guys, everything fine?
I would like to thank you guys for looking at this problem, do you guys think we can find a solution to this, or is it really an iOS problem?
I do ever not developing in Objective-C so I can not help them much with this.
Sorry me. :(
from react-native-tts.
This problem was resolved that topic: react-native-voice/voice#75
The solution was found pelo @dalinarkholin, and I already asked him if can release pull request.
Thank's everyone.
from react-native-tts.
Were a pull requests ever done for tts and voice related to this issue? Looking at the commit logs I don't see it. If not, I'll do it, because the fork belonging to @dalinarkholin is not rn 0.56 compatible and I want to get this fix into an app that I'm working on. This issue caught be by surprise because I was testing in iPad and didn't see it (no ear speaker) and gave the app to a friend and he noticed on his iPhone.
from react-native-tts.
@jferas It was never merged. I didn't feel comfortable with the solution and Im pretty sure it could be resolved just on the react-native-voice package. You can see my solution in my commits here:
https://github.com/dalinarkholin/react-native-voice/commits/master
from react-native-tts.
@dalinarkholin Thanks!.. I saw your commits in react-native-voice and re-did them in a fork/branch from master that had the react native 0.56 support in it. Seems to be working fine in my app, so I did a pull request for it over in react-native-voice. Thanks for doing original legwork! Strange that we're posting about it here in react-native-tts but this is where the problem surfaced, and of course where I first went when I noticed it.
from react-native-tts.
from react-native-tts.
Related Issues (20)
- Error: No TTS engine installed HOT 2
- Warning new NativeEventEmitter HOT 5
- Library does not respect volume, dnd, or setIgnoreSilentSwitch HOT 1
- Is there a way to teach this library proper pronunciation? HOT 1
- Can we help with maintaining this library? HOT 12
- Pitch and Voice Settings Being Read Aloud Before Text on iOS HOT 2
- use Tts.speak get the error: is not ready
- Can't use enhanced voice in iOS 17 HOT 1
- Pause and resume methods are not working for android HOT 1
- await Tts.stop() method behaving differently in android and ios
- TTS.speak not working for iOS platform (specifically Hindi language having inconsistent behaviours)
- ERROR TypeError: Cannot read property 'speak' of null, js engine: hermes HOT 4
- Can't install HOT 1
- `new NativeEventEmitter()` was called with a non-null argument without the required `addListener` method. HOT 9
- Doesn't appear this project is being maintained
- not working in iOS physical device
- tts not working screen off and when app is in background in ios physical device
- Query for com.apple.MobileAsset.VoiceServicesVocalizerVoice failed: 2
- Xcode error
- android: requestInstallData opens but won't download language pack on some devices
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-tts.