diff --git a/binding/ios/Cobra-iOS.podspec b/binding/ios/Cobra-iOS.podspec index e44195e3..5ce02d9f 100644 --- a/binding/ios/Cobra-iOS.podspec +++ b/binding/ios/Cobra-iOS.podspec @@ -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 = @@ -12,8 +12,8 @@ Pod::Spec.new do |s| DESC s.homepage = 'https://github.com/Picovoice/cobra/tree/master/binding/ios' s.author = { 'Picovoice' => 'hello@picovoice.ai' } - 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}' diff --git a/binding/ios/CobraAppTest/CobraAppTest.xcodeproj/project.pbxproj b/binding/ios/CobraAppTest/CobraAppTest.xcodeproj/project.pbxproj index 55730642..17d8e586 100644 --- a/binding/ios/CobraAppTest/CobraAppTest.xcodeproj/project.pbxproj +++ b/binding/ios/CobraAppTest/CobraAppTest.xcodeproj/project.pbxproj @@ -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; @@ -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; diff --git a/binding/ios/CobraAppTest/CobraAppTestUITests/CobraAppTestUITests.swift b/binding/ios/CobraAppTest/CobraAppTestUITests/CobraAppTestUITests.swift index 2b7589e8..0ba7a927 100644 --- a/binding/ios/CobraAppTest/CobraAppTestUITests/CobraAppTestUITests.swift +++ b/binding/ios/CobraAppTest/CobraAppTestUITests/CobraAppTestUITests.swift @@ -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) } diff --git a/binding/ios/CobraAppTest/Podfile b/binding/ios/CobraAppTest/Podfile index b9cf6631..96ac748e 100644 --- a/binding/ios/CobraAppTest/Podfile +++ b/binding/ios/CobraAppTest/Podfile @@ -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 diff --git a/binding/ios/CobraAppTest/Podfile.lock b/binding/ios/CobraAppTest/Podfile.lock index 5780387a..12613f6e 100644 --- a/binding/ios/CobraAppTest/Podfile.lock +++ b/binding/ios/CobraAppTest/Podfile.lock @@ -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 diff --git a/binding/ios/README.md b/binding/ios/README.md index 11b61c4d..794a9aa1 100644 --- a/binding/ios/README.md +++ b/binding/ios/README.md @@ -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' @@ -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()) diff --git a/demo/ios/CobraDemo/Podfile b/demo/ios/CobraDemo/Podfile index e71e466e..3819ef5f 100644 --- a/demo/ios/CobraDemo/Podfile +++ b/demo/ios/CobraDemo/Podfile @@ -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 diff --git a/demo/ios/CobraDemo/Podfile.lock b/demo/ios/CobraDemo/Podfile.lock index 80f60475..50e17bc9 100644 --- a/demo/ios/CobraDemo/Podfile.lock +++ b/demo/ios/CobraDemo/Podfile.lock @@ -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: @@ -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