KelvinJin / libsox-iOS

The latest script that can build libsox.a for iOS. Also provide the prebuilt files for download. Support Bitcode.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Provide Swift example code [please]

kcochibili opened this issue · comments

Can you provide an example code for Swift? I am new to IOS development and Objective C is very hard for me to work with. I am only fluent with Swift. Thank you for the amazing library

@JqyModi Thank you so much for the pointer. I really appreciate this help.
Please provide examples as well, like how to run any sox commands

@kcochibili Sorry, I don't know how sox is called directly from the command line on iOS, but we can achieve the same functionality with the methods provided by sox.h

@JqyModi can you provide examples on how to do this using the methods in sox.h?

lets say I have a file sound.mp3 and I want to

• convert it to .wav
• change the sample rate
• and join it with another sound sound2.wav

can you show examples on how to do this from swift in your library?