Code Monkey home page Code Monkey logo

Comments (5)

YogarajRamesh avatar YogarajRamesh commented on June 3, 2024 1

Hi @igorski
Thanks for your time

Its working great Thank you so much:)

from mwengine.

YogarajRamesh avatar YogarajRamesh commented on June 3, 2024

Hi @igorski
By any chance is there way to amplify the input voice other than setVolume to input channel?

Thanks in advance

from mwengine.

igorski avatar igorski commented on June 3, 2024

Hi @YogarajRamesh

Sadly Android OS does not allow directly setting the microphone volume. What you can do is add some UI to your application where the user can adjust their microphone volume if they notice it is too low.

By adding the Gain processor to the input channels processing chain, you can introduce amplification of the input signal without introducing any sound shaping side effects that change the sound timbre. You can link your UI control to the setAmount( float value)-method of the Gain processor.

Gain gainProcessor = new Gain();
AudioChannel inputChannel = _engineRef.getInputChannel();
inputChannel.getProcessingChain().addProcessor( gainProcessor );
gainProcessor.setAmount( ...floating point value in 0 to 20 range );

from mwengine.

YogarajRamesh avatar YogarajRamesh commented on June 3, 2024

Hi @igorski,
Thanks for your response

error: cannot find symbol
Gain gainProcessor ;
^
symbol: class Gain
location: class MWEngineActivity

Thanks in advance

from mwengine.

igorski avatar igorski commented on June 3, 2024

It was added in 05b76c0 so you need a fairly recent build of the library.

from mwengine.

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.