mirror of
https://wget.la/https://github.com/Wxw-Gu/WechatExplorer
synced 2026-11-30 16:02:58 +08:00
fix: 修复转换微信语音发送逻辑
This commit is contained in:
1 parent
b26d4dd1a7
commit
0d68217dda
18 files changed
+1020
-125
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user