addVoice method
Add a new voice Returns the voice ID
Implementation
Future<String> addVoice(AddVoiceRequest request) async {
try {
final formData = request.toFormData();
final response = await _dio.post('/v1/voices/add', data: formData);
return response.data['voice_id'];
} catch (error) {
throw _handleError(error);
}
}