Skip to content

An example of recording, encoding(G729), decoding and playing simultaniously through Audio Unit. Uses swift.

Notifications You must be signed in to change notification settings

partho-maple/PBRecPlayer_Swift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 

Repository files navigation

PBRecPlayer (Swift)

This program provides an example (on Apple's iOS) for how to get audio data from the microphone and reroute it to be heard through the speaker using Audio Unit. It's basically an skeleton of a audio calling app. It records audio, puts the recorder PCM data into TPCircularBuffer. Then it pulls that data, encode it to G729, decode it from G729 and again puts that into another TPCircularBuffer. And at last the player callback pulls that PCM data and plays through. This will work on iOS 6 and higher.

This is based on:

If you don't know anything about digital audio or the core audio framework, I advice you read Apple's "Core Audio overview" to get some idea of what you're doing. Last located at:

N.B. It's still under development. Any contribution will be highly appreciated. Feel free to contribute and contact. An Objective-C version is available at this link: https://github.com/partho-maple/PBRecPlayer_Obj-C/

About

An example of recording, encoding(G729), decoding and playing simultaniously through Audio Unit. Uses swift.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published