getAudioModels method

Future<List<AIModel>> getAudioModels()

Get models suitable for audio/speech

Implementation

Future<List<AIModel>> getAudioModels() async {
  final allModels = await models();
  return allModels
      .where(
          (model) => model.id.contains('whisper') || model.id.contains('tts'))
      .toList();
}