getVoiceSettings method

Future<VoiceSettings> getVoiceSettings(
  1. String voiceId
)

Get settings for a voice Returns a VoiceSettings object

Implementation

Future<VoiceSettings> getVoiceSettings(String voiceId) async {
  try {
    final response = await _dio.get('/v1/voices/$voiceId/settings');
    return VoiceSettings.fromJson(response.data);
  } catch (error) {
    throw _handleError(error);
  }
}