---
stable_id: skills/skills-sh-elevenlabs-skills-speech-to-text
type: skills
title: skills-sh-elevenlabs-skills-speech-to-text
summary: >-
  # Installation

  ## JavaScript / TypeScript

  ```bash

  npm install @elevenlabs/elevenlabs-js@latest

  ```

  > **Important:** Always use `@elevenlabs/elevenlabs-js`. The old `elevenlabs`
  npm package (v1.x) is deprecated and should not be used.

  ```javascript

  import { ElevenLabsClient } from "@elevenlabs/elevenlabs-js";

  // Option 1: Environment variable (recommended)

  // Set ELEVENLABS_API_KEY in your environment
tags:
  - skills-sh
  - skills-sh-all-time
source_url: https://raw.githubusercontent.com/elevenlabs/skills/HEAD/speech-to-text/references/installation.md
license: ""
upstream_ref: https://skills.sh/elevenlabs/skills/speech-to-text
github_stars: null
github_forks: null
github_is_organization: null
retrieved_at: 2026-06-11T08:32:04.015Z
content_sha256: 4ab0635663a2065ade4b0e35ac53d21223bcc2ab257c019bd775866a81c7742f
---
