feat: mac语音转换silk格式修复

This commit is contained in:
Wxw-Gu committed 2026-08-31 10:55:52 +08:00
1 parent 5acfa14475
commit 6cbf9af662
14 files changed
+970 -12

No files matched your search

@@ -0,0 +1,37 @@
export const PERSONAL_WECHAT_PILK_VERSION = '0.2.4'
export type PersonalWechatVoiceEncodingEnvironmentState =
| 'unknown'
| 'ready'
| 'incomplete'
| 'unsupported'
| 'error'
export interface PersonalWechatVoiceRuntimeComponent {
ready: boolean
version?: string
executable?: string
path?: string
error?: string
}
export interface PersonalWechatVoiceEncodingEnvironment {
state: PersonalWechatVoiceEncodingEnvironmentState
ready: boolean
checkedAt?: string
runtimeReady: boolean
runtimeRoot?: string
python: PersonalWechatVoiceRuntimeComponent
pilk: PersonalWechatVoiceRuntimeComponent
ffmpeg: PersonalWechatVoiceRuntimeComponent
encoder: 'pilk' | 'go-silk' | 'unavailable'
message: string
}
export interface PersonalWechatVoiceEncodingEnvironmentResult {
success: boolean
environment: PersonalWechatVoiceEncodingEnvironment
error?: string
restarted?: boolean
restartError?: string
}