Skip to content

Latest commit

 

History

History

web

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

eagle-web-demo

This is a basic demo to show how to use Eagle for web browsers, using the IIFE version of the library (i.e. an HTML script tag). It instantiates an Eagle worker engine and uses it with the @picovoice/web-voice-processor to access (and automatically downsample) microphone audio.

AccessKey

Eagle requires a valid Picovoice AccessKey at initialization. AccessKey acts as your credentials when using Picovoice SDKs. You can get your AccessKey for free. Make sure to keep your AccessKey secret. Signup or Login to Picovoice Console to get your AccessKey.

Install & run

Use yarn or npm to install the dependencies, and the start script to start a local web server hosting the demo.

yarn
yarn start

(or)

npm install
npm run start

Open localhost:5000 in your web browser, as hinted at in the output:

Available on:
  http://localhost:5000
Hit CTRL-C to stop the server

Enter your AccessKey and wait until Eagle and the WebVoiceProcessor have initialized. Record audio or upload an audio file to enroll speakers. Test speaker recognition in real-time with a microphone.