Comments (5)
Thanks for the report, this makes sense. It should close it down entirely when release() is called, for sure.
"Is possible when call pause() release microphone and on resume() reattach it?"
I think it would make more sense to create a new method stop() that destroys the microphone and keep pause() working as-is. Re acquiring the stream might hurt latency and cause some difficulties for the deps that assume pause/resume is essentially instant/cheap. Then start can be re-worked to re-acquire the stream, if necessary.
from web-voice-processor.
That's right, it makes more sense to create a stop method and reacquire the microphone with start
from web-voice-processor.
This has been fixed in v2.0.3. Calling release() will now stop the media tracks.
I haven't yet added a stop() method, because it will lead to behaviour that requires a lot more testing and changes, because it modifies the underlying assumption that once a WebVoiceProcessor instance exists, it has already successfully completed the async mic acquisition. We can look at doing that in a separate issue/task potentially.
from web-voice-processor.
The Vue binding has also been updated. The web-voice-processor has been set to a peerDependency, so this means that it will need to be explicitly installed, but now it should be less coupled to the binding.
from web-voice-processor.
I'm going to close this as the issue is resolved for the original topic.
from web-voice-processor.
Related Issues (13)
- upsampling from 8k to 16k HOT 2
- TypeError: Cannot read properties of undefined (reading 'trim') HOT 9
- Need a way to set microphone device id HOT 1
- Uncaught TypeError: engine.postMessage is not a function at web_voice_processor.js:27 HOT 3
- createScriptProcessor HOT 6
- Add source stream to options possibilities HOT 1
- porcupine in javascript HOT 1
- filterOrder Question HOT 2
- Trying to convert to G711 Ulaw or Alaw HOT 1
- TypeError: Attempted to assign to readonly property.
- Example for engine using javascript
- CheetahInvalidArgumentError: Initialization failed HOT 1
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 web-voice-processor.