Skip to content

Commit 2e8578f

Browse files
committed
[fix]: sox fix
1 parent eaa5b9c commit 2e8578f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/ScriptToolkit/FileExtension.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ public extension File {
9696
////////////////////////////////////////////////////////////////////////////////
9797
// MARK: - Audio Processing
9898

99-
public func slowDownAudio(newName: String, size: CGSize) throws -> File {
100-
run("/usr/local/bin/sox", path, "-resize", "\(size.width)x\(size.height)",newName)
99+
public func slowDownAudio(newName: String, percent: Float) throws -> File {
100+
run("/usr/local/bin/sox", path, newName, "tempo", "-s", Int(percent))
101101
return try File(path: newName)
102102
}
103103

0 commit comments

Comments
 (0)