From 78786518b881c13cc58ad9a597e9fa9284823967 Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Sun, 24 Aug 2025 16:19:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/modules/qqmusic/views/qqmusic_playlist_view.dart | 4 ++-- .../Sources/agent_service/AgentServiceImpl.swift | 6 +++--- .../azure_speech/Sources/azure_speech/AzureTtsHelper.swift | 5 +++++ 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/lib/modules/qqmusic/views/qqmusic_playlist_view.dart b/lib/modules/qqmusic/views/qqmusic_playlist_view.dart index 3fc92b6a3..a3d067524 100644 --- a/lib/modules/qqmusic/views/qqmusic_playlist_view.dart +++ b/lib/modules/qqmusic/views/qqmusic_playlist_view.dart @@ -62,7 +62,7 @@ class QqmusicPlaylistView extends GetView { ], ), // 添加迷你播放器 - bottomNavigationBar: _buildMiniPlayer(isDarkMode), + // bottomNavigationBar: _buildMiniPlayer(isDarkMode), ); } @@ -113,7 +113,7 @@ class QqmusicPlaylistView extends GetView { _buildProgressBar(isDarkMode), SizedBox(height: 15.h), // 播放控制按钮 - // _buildPlayControls(isDarkMode), + _buildPlayControls(isDarkMode), ], ), ); diff --git a/local_plugins/agent_service/ios/agent_service/Sources/agent_service/AgentServiceImpl.swift b/local_plugins/agent_service/ios/agent_service/Sources/agent_service/AgentServiceImpl.swift index 858e1baec..534ebb634 100644 --- a/local_plugins/agent_service/ios/agent_service/Sources/agent_service/AgentServiceImpl.swift +++ b/local_plugins/agent_service/ios/agent_service/Sources/agent_service/AgentServiceImpl.swift @@ -1508,7 +1508,7 @@ class AudioPlayer { } func playStartSound() { - playSound(named: "start", fileType: "mp3") +// playSound(named: "start", fileType: "mp3") } func playAwaitSound() { @@ -1523,11 +1523,11 @@ class AudioPlayer { } func playStopSound() { - playSound(named: "stop", fileType: "mp3") +// playSound(named: "stop", fileType: "mp3") } func playCallingSound() { - playLoopSound(named: "calling", fileType: "mp3", player: &callingPlayer) +// playLoopSound(named: "calling", fileType: "mp3", player: &callingPlayer) } func stopCallingSound() { diff --git a/local_plugins/azure_speech/ios/azure_speech/Sources/azure_speech/AzureTtsHelper.swift b/local_plugins/azure_speech/ios/azure_speech/Sources/azure_speech/AzureTtsHelper.swift index 225bf71c2..1e147a899 100644 --- a/local_plugins/azure_speech/ios/azure_speech/Sources/azure_speech/AzureTtsHelper.swift +++ b/local_plugins/azure_speech/ios/azure_speech/Sources/azure_speech/AzureTtsHelper.swift @@ -525,6 +525,11 @@ public class AzureTtsHelper: NSObject, ITtsService { cleaned = regex.stringByReplacingMatches(in: cleaned, range: NSRange(location: 0, length: cleaned.count), withTemplate: "") } + // 移除标点符号 + if let regex = try? NSRegularExpression(pattern: "[;:#;:*\\n]+", options: .caseInsensitive) { + cleaned = regex.stringByReplacingMatches(in: cleaned, range: NSRange(location: 0, length: cleaned.count), withTemplate: "") + } + // 合并空格 if let regex = try? NSRegularExpression(pattern: "\\s+", options: .caseInsensitive) { cleaned = regex.stringByReplacingMatches(in: cleaned, range: NSRange(location: 0, length: cleaned.count), withTemplate: " ")