v1VoicesVoiceIdGet method

Future<Response<VoiceResponseModel>> v1VoicesVoiceIdGet({
  1. required String? voiceId,
  2. bool? withSettings,
  3. String? xiApiKey,
})

Get Voice @param voice_id Voice ID to be used, you can use https://api.elevenlabs.io/v1/voices to list all the available voices. @param with_settings This parameter is now deprecated. It is ignored and will be removed in a future version. @param xi-api-key Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website.

Implementation

Future<chopper.Response<VoiceResponseModel>> v1VoicesVoiceIdGet({
  required String? voiceId,
  bool? withSettings,
  String? xiApiKey,
}) {
  generatedMapping.putIfAbsent(
    VoiceResponseModel,
    () => VoiceResponseModel.fromJsonFactory,
  );

  return _v1VoicesVoiceIdGet(
    voiceId: voiceId,
    withSettings: withSettings,
    xiApiKey: xiApiKey?.toString(),
  );
}