Coder Social home page Coder Social logo

Comments (9)

kenarsa avatar kenarsa commented on May 30, 2024 1

Got it! closing this and will circle back over the email shortly.

from web-voice-processor.

kenarsa avatar kenarsa commented on May 30, 2024

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.

johnbowdenatfacet avatar johnbowdenatfacet commented on May 30, 2024

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.

ErisMik avatar ErisMik commented on May 30, 2024

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:

  1. Login or signup for a free account on the Picovoice Console.
  2. Go to the AccessKey tab to create one or use an existing AccessKey.
  3. Use that AccessKey as an input to the usePicovoice 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.

johnbowdenatfacet avatar johnbowdenatfacet commented on May 30, 2024

@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.

ErisMik avatar ErisMik commented on May 30, 2024

Is anything else printed to the developer console in your failing application?

from web-voice-processor.

johnbowdenatfacet avatar johnbowdenatfacet commented on May 30, 2024

@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.

ErisMik avatar ErisMik commented on May 30, 2024

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.

eoghanatfacet avatar eoghanatfacet commented on May 30, 2024

@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)

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.