key缺少,添加权限多语言
This commit is contained in:
@@ -349,7 +349,7 @@
|
||||
_goChatButton.layer.cornerRadius = 25;
|
||||
}
|
||||
|
||||
[_goChatButton setTitle:KBLocalized(@"Go Chatting") forState:UIControlStateNormal];
|
||||
[_goChatButton setTitle:KBLocalized(@"Chatting") forState:UIControlStateNormal];
|
||||
[_goChatButton setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
|
||||
_goChatButton.titleLabel.font = [UIFont systemFontOfSize:16 weight:UIFontWeightSemibold];
|
||||
[_goChatButton addTarget:self action:@selector(goChatButtonTapped) forControlEvents:UIControlEventTouchUpInside];
|
||||
|
||||
@@ -548,7 +548,7 @@
|
||||
- (UILabel *)contentTitleLabel {
|
||||
if (!_contentTitleLabel) {
|
||||
_contentTitleLabel = [[UILabel alloc] init];
|
||||
_contentTitleLabel.text = KBLocalized(@"selection content");
|
||||
_contentTitleLabel.text = KBLocalized(@"Selection Content");
|
||||
_contentTitleLabel.font = [UIFont systemFontOfSize:16 weight:UIFontWeightMedium];
|
||||
_contentTitleLabel.textColor = [UIColor colorWithRed:0.1 green:0.1 blue:0.1 alpha:1.0];
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user