getHistoryItemAudio method

Future<List<int>> getHistoryItemAudio(
  1. String historyItemId
)

Get audio data for history item Returns a list of bytes

Implementation

Future<List<int>> getHistoryItemAudio(String historyItemId) async {
  try {
    final response = await _dio.get('/v1/history/$historyItemId/audio');
    return response.data;
  } catch (error) {
    throw _handleError(error);
  }
}