Closed allohamora closed 3 months ago
It looks like there should be:
if (isGenerateAudioStream(request)) {
return await this.textToSpeech.convertAsStream(voiceId, request, requestOptions);
} else {
return await this.textToSpeech.convert(voiceId, request, requestOptions);
}
This is fixed in v0.2.2
!
https://github.com/elevenlabs/elevenlabs-js/blob/895b6199376cd4f8af87cba4498075754765e363/src/wrapper/ElevenLabsClient.ts#L70-L74