Falcon Speaker Diarization
Web Quick Start
Platforms
- Chrome & Chromium-based browsers
- Edge
- Firefox
- Safari
Requirements
- Picovoice Account and AccessKey
- Node.js 16+
- npm
Picovoice Account & AccessKey
Signup or Login to Picovoice Console to get your AccessKey
.
Make sure to keep your AccessKey
secret.
Quick Start
Setup
Install Node.js.
Install the Falcon Speaker Diarization Web package:
Usage
Put the model file in the project's public directory or generate a base64 model using the built-in script:
Create a FalconWorker
instance using a base64 model or a model hosted in a public directory:
Perform diarization (sample rate of 16 kHz, 16-bit linearly encoded and 1 channel):
Release resources explicitly when done with Falcon Speaker Diarization:
Segments
Falcon Speaker Diarization returns an array of segments. Each segment has the following properties:
- Start Time: Indicates when the segment started. Value is in seconds.
- End Time: Indicates when the segment ended. Value is in seconds.
- Speaker Tag: A non-negative integer identifying unique speakers.
Demo
For the Falcon Speaker Diarization Web SDK, there is a Web demo project available on the Falcon Speaker Diarization GitHub repository.
Setup
Clone the Falcon Speaker Diarization repository from GitHub:
Usage
- Install dependencies and run:
- Open http://localhost:5000 to view it in the browser.