Dubbing: Target language is not getting set.
Closed this issue · 3 comments
danielmb commented
Hello.
I am trying to trying to use the dubbing api using this module. While using dubbing part I am getting this error everytime:
{
"detail": {
"status": "empty_target_language",
"message": "Target language must be set in automatic dubbing mode. Either set the target language or set dubbing studio to true."
}
}
This is the code I wrote to reproduce the error:
import { ElevenLabsClient } from 'elevenlabs';
import dotenv from 'dotenv';
import fs from 'fs';
dotenv.config();
const elevenlabs = new ElevenLabsClient({
apiKey: process.env.ELEVENLABS_API_KEY,
});
const file = fs.createReadStream('test.mp4');
const res = await elevenlabs.dubbing
.dubAVideoOrAnAudioFile({
file,
target_lang: 'en',
watermark: true,
mode: 'automatic',
})
console.log(res);
I am running node v20.13.1
chandrashekhar07 commented
same thing happening on node v20.11.1 and "elevenlabs": "^0.6.0"
chandrashekhar07 commented
But it works through API calls,
dsinghvi commented
@chandrashekhar07 this should be fixed in version 0.8.2
!