RageAgainstThePixel / com.rest.elevenlabs

A non-official Eleven Labs voice synthesis client for Unity (UPM)
https://elevenlabs.io/?from=partnerbrown9849
MIT License
74 stars 9 forks source link

Access to Eleven Turbo v2 #56

Closed jeffries7 closed 8 months ago

jeffries7 commented 8 months ago

I can see that you can access Turbo v2 via the dashboard but is it possible to access this via code? I assume setting this via the dashboard doesn't configure it for for getting voices via code

StephenHodgson commented 8 months ago

use model parameter in your request:

var voiceClip = await api.TextToSpeechEndpoint.TextToSpeechAsync(message, voice, model: Model.EnglishTurboV2, cancellationToken: lifetimeCancellationTokenSource.Token);