v1VoicesAddPublicUserIdVoiceIdPost method

Future<Response<AddVoiceResponseModel>> v1VoicesAddPublicUserIdVoiceIdPost({
  1. required String? publicUserId,
  2. required String? voiceId,
  3. String? xiApiKey,
  4. required BodyAddSharedVoiceV1VoicesAddPublicUserIdVoiceIdPost? body,
})

Add Shared Voice @param public_user_id Public user ID used to publicly identify ElevenLabs users. @param voice_id Voice ID to be used, you can use https://api.elevenlabs.io/v1/voices to list all the available voices. @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<AddVoiceResponseModel>>
v1VoicesAddPublicUserIdVoiceIdPost({
  required String? publicUserId,
  required String? voiceId,
  String? xiApiKey,
  required BodyAddSharedVoiceV1VoicesAddPublicUserIdVoiceIdPost? body,
}) {
  generatedMapping.putIfAbsent(
    AddVoiceResponseModel,
    () => AddVoiceResponseModel.fromJsonFactory,
  );

  return _v1VoicesAddPublicUserIdVoiceIdPost(
    publicUserId: publicUserId,
    voiceId: voiceId,
    xiApiKey: xiApiKey?.toString(),
    body: body,
  );
}