Giter Site home page Giter Site logo

Comments (10)

rodrigosol avatar rodrigosol commented on August 20, 2024

Same problem here!

from react-native-tts.

dalinarkholin avatar dalinarkholin commented on August 20, 2024

@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.

ak1394 avatar ak1394 commented on August 20, 2024

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.

dalinarkholin avatar dalinarkholin commented on August 20, 2024

Thanks @ak1394. That was helpful! Moving this conversation back over to react-native-voice for now.

from react-native-tts.

igor-nm avatar igor-nm commented on August 20, 2024

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.

igor-nm avatar igor-nm commented on August 20, 2024

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.

jferas avatar jferas commented on August 20, 2024

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.

dalinarkholin avatar dalinarkholin commented on August 20, 2024

@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.

jferas avatar jferas commented on August 20, 2024

@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.

under94 avatar under94 commented on August 20, 2024

#104

from react-native-tts.

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.