feat: 新增MAC微信发送消息 文字转语音 功能

This commit is contained in:
Wxw-Gu committed 2026-08-17 18:16:14 +08:00
1 parent 9b7f5114bd
commit 4058a817dd
48 files changed
+7240 -22

No files matched your search

+55
View File
@@ -53,6 +53,18 @@ import type {
ImageInsight
} from '../shared/image-insight'
import type { AgentHubActionResult, AgentHubLogEntry, AgentHubStatus } from '../shared/agent-hub'
import type {
PersonalWechatImageSelectionResult,
PersonalWechatVoiceSelectionResult,
PersonalWechatSendRequest,
PersonalWechatSendResult,
PersonalWechatSenderStatus
} from '../shared/personal-wechat'
import type {
PersonalWechatRuntimeDownloadResult,
PersonalWechatRuntimeProgressEvent,
PersonalWechatRuntimeStatus
} from '../shared/personal-wechat-runtime'
import type { AppLogEntry } from '../shared/app-log'
import type { AppUpdateCheckResult, AppUpdateState } from '../shared/app-update'
import type { CacheSummary } from '../shared/cache'
@@ -86,6 +98,14 @@ import type {
WechatShareServiceConfig,
WechatShareServiceConfigResult
} from '../shared/wechat-share-card'
import type {
ListTextToSpeechVoicesRequest,
ListTextToSpeechVoicesResult,
SaveTextToSpeechSettingsRequest,
SynthesizeTextToSpeechRequest,
SynthesizeTextToSpeechResult,
TextToSpeechSettingsResult
} from '../shared/text-to-speech'
export type ParsedContent =
| { type: 'text'; content: string }
@@ -250,6 +270,20 @@ declare global {
testAIProvider: (providerId: string) => Promise<AIConnectionTestResult>
testAIVision: (request: AIVisionTestRequest) => Promise<AIVisionTestResult>
migrateLegacyAIConfig: (config: LegacyAIConfig) => Promise<AIProviderListResult>
getTextToSpeechSettings: () => Promise<TextToSpeechSettingsResult>
saveTextToSpeechSettings: (
request: SaveTextToSpeechSettingsRequest
) => Promise<TextToSpeechSettingsResult>
listTextToSpeechVoices: (
request?: ListTextToSpeechVoicesRequest
) => Promise<ListTextToSpeechVoicesResult>
synthesizeTextToSpeech: (
request: SynthesizeTextToSpeechRequest
) => Promise<SynthesizeTextToSpeechResult>
removeGeneratedTextToSpeechAudio: (
filePath: string
) => Promise<{ success: boolean; error?: string }>
openFishAudioApiKeys: () => Promise<{ success: boolean; error?: string }>
copyImage: (base64String: string) => Promise<{ success: boolean; error?: string }>
getVoiceData: (
sessionId: string,
@@ -383,6 +417,8 @@ declare global {
appearanceTheme: 'system' | 'light' | 'dark'
compactMode: boolean
showStartupProgress: boolean
ttsSelectedVoiceId: string
ttsModel: import('../shared/text-to-speech').TextToSpeechModel
imageXorKey: string
imageAesKey: string
}
@@ -420,6 +456,8 @@ declare global {
appearanceTheme: 'system' | 'light' | 'dark'
compactMode: boolean
showStartupProgress: boolean
ttsSelectedVoiceId: string
ttsModel: import('../shared/text-to-speech').TextToSpeechModel
imageXorKey: string
imageAesKey: string
}
@@ -440,6 +478,8 @@ declare global {
appearanceTheme: 'system' | 'light' | 'dark'
compactMode: boolean
showStartupProgress: boolean
ttsSelectedVoiceId: string
ttsModel: import('../shared/text-to-speech').TextToSpeechModel
imageXorKey: string
imageAesKey: string
}>
@@ -533,6 +573,21 @@ declare global {
sessionId: string,
limit?: number
) => Promise<{ success: boolean; insights: ImageInsight[] }>
getPersonalWechatSenderStatus: () => Promise<PersonalWechatSenderStatus>
getPersonalWechatRuntimeStatus: () => Promise<PersonalWechatRuntimeStatus>
downloadPersonalWechatRuntime: () => Promise<PersonalWechatRuntimeDownloadResult>
cancelPersonalWechatRuntimeDownload: () => Promise<{ success: boolean }>
removePersonalWechatRuntime: () => Promise<PersonalWechatRuntimeStatus>
openPersonalWechatRuntimeDirectory: () => Promise<{ success: boolean; error?: string }>
onPersonalWechatRuntimeProgress: (
callback: (status: PersonalWechatRuntimeProgressEvent) => void
) => () => void
rebindPersonalWechatSender: () => Promise<PersonalWechatSenderStatus>
selectPersonalWechatImage: () => Promise<PersonalWechatImageSelectionResult>
selectPersonalWechatVoice: () => Promise<PersonalWechatVoiceSelectionResult>
sendPersonalWechatMessage: (
request: PersonalWechatSendRequest
) => Promise<PersonalWechatSendResult>
getAgentHubStatus: () => Promise<AgentHubStatus>
getAgentHubLogs: () => Promise<AgentHubLogEntry[]>
clearAgentHubLogs: () => Promise<void>