v1TextToVoiceCreateVoiceFromPreviewPost method
Future<Response<VoiceResponseModel> >
v1TextToVoiceCreateVoiceFromPreviewPost({
- String? xiApiKey,
- required BodyCreateANewVoiceFromVoicePreviewV1TextToVoiceCreateVoiceFromPreviewPost? body,
Create A New Voice From Voice Preview @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>>
v1TextToVoiceCreateVoiceFromPreviewPost({
String? xiApiKey,
required BodyCreateANewVoiceFromVoicePreviewV1TextToVoiceCreateVoiceFromPreviewPost?
body,
}) {
generatedMapping.putIfAbsent(
VoiceResponseModel,
() => VoiceResponseModel.fromJsonFactory,
);
return _v1TextToVoiceCreateVoiceFromPreviewPost(
xiApiKey: xiApiKey?.toString(),
body: body,
);
}