Latest 0.1.0
License MIT
Platforms ios 8.0

Converter between .amr and .wav file


  • iOS 8.0+
  • Xcode 7.3 or above



CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:

$ gem install cocoapods

To integrate NTYAmrConverter into your Xcode project using CocoaPods, specify it in your Podfile:

source ''
platform :ios, '8.0'

pod 'NTYAmrConverter', '~> 0.1'

Then, run the following command:

$ pod install

You should open the {Project}.xcworkspace instead of the {Project}.xcodeproj after you installed anything from CocoaPods.

For more information about how to use CocoaPods, I suggest this tutorial.


Carthage is a decentralized dependency manager for Cocoa application. To install the carthage tool, you can use Homebrew.

$ brew update
$ brew install carthage

To integrate NTYAmrConverter into your Xcode project using Carthage, specify it in your Cartfile:

github "ninty90/NTYAmrConverter" ~> 0.1

Then, run the following command to build the NTYAmrConverter framework:

$ carthage update

At last, you need to set up your Xcode project manually to add the NTYAmrConverter framework.

On your application targets’ “General” settings tab, in the “Linked Frameworks and Libraries” section, drag and drop each framework you want to use from the Carthage/Build folder on disk.

On your application targets’ “Build Phases” settings tab, click the “+” icon and choose “New Run Script Phase”. Create a Run Script with the following content:

/usr/local/bin/carthage copy-frameworks

and add the paths to the frameworks you want to use under “Input Files”:


For more information about how to use Carthage, please see its project page.


It is not recommended to install the framework manually, but if you prefer not to use either of the aforementioned dependency managers, you can integrate NTYAmrConverter into your project manually. A regular way to use NTYAmrConverter in your project would be using Embedded Framework.

  • Add NTYAmrConverter as a submodule. In your favorite terminal, cd into your top-level project directory, and entering the following command:
$ git submodule add
  • Open the NTYAmrConverter folder, and drag NTYAmrConverter.xcodeproj into the file navigator of your app project, under your app project.
  • In Xcode, navigate to the target configuration window by clicking on the blue project icon, and selecting the application target under the "Targets" heading in the sidebar.
  • In the tab bar at the top of that window, open the "Build Phases" panel.
  • Expand the "Target Dependencies" group, and add NTYAmrConverter.framework.
  • Click on the + button at the top left of "Build Phases" panel and select "New Copy Files Phase". Rename this new phase to "Copy Frameworks", set the "Destination" to "Frameworks", and add NTYAmrConverter.framework of the platform you need.


In your swift project, use like this:

import NTYAmrConverter

// encode wav to amr
NTYAmrCoder.encodeWavFile(wavPath, toAmrFile: amrPath)

// decode amr to wav
NTYAmrCoder.decodeAmrFile(amrPath, toWavFile: convertedWavPath)

You can find the full API documentation at CocoaDocs.

You can also see the Demo,
to run the Demo, use pod install first.


NTYAmrConverter is released under the MIT license. See LICENSE for details.

Latest podspec

    "name": "NTYAmrConverter",
    "version": "0.1.0",
    "summary": "Converter between .amr and .wav file",
    "homepage": "",
    "license": "MIT",
    "authors": {
        "Yinglun Duan": "[email protected]"
    "platforms": {
        "ios": "8.0"
    "source": {
        "git": "",
        "tag": "0.1.0"
    "source_files": "Source/**/*.{h,m}",
    "vendored_libraries": "Source/**/*.a"

Pin It on Pinterest

Share This