Orca Text-to-Speech
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
Usage
Download the model file for the voice that you prefer.
Put the model file in the project's public directory or generate a base64 model using the built-in script:
Create an OrcaWorker
instance using a base64 model or a model hosted in a public directory:
Synthesize speech by calling the synthesize
method:
Release resources explicitly when done with Orca:
Demo
For the Orca Web SDK, there is a Web demo project available on the Orca GitHub repository.
Setup
Clone the Orca repository from GitHub:
Usage
- Install dependencies and run:
- Open http://localhost:5000 to view it in the browser.