#Hello! I tried asking support about this, but I was referred to here because I'm using the npm libr

1 messages · Page 1 of 1 (latest)

fathom sableBOT
#
AI-generated Answer for benjick.

From the information provided, it seems like you're doing everything correctly. However, there might be a few things to check:

  1. Ensure that the voice ID you're using is correct. The voice ID should be the one you copied from the ElevenLabs platform.

  2. Make sure that the voice you're trying to use is compatible with the model you're specifying in the model_id parameter. In your case, you're using the eleven_multilingual_v2 model. If the voice isn't compatible with this model, it might result in an error.

  3. Check your API key. Make sure it's correctly set in your environment variables and that it's the correct key from your ElevenLabs account.

Here's a sample code snippet for reference:

import { ElevenLabsClient } from 'elevenlabs';

const client = new ElevenLabsClient({
  apiKey: process.env.ELEVENLABS_API_KEY,
});

async function generateAudio() {
  try {
    const audio = await client.generate({
      voice: 'aSLKtNoVBZlxQEMsnGL2',
      text: 'Någon mening på svenska',
      model_id: 'eleven_multilingual_v2',
    });
    // handle the audio data
  } catch (error) {
    console.error(error);
  }
}

generateAudio();

If you're still encountering issues, it might be best to reach out to ElevenLabs support for further assistance. They might be able to provide more specific guidance based on your account details and the exact error message you're receiving.

proper quartz
#

If I go to the Sanna Hartfield - Swedish Narration voice, I can see it says Eleven Multilingual v2