key缺少,添加权限多语言

This commit is contained in:
2026-03-07 13:29:29 +08:00
parent e03287605c
commit cbcf8c4197
47 changed files with 986 additions and 225 deletions

View File

@@ -1272,9 +1272,9 @@ static void KBChatUpdatedDarwinCallback(CFNotificationCenterRef center,
}
NSLog(@"[KBAIHomeVC] 语音转文字失败:%@", error.localizedDescription);
[KBHUD showError:KBLocalized(@"语音转文字失败,请重试")];
[KBHUD showError:KBLocalized(@"Voice-to-text failed, please try again")];
if (cell) {
[cell updateLastUserMessage:KBLocalized(@"语音识别失败")];
[cell updateLastUserMessage:KBLocalized(@"Voice recognition failed")];
}
strongSelf.isVoiceProcessing = NO;
[strongSelf updateCollectionViewScrollState];
@@ -1284,7 +1284,7 @@ static void KBChatUpdatedDarwinCallback(CFNotificationCenterRef center,
NSString *transcript = response.data.transcript ?: @"";
if (transcript.length == 0) {
NSLog(@"[KBAIHomeVC] 语音转文字结果为空");
[KBHUD showError:KBLocalized(@"未识别到语音内容")];
[KBHUD showError:KBLocalized(@"No speech content recognized")];
if (cell) {
[cell removeLoadingUserMessage];
}
@@ -1305,7 +1305,7 @@ static void KBChatUpdatedDarwinCallback(CFNotificationCenterRef center,
- (void)voiceRecordManagerDidRecordTooShort:(KBVoiceRecordManager *)manager {
NSLog(@"[KBAIHomeVC] 录音过短,已忽略");
[KBHUD showError:KBLocalized(@"录音时间过短,请重新录音")];
[KBHUD showError:KBLocalized(@"Recording too short, please try again")];
}
- (void)voiceRecordManager:(KBVoiceRecordManager *)manager