Skip to content

Commit

Permalink
update ios (#195)
Browse files Browse the repository at this point in the history
  • Loading branch information
laves authored Nov 17, 2023
1 parent 08384d8 commit 81a4b64
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 23 deletions.
6 changes: 3 additions & 3 deletions binding/ios/Cobra-iOS.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|
s.name = 'Cobra-iOS'
s.module_name = 'Cobra'
s.version = '2.0.0'
s.version = '2.0.1'
s.license = {:type => 'Apache 2.0'}
s.summary = 'iOS binding for Picovoice\'s Cobra voice activity detection (VAD) engine.'
s.description =
Expand All @@ -12,8 +12,8 @@ Pod::Spec.new do |s|
DESC
s.homepage = 'https://github.com/Picovoice/cobra/tree/master/binding/ios'
s.author = { 'Picovoice' => '[email protected]' }
s.source = { :git => "https://github.com/Picovoice/cobra.git", :tag => "Cobra-iOS-v2.0.0" }
s.ios.deployment_target = '11.0'
s.source = { :git => "https://github.com/Picovoice/cobra.git", :tag => "Cobra-iOS-v2.0.1" }
s.ios.deployment_target = '13.0'
s.swift_version = '5.0'
s.vendored_frameworks = 'lib/ios/PvCobra.xcframework'
s.source_files = 'binding/ios/*.{swift}'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
Expand Down Expand Up @@ -593,7 +593,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SWIFT_COMPILATION_MODE = wholemodule;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class CobraAppTestUITests: XCTestCase {

do {
let res = try cobra.process(pcm: testPcm)
XCTAssert(res != true)
XCTAssert(res == 66.6)
} catch {
XCTAssert("\(error.localizedDescription)".count > 0)
}
Expand Down
8 changes: 4 additions & 4 deletions binding/ios/CobraAppTest/Podfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
source 'https://cdn.cocoapods.org/'
platform :ios, '11.0'
platform :ios, '13.0'

target 'CobraAppTest' do
pod 'Cobra-iOS', '~> 2.0.0'
pod 'Cobra-iOS', '~> 2.0.1'
end

target 'CobraAppTestUITests' do
pod 'Cobra-iOS', '~> 2.0.0'
pod 'Cobra-iOS', '~> 2.0.1'
end

target 'PerformanceTest' do
pod 'Cobra-iOS', '~> 2.0.0'
pod 'Cobra-iOS', '~> 2.0.1'
end
8 changes: 4 additions & 4 deletions binding/ios/CobraAppTest/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
PODS:
- Cobra-iOS (2.0.0)
- Cobra-iOS (2.0.1)

DEPENDENCIES:
- Cobra-iOS (~> 2.0.0)
- Cobra-iOS (~> 2.0.1)

SPEC REPOS:
trunk:
- Cobra-iOS

SPEC CHECKSUMS:
Cobra-iOS: c8d7f9052b9b783b9976243e3092c9b9087f63fc
Cobra-iOS: 0305d7b8eea41122bdb5f71e4534c523d4d68dac

PODFILE CHECKSUM: 137881d8c57651849e46c3d711fcf8572d2b4864
PODFILE CHECKSUM: 8d0b35f955399e979896710f3514fccdddb0520e

COCOAPODS: 1.11.3
6 changes: 3 additions & 3 deletions binding/ios/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ Cobra is a highly accurate and lightweight voice activity detection (VAD) engine

## Compatibility

- iOS 11.0 or higher
- iOS 13.0 or higher

## Installation

The Cobra iOS binding is available via [Cocoapods](https://cocoapods.org/pods/Cobra-iOS). To import it into your iOS project, add the following line to your Podfile and run `pod install`:
The Cobra iOS binding is available via [Cocoapods](https://cocoapods.org/pods/Cobra-iOS). To import it into your iOS project, add the following line to your Podfile and run `pod install`:

```ruby
pod 'Cobra-iOS'
Expand Down Expand Up @@ -51,7 +51,7 @@ func getNextAudioFrame() -> [Int16] {
return audioFrame;
}

let threshold = // .. detection threshold within [0, 1]
let threshold = // .. detection threshold within [0, 1]
while true {
do {
let voiceProbability = try handle.process(getNextAudioFrame())
Expand Down
4 changes: 2 additions & 2 deletions demo/ios/CobraDemo/Podfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
source 'https://cdn.cocoapods.org/'
platform :ios, '11.0'
platform :ios, '13.0'

target 'CobraDemo' do
pod 'Cobra-iOS', '~> 2.0.0'
pod 'Cobra-iOS', '~> 2.0.1'
pod 'ios-voice-processor', '~> 1.1.0'
end
8 changes: 4 additions & 4 deletions demo/ios/CobraDemo/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
PODS:
- Cobra-iOS (2.0.0)
- Cobra-iOS (2.0.1)
- ios-voice-processor (1.1.0)

DEPENDENCIES:
- Cobra-iOS (~> 2.0.0)
- Cobra-iOS (~> 2.0.1)
- ios-voice-processor (~> 1.1.0)

SPEC REPOS:
Expand All @@ -12,9 +12,9 @@ SPEC REPOS:
- ios-voice-processor

SPEC CHECKSUMS:
Cobra-iOS: c8d7f9052b9b783b9976243e3092c9b9087f63fc
Cobra-iOS: 0305d7b8eea41122bdb5f71e4534c523d4d68dac
ios-voice-processor: 8e32d7f980a06d392d128ef1cd19cf6ddcaca3c1

PODFILE CHECKSUM: 801ed69264e830803153558759bae19df923fdad
PODFILE CHECKSUM: 0c39f02ee5dc224f3058e7966192f38d9c78785d

COCOAPODS: 1.11.3

0 comments on commit 81a4b64

Please sign in to comment.