Comments (9)
Got it! closing this and will circle back over the email shortly.
from web-voice-processor.
Can you please give it another go? The docs on our website were out-of-date for a few days after v2.0
release
from web-voice-processor.
Can you please give it another go? The docs on our website were out-of-date for a few days after
v2.0
release
Thanks @kenarsa I now have it working in the fresh CRA project, though in our application I'm getting the following:
'pv_porcupine_init' failed with status ACTIVATION_ERROR
Same code, same rhino/porcupine base64 in both apps. Any ideas as to this error?
from web-voice-processor.
If it's the exact same code, most likely then the issue is that you are missing the accessKey
field in the picovoiceHookArgs
parameter in the usePicovoice
hook. This was a breaking change in v2.0
that you may have got caught in the middle of.
You will need to:
- Login or signup for a free account on the Picovoice Console.
- Go to the
AccessKey
tab to create one or use an existingAccessKey
. - Use that
AccessKey
as an input to theusePicovoice
hook.
Give it another go with the AccessKey
and let me know if that resolves your issue.
The same page you linked earlier now contains an API reference laying out exactly what inputs and types are required for the usePicovoice
hook.
This page contains a quick getting started guide that provides some example code updated to v2.0
that might give you some support as well.
from web-voice-processor.
@ErisMik this is what I have in both apps, working in the fresh CRA, not in our application:
const {
isLoaded,
// isListening,
isError,
// errorMessage,
// start,
// resume,
// pause,
engine,
errorMessage
} = usePicovoice(
PicovoiceWorkerFactory,
{
accessKey:ACCESS_KEY,
// "Picovoice" is one of the builtin wake words, so we merely need to ask for it by name.
// To use a custom wake word, you supply the .ppn
files in base64 and provide a label for it.
// porcupineKeyword: 'Picovoice',
porcupineKeyword: [{ base64: ONE_OH_ONE_64, custom: 'hi' }],
rhinoContext: { base64: RHN_CONTEXT_BASE64 },
start: true
},
keywordEventHandler,
inferenceEventHandler
);
from web-voice-processor.
Is anything else printed to the developer console in your failing application?
from web-voice-processor.
@ErisMik had to allow in our content security policy. Though now I'm getting: 'pv_porcupine_init' failed with status ACTIVATION_LIMIT_REACHED
from web-voice-processor.
Unfortunately that means you've hit the activation limits of your account as set. If you are an existing commercial user, please reach out to your contact at Picovoice to resolve this. If you are interested in becoming a commercial user, contact sales. Otherwise, you can wait 30 days for the usage limits to reset.
from web-voice-processor.
@ErisMik & @kenarsa I've sent a separate email to Ian as our tech support contact at Picovoice referencing this issue as I think the activation limit is due to regenerating around the V1.9-V2.0 siwtchover on Nov 25/26. We are a commercial user on a developer license
from web-voice-processor.
Related Issues (13)
- upsampling from 8k to 16k HOT 2
- 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
- release() mehod does not release the microphone from browser HOT 5
- 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.