mirror of
https://github.com/LLOneBot/LLOneBot.git
synced 2024-11-22 01:56:33 +00:00
fix: audio duration
This commit is contained in:
parent
a8a6290b70
commit
5c34afc228
@ -155,7 +155,7 @@ export async function encodeSilk(filePath: string) {
|
||||
fs.writeFileSync(pttPath, silk.data);
|
||||
fs.unlink(wavPath, (err) => {
|
||||
});
|
||||
const gDuration = await guessDuration(filePath)
|
||||
const gDuration = await guessDuration(pttPath)
|
||||
log(`语音文件${filePath}转换成功!`, pttPath, `时长:`, silk.duration)
|
||||
return {
|
||||
converted: true,
|
||||
|
Loading…
x
Reference in New Issue
Block a user