speechMmprojIn function
The speech mmproj of a prepared research directory: LFM3-Omni's when present, otherwise LFM3-Audio's.
Implementation
String speechMmprojIn(String directory) {
for (final name in [
Lfm3OmniQ4Source.mmproj.name,
Lfm3AudioQ4Source.audio.name,
]) {
if (File('$directory/$name').existsSync()) return '$directory/$name';
}
throw StateError('$directory holds no prepared LFM3-Omni or Audio mmproj');
}