ElevenLabs - Websockets Server - Node
Package to measure the latency of a websocket connection to ElevenLabs' text-to-speech API - specifically the time to first byte
Hosted on npm at https://www.npmjs.com/package/elevenlabs-latency
Usage
Using NPX
The easiest way to run this example is to use npx by running the following command:
npx elevenlabs-latency ELEVENLABS_API_KEY
Optionally you can specify the model to use by adding the -m
flag:
npx elevenlabs-latency ELEVENLABS_API_KEY -m eleven_turbo_v2
From source
- Clone the repository and cd into this folder
- Run
npm install
to install the dependencies - Run
npm run start ELEVENLABS_API_KEY
to run the test and optionally specify the model to use by adding the -m
flag