Git Product home page Git Product logo

Comments (8)

MitchPateman avatar MitchPateman commented on June 12, 2024

I have the same problem with my iOS app! Anyone got a fix??? Please HELP!
Here's what happened to me:

***** This is only if you are using the sound from your phone... It works flawlessly with headphones or speakers plugged in. *****

-Audio is at full volume when I open the app on my iPhone, and then as soon as I push my "Start Speech Recognition" button, the volume goes down to a VERY low level.

-I can manually get the volume back up to about 60% of the original volume by following these steps:

  1. Click the "Start Speech Recognition" button
  2. Swipe up from bottom of iPhone to bring up iOS control centre
  3. Swipe left to see the music and audio controls
  4. At the bottom, tap "iPhone"
  5. Switch the output to "iPhone Speaker" (Which is not available when I first open my app)

from cordova-plugin-speechrecognition.

nice2seeu avatar nice2seeu commented on June 12, 2024

I have the same problem, too. HELP!

from cordova-plugin-speechrecognition.

nice2seeu avatar nice2seeu commented on June 12, 2024

[session setCategory:AVAudioSessionCategoryPlayAndRecord withOptions:AVAudioSessionCategoryOptionDefaultToSpeaker error:&err];
[session setMode:AVAudioSessionModeDefault error:&err];

Finally, I got a solution. In my case, the second line recovered the low volume.

from cordova-plugin-speechrecognition.

desmeit avatar desmeit commented on June 12, 2024

Hi nice2seeu,

how did you change the code? Did you use an av-audio-session plugin in addition?
How can I solve it with Javascript?

Thanks for your help and best regards

from cordova-plugin-speechrecognition.

narenpublic avatar narenpublic commented on June 12, 2024

@pbakondy this appears still to be an issue. I have a new Ionic 4 app using the plugin and if I play TTS when the app starts up it plays at a normal level. Once speech recognition is called and then TTS is played again, the volume sounds like it is cut in half. This is 1.2.0

from cordova-plugin-speechrecognition.

neoffer avatar neoffer commented on June 12, 2024

Problem still continues. Any solution?

from cordova-plugin-speechrecognition.

jackie-d avatar jackie-d commented on June 12, 2024

I confirm the same. Has the pointed fix (also related in other "volume" on this issues tracker) has been properly merged and distributed on the latest npm release?

Thanks

from cordova-plugin-speechrecognition.

jackie-d avatar jackie-d commented on June 12, 2024

I report a workaround that is to play an empty string '' everytime before playing the right phrase.

from cordova-plugin-speechrecognition.

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.