logo

Installation

To start integrating Vocale into your JavaScript project, follow these simple steps:

  1. Install Vocale: You can install Vocale via npm by running the following command in your terminal:

    npm install @vocale/core
    
  2. Import Vocale: Once installed, you can import Vocale into your JavaScript files as follows:

    import Vocale from '@vocale/core';
    
  3. Initialize Vocale: Initialize Vocale with your settings to start using it in your project. Here's an example of how to initialize Vocale:

    const settings = {
      siteId: 'YOUR_SITE_ID',
      apiKey: 'YOUR_API_KEY',
    };
    const vocale = new Vocale(settings);
    
  4. Start Using Vocale: With Vocale initialized, you can now start using its features, such as synchronizing events and handling voice interactions. Next, see the Basic Usage Guide