2 Commits
dev ... master

Author SHA1 Message Date
启星
22025ad033 切换域名 2025-12-01 08:50:55 +08:00
启星
6b01c3bb49 提交 2025-11-07 10:11:09 +08:00
6 changed files with 51 additions and 7 deletions

View File

@@ -787,7 +787,7 @@
"$(inherited)",
"$(SDKROOT)/usr/lib/swift",
);
MARKETING_VERSION = 1.1.2;
MARKETING_VERSION = 1.1.4;
PRODUCT_BUNDLE_IDENTIFIER = com.qxcm.qxlive;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
@@ -853,7 +853,7 @@
"$(inherited)",
"$(SDKROOT)/usr/lib/swift",
);
MARKETING_VERSION = 1.1.2;
MARKETING_VERSION = 1.1.4;
PRODUCT_BUNDLE_IDENTIFIER = com.qxcm.qxlive;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";

View File

@@ -0,0 +1,16 @@
//
// QXAudioEngineManager.h
// QXLive
//
// Created by 启星 on 2025/11/6.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface QXAudioEngineManager : NSObject
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,19 @@
//
// QXAudioEngineManager.m
// QXLive
//
// Created by on 2025/11/6.
//
#import "QXAudioEngineManager.h"
#import<Speech/Speech.h>
@interface QXAudioEngineManager()
@property (nonatomic, strong) AVAudioEngine *audioEngine;
@property (nonatomic, strong) SFSpeechRecognizer *speechRecognizer;
@property (nonatomic, strong) SFSpeechAudioBufferRecognitionRequest *recognitionRequest;
@property (nonatomic, strong) SFSpeechRecognitionTask *recognitionTask;
@property (nonatomic, strong) NSLocale *locale;
@end
@implementation QXAudioEngineManager
@end

View File

@@ -58,7 +58,7 @@ static NSString *const FaceAuthLicense = @"P6N+VYfdu1Op5p+QwUGdI4y64PqOnxMzChX2S
static NSInteger const TencentIMID = 1600096860;
static NSString *const TencentIMSecret = @"d9a5b8088ed39113d0c92ae434bc37528c4715c1f1d2eaedb172134eacd06103";
static NSString *const AddressOfMQTTServer = @"1.13.101.98";
static NSString *const AddressOfMQTTServer = @"1.13.20.30";
static NSInteger const AddressOfMQTTPort = 1883;
static NSInteger const AppPushId = 46163;

View File

@@ -20,8 +20,11 @@ static NSString* ServerUrl = @"https://test.vespa.qxyushen.top/";
//static NSString* ServerUrl = @"http://test.chat.qxyushen.top";
static NSString* H5ServerUrl = @"https://test.vespa.qxyushen.top/h5/";
#else
static NSString* ServerUrl = @"https://vespa.qxyushen.top/";
static NSString* H5ServerUrl = @"https://vespa.qxyushen.top/h5/";
//static NSString* ServerUrl = @"https://vespa.qxyushen.top/";
//static NSString* H5ServerUrl = @"https://vespa.qxyushen.top/h5/";
static NSString* ServerUrl = @"https://yushengapi.qxyushen.top/";
static NSString* H5ServerUrl = @"https://yushengapi.qxyushen.top/h5/";
#endif
#pragma mark - 引导页
/// 引导页

View File

@@ -202,8 +202,14 @@ NSInteger maxMessageCount = 20;
// [self.giftArray removeFirstObject];
// }
#if DEBUG
if (model.messageType == QXRoomChatMessageTypeGift || model.messageType == QXRoomChatMessageTypeSystem) {
AVSpeechUtterance *utterance = [[AVSpeechUtterance alloc] initWithString:model.text];
if (model.messageType == QXRoomChatMessageTypeGift || model.messageType == QXRoomChatMessageTypeSystem || model.messageType == QXRoomChatMessageTypeChat) {
NSString *text = @"";
if (model.messageType == QXRoomChatMessageTypeGift || model.messageType == QXRoomChatMessageTypeSystem) {
text = model.text;
}else{
text = [NSString stringWithFormat:@"%@说,%@",model.FromUserInfo.nickname,model.text];
}
AVSpeechUtterance *utterance = [[AVSpeechUtterance alloc] initWithString:text];
utterance.voice = [AVSpeechSynthesisVoice voiceWithLanguage:@"zh-CN"];
utterance.rate = 0.5 ;
utterance.pitchMultiplier = 1.0 ;