elevenlabs-latency
v0.0.6
Published
Package to measure the latency of a websocket connection to ElevenLabs' text-to-speech API - specifically the time to first byte
Readme
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_KEYOptionally you can specify the model to use by adding the -m flag:
npx elevenlabs-latency ELEVENLABS_API_KEY -m eleven_turbo_v2In addition, you can optionally specify the voice id to use by adding the -v flag:
npx elevenlabs-latency ELEVENLABS_API_KEY -v Xb7hH8MSUJpSbSDYk0k2From source
- Clone the repository and cd into this folder
- Run
npm installto install the dependencies - Run
npm run start -- ELEVENLABS_API_KEYto run the test; Optionally specify the model to use by adding the-mflag or the voice id to use by adding the-vflag
