Skip to content

Commit

Permalink
fix(api): fix audio duration
Browse files Browse the repository at this point in the history
  • Loading branch information
ilharp committed Sep 7, 2024
1 parent bf1c495 commit 139e188
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
)
Expand Down

0 comments on commit 139e188

Please sign in to comment.