mirror of
https://wget.la/https://github.com/Wxw-Gu/WechatExplorer
synced 2026-12-01 09:15:41 +08:00
feat: 新增MAC微信发送消息 文字转语音 功能
This commit is contained in:
1 parent
9b7f5114bd
commit
4058a817dd
48 files changed
+7240
-22
No files matched your search
@@ -62,7 +62,11 @@ export class VoiceService {
|
||||
if (!pcmResult.success) return pcmResult
|
||||
const pcmData = pcmResult.audio.pcm
|
||||
|
||||
const wavData = this.createWavBuffer(pcmData, 24000)
|
||||
const wavData = this.createWavBuffer(
|
||||
pcmData,
|
||||
pcmResult.audio.sampleRate,
|
||||
pcmResult.audio.channels
|
||||
)
|
||||
console.log(
|
||||
'[VoiceService] wavData length:',
|
||||
wavData.length,
|
||||
|
||||
Reference in new issue
Block a user