Swiftpack.co -  fuziki/WorldInApple as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
fuziki/WorldInApple
Swift wrapper for vocoder World(https://github.com/mmorise/World)
.package(url: "https://github.com/fuziki/WorldInApple.git", from: "v0.1.0")

WorldInApple

Platform Swift Xode

Swift wrapper for vocoder World (https://github.com/mmorise/World)

  • Swift wrapper
    • Support iOS

Required

  • Xcode 12

Projects

WorldInApple

WorldInApple Target

  • swift wrapper for World

WorldLib

  • World library source code
  • fix header path
    • Because SwiftPM does not support USER_HEADER_SEARCH_PATHS
    • refer to the patch file for details. (fix-world-header-path.patch)

Examples

Multiplatform (iOS)

  • Example for iOS
clone https://github.com/fuziki/WorldInApple
cd WorldInApple
open WorldInApple.xcworkspace

Usage

Shift AVAudioPCMBuffer pitch and formant

let buffer: AVAudioPCMBuffer
x_length = buffer.frameLength  

make WorldInApple instance

let worldInApple = WorldInApple(fs: 48000, frame_period: 5, x_length: 38400)

set pitch and formant

worldInApple.set(pitch: Double(1.2))    //positive number
worldInApple.set(formant: Double(1.8))    //positive number

shift pitch and formant

let result = worldInApple.conv(buffer: buffer)

Installation

SwiftPM

https://github.com/fuziki/WorldInApple
    dependencies: [
        // Dependencies declare other packages that this package depends on.
        // .package(url: /* package url */, from: "1.0.0"),
        .package(url: "https://github.com/fuziki/WorldInApple", from: "0.1.0"),
    ],

Makefile

  • install-worldlib

    • download World
    • copy files
    • apply patch file
  • clean-worldlib

    • clean world

GitHub

link
Stars: 13
Last commit: 2 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Release Notes

Support SwiftPM
6 weeks ago
  • Support SwiftPM
  • End of support for Carthage

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API