Git Product home page Git Product logo

Comments (5)

kolserdav avatar kolserdav commented on July 25, 2024

The application does not record audio, signals that the microphone uses a few seconds when loading the page, which is due to obtaining permission to use the microphone in the standard way.

const checkMicro = async () =>
new Promise<boolean>((resolve) => {
navigator.mediaDevices
.getUserMedia({ audio: true })
.then(() => {
resolve(true);
})
.catch((err) => {
log('error', 'Error get user media', err);
resolve(false);
});
});
Access to a microphone is required for webkitSpeechRecognition to work by pressing the microphone icon in the lower right corner of the text input field.

from ana.

Wjxfi avatar Wjxfi commented on July 25, 2024

The application does not record audio, signals that the microphone uses a few seconds when loading the page, which is due to obtaining permission to use the microphone in the standard way.

it's not a few seconds. It's the whole time I'm on the page.

from ana.

Wjxfi avatar Wjxfi commented on July 25, 2024

please somehow make the microphone record only when the record button is pressed.

from ana.

Wjxfi avatar Wjxfi commented on July 25, 2024

The app that shows this: miui system and https://www.f-droid.org/packages/com.aravi.dot/

from ana.

kolserdav avatar kolserdav commented on July 25, 2024

Recording from a microphone in the application is not implemented at all, the MediaStream parameter is not even declared inside getUserMedia.then((stream) => {}) in the web part. And there is no code related to the microphone API in the Android part at all.
The SafeDot application signals that this application has access to the microphone, and not that it is allegedly recording, but correctly assumes that if a recording can be made, then most likely it is being done, since in what it is the moment the application starts recording that SafeDot as a third-party service will not be able to identify.

Therefore, it is not possible to make a "record" point only when a key is pressed. Because after granting permission to use the microphone, this app will always have a dot for SafeDot until the permission to use the microphone is revoked from the app and the use of the microphone is disabled on first launch.

from ana.

Related Issues (6)

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.