我正在尝试将苹果的SFSpeechRecognizer
与毛利语一起使用。我想检测/分类出最能说出的字符串,然后与毛利人的字符串名匹配,我将从API中获得。
可以说我有一个与漫威英雄绿巨人(Hulk)合影的图片,它是毛利人的语言版本“ Tuhinga o mua” 。现在,如果用户说的是相同的字符串,则表示通过,否则失败。
我尝试过的操作:
print(SFSpeechRecognizer.supportedLocales())
这将输出:
[es-419 (fixed), th-TH (fixed), ca-ES (fixed), fr-BE (fixed), de-CH (fixed), sk-SK (fixed), en-ZA (fixed), es-CL (fixed), hi-IN (fixed), zh-CN (fixed), zh-TW (fixed), da-DK (fixed), hi-IN-translit (fixed), el-GR (fixed), he-IL (fixed), pt-BR (fixed), en-AE (fixed), pt-PT (fixed), fr-CH (fixed), ro-RO (fixed), vi-VN (fixed), en-SA (fixed), pl-PL (fixed), es-US (fixed), hi-Latn (fixed), en-SG (fixed), tr-TR (fixed), hr-HR (fixed), ko-KR (fixed), uk-UA (fixed), it-CH (fixed), ar-SA (fixed), id-ID (fixed), en-IN (fixed), es-ES (fixed), de-AT (fixed), en-IE (fixed), cs-CZ (fixed), es-CO (fixed), zh-HK (fixed), sv-SE (fixed), en-PH (fixed), en-ID (fixed), en-CA (fixed), nl-NL (fixed), yue-CN (fixed), en-NZ (fixed), en-GB (fixed), ja-JP (fixed), it-IT (fixed), ru-RU (fixed), en-US (fixed), ms-MY (fixed), es-MX (fixed), hu-HU (fixed), fr-CA (fixed), wuu-CN (fixed), de-DE (fixed), fr-FR (fixed), fi-FI (fixed), nb-NO (fixed), nl-BE (fixed), en-AU (fixed)]
以上输出未指定毛利语的语言环境。
我们可以SFSpeechRecognizer
使用毛利语吗?
我们可以从音频流中获取所有单词吗?然后创建一个单词数组,然后用毛利语字符串数学一个单词?
请向我提供正确的方向。