Audio constructor

Audio({
  1. required Client client,
  2. bool enterprise = false,
  3. Map<String, dynamic> kwargs = const {},
})

Implementation

Audio({
  required Client client,
  bool enterprise = false,
  Map<String, dynamic> kwargs = const {},
}) : super(
        client: client,
        baseUrl: '', // Will override below
        enterprise: enterprise,
        kwargs: kwargs,
      ) {
  if (enterprise) {
    audioBaseUrl = '${client.baseUrl}v1/enterprise/voice/';
  } else {
    audioBaseUrl = '${client.baseUrl}v6/voice/';
  }
}