fix(api): fix audio duration

This commit is contained in:
Il Harper 2024-09-07 15:25:57 +08:00
parent bf1c495868
commit 139e188c4b
No known key found for this signature in database
GPG Key ID: 4B71FCA698E7E8EC

View File

@ -284,7 +284,9 @@ export class Messager {
this.children.push(
r.remoteAudio(
amrFile,
encodeResult.duration ? Math.ceil(encodeResult.duration) : 1,
encodeResult.duration
? Math.ceil(encodeResult.duration / 100)
: 1,
encodeResult.waveAmplitudes,
),
)