You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
609 B

// 与 proto 中 TranscribeService 枚举保持一致
enum TranscribeService {
unknown(0, 'Unknown'),
byteDance(1, 'ByteDance'),
ali(2, 'Ali'),
auto(3, 'Auto'),
google(4, 'Google'),
microsoft(5, 'Microsoft');
const TranscribeService(this.value, this.code);
final int value;
// 与后台 / env 字段(MeetServers)中保持一致的字符串编码
final String code;
static TranscribeService fromCode(String code) {
for (final s in TranscribeService.values) {
if (s.code.toLowerCase() == code.trim().toLowerCase()) return s;
}
return TranscribeService.auto;
}
}