fix: 修复转换微信语音发送逻辑

This commit is contained in:
Wxw-Gu committed 2026-08-27 14:43:09 +08:00
1 parent b26d4dd1a7
commit 0d68217dda
18 files changed
+1020 -125

No files matched your search

+24
View File
@@ -62,6 +62,8 @@ export interface PersonalWechatSendImageRequest extends PersonalWechatSendBaseRe
export interface PersonalWechatSendVoiceRequest extends PersonalWechatSendBaseRequest {
type: 'voice'
filePath: string
/** Internal comparison switch for the temporary voice regression test. */
voiceSendMode?: 'normalized' | 'legacy'
}
export type PersonalWechatSendRequest =
@@ -75,6 +77,28 @@ export interface PersonalWechatSendResult {
error?: string
}
/** Safe, user-copyable metadata for the most recent voice send attempt. */
export interface PersonalWechatVoiceDiagnostic {
request_id: string
voice_id: string
phase: 'prepared' | 'completed' | 'failed'
encoder_name: string
encoder_version: string
input_bytes?: number
normalized_input_bytes?: number
pcm_size?: number
sample_rate?: number
channels?: number
input_duration_ms?: number
upload_result?: string
upload_data_len?: number
silk_duration_ms?: number
send_result?: string
voice_send_mode?: 'normalized' | 'legacy'
failure_phase?: string
error?: string
}
export interface PersonalWechatImageSelectionResult {
canceled: boolean
path?: string