picovoice / web-voice-processor Goto Github PK
View Code? Open in Web Editor NEWA library for real-time voice processing in web browsers
Home Page: https://picovoice.ai/
License: Apache License 2.0
A library for real-time voice processing in web browsers
Home Page: https://picovoice.ai/
License: Apache License 2.0
Hi! First - congrats on putting together a really useful audio framework! Wow!
Question: what does filterOrder
mean within the options?
hi,
I've been trying to integrate with a web app, and have been getting:
TypeError: Cannot read properties of undefined (reading 'trim')
tried with a fresh create react app and coppied the component from: https://picovoice.ai/docs/api/picovoice-react/
Demo repo here https://github.com/johnbowdenatfacet/pico2
Am I missing something?
Thank you
Can you please suggest something on up sapmpling similar to this down sampling that you did
TypeError: Attempted to assign to readonly property.
web-voice-processor/dist/esm/index.js:391
388 | if (typeof AudioWorkletNode !== 'function' || !('audioWorklet' in AudioContext.prototype)) {
389 | if (AudioContext) {
390 | // @ts-ignore
391 | AudioContext.prototype.audioWorklet = {
| ^ 392 | // eslint-disable-next-line
393 | addModule: function () {
394 | var _addModule = _asyncToGenerator$1( /#PURE/_regeneratorRuntime.mark(function _callee(moduleURL, options) {
it seems on some browser env, AudioContext.prototype.audioWorklet does not allow be overridden.
When I call release() for deallocate component, the microphone on browser stay opened.
I have tested on Chrome with vue.js Porcupine.vue
I solved to call before release in Porcupine.vue file:
this.webVp.audioSource.mediaStream.getTracks().forEach(track => track.stop());
this.webVp.release();
Is possible when call pause() release microphone and on resume() reattach it?
In mobile browser like IOS Safari there are problem: if I access microphone for other task I loose microphone in porcupine.
In mobile browser like Chrome Android, if microphone are used, Google webkitSpeechRecognition not work.
Hi,
Is there any example on how to create engine using javascript?
Regards.
Is there anyone who tried this already? I'm trying to convert the LPCM (16kHz, 16bit) to G711 Alaw using a client side library. I'm not getting the expected results using https://github.com/rochars/alawmulaw.
hi, thank you for your great work!
is there any way to use picovoice porcupine in javascript language?
I am facing this engine issue as please help into it
Uncaught TypeError: engine.postMessage is not a function at web_voice_processor.js:27 at Array.forEach (<anonymous>) at Worker.downsampler.onmessage (web_voice_processor.js:26)
also getting below warning :
wasm streaming compile failed: TypeError: Failed to execute 'compile' on 'WebAssembly': Incorrect response MIME type. Expected 'application/wasm'. (anonymous) @ VM4 pv_porcupine.js:8 Promise.then (async) (anonymous) @ VM4 pv_porcupine.js:8 Promise.then (async) instantiateAsync @ VM4 pv_porcupine.js:8 createWasm @ VM4 pv_porcupine.js:8 (anonymous) @ VM4 pv_porcupine.js:8 (anonymous) @ VM5 porcupine.js:27 (anonymous) @ VM5 porcupine.js:181 (anonymous) @ VM3 porcupine_worker.js:7
2.
falling back to ArrayBuffer instantiation
If you have any proper step which do we need to use or steps please sugeest
I have copy same index.html as you provide for 'Hey Edison'
We have a microphone selector in the UI, how would one change the device id for the wake word engine? Perhaps .init
should accept another parameter for deviceId
?
Hey there! I cant use the cheetah model currently, because I always get this message:
[0] Cheetah model (.pv) file belongs to a different version of the library. File is `PK���` while library is `2.0.0`.
[1] Picovoice Error (code `00000136`)
when trying to:
import { CheetahTranscript, CheetahWorker } from '@picovoice/cheetah-web';
import { WebVoiceProcessor } from '@picovoice/web-voice-processor';
import cheetahParams from '../../models/stt-model';
const cheetah = await CheetahWorker.create(
'xxxxx',
transcriptCallback,
{
base64: cheetahParams
},
);
I created the model file with npx pvbase64 -i cheetah_params.pv -o model.ts
(as you suggested in your docs).
Any suggestions here?
Thanks, Sebi
im my case i already have the microphone stream open as part of webrtc, can an option be made to allow passing in the media stream for the microphone as n optional item int eh options pass in.
Is the voice processor going to be updated to use a newer method?
This method is already deprecated according to: https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createScriptProcessor
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.