Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.0 ios #48

Merged
merged 3 commits into from
Jan 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions binding/ios/Eagle-iOS.podspec
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
Pod::Spec.new do |s|
s.name = 'Eagle-iOS'
s.module_name = 'Eagle'
s.version = '0.2.0'
s.version = '1.0.0'
s.license = {:type => 'Apache 2.0'}
s.summary = 'iOS binding for Picovoice\'s Eagle speaker recognition engine'
s.description =
<<-DESC
Eagle Speaker Recognition is speaker verification and identification software
Eagle Speaker Recognition is speaker verification and identification software
that distinguishes individuals using their unique voice characteristics.
DESC
s.homepage = 'https://github.com/Picovoice/eagle/tree/master/binding/ios'
s.author = { 'Picovoice' => '[email protected]' }
s.source = { :git => "https://github.com/Picovoice/eagle.git", :tag => "Eagle-iOS-v0.2.0" }
s.source = { :git => "https://github.com/Picovoice/eagle.git", :tag => "Eagle-iOS-v1.0.0" }
s.ios.deployment_target = '13.0'
s.swift_version = '5.0'
s.vendored_frameworks = 'lib/ios/PvEagle.xcframework'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright 2023 Picovoice Inc.
// Copyright 2023-2024 Picovoice Inc.
// You may not use this file except in compliance with the license. A copy of the license is located in the "LICENSE"
// file accompanying this source.
// Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
Expand Down Expand Up @@ -64,26 +64,6 @@ class EagleAppTestUITests: BaseTest {
eagleProfiler.delete()
}

func testEagleEnrollmentUnknownSpeaker() throws {
let enrollUrls = enrollUrls()
let imposterUrl = imposterUrl()

var feedback: EagleProfilerEnrollFeedback?

let eagleProfiler = try EagleProfiler(accessKey: accessKey)
for url in enrollUrls {
let pcm = try readPcmFromFile(testAudioURL: url)
(_, feedback) = try eagleProfiler.enroll(pcm: pcm)
XCTAssertEqual(feedback, EagleProfilerEnrollFeedback.AUDIO_OK)
}

let pcm = try readPcmFromFile(testAudioURL: imposterUrl)
(_, feedback) = try eagleProfiler.enroll(pcm: pcm)
XCTAssertEqual(feedback, EagleProfilerEnrollFeedback.UNKNOWN_SPEAKER)

eagleProfiler.delete()
}

func testEagleProcess() throws {
let testUrl = testUrl()

Expand Down
6 changes: 3 additions & 3 deletions binding/ios/EagleAppTest/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ source 'https://cdn.cocoapods.org/'
platform :ios, '13.0'

target 'EagleAppTest' do
pod 'Eagle-iOS', '~> 0.2.0'
pod 'Eagle-iOS', :podspec => 'https://raw.githubusercontent.com/Picovoice/eagle/v1.0-ios/binding/ios/Eagle-iOS.podspec'
end

target 'EagleAppTestUITests' do
pod 'Eagle-iOS', '~> 0.2.0'
pod 'Eagle-iOS', :podspec => 'https://raw.githubusercontent.com/Picovoice/eagle/v1.0-ios/binding/ios/Eagle-iOS.podspec'
end

target 'PerformanceTest' do
pod 'Eagle-iOS', '~> 0.2.0'
pod 'Eagle-iOS', :podspec => 'https://raw.githubusercontent.com/Picovoice/eagle/v1.0-ios/binding/ios/Eagle-iOS.podspec'
end
14 changes: 7 additions & 7 deletions binding/ios/EagleAppTest/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
PODS:
- Eagle-iOS (0.2.0)
- Eagle-iOS (1.0.0)

DEPENDENCIES:
- Eagle-iOS (~> 0.2.0)
- Eagle-iOS (from `https://raw.githubusercontent.com/Picovoice/eagle/v1.0-ios/binding/ios/Eagle-iOS.podspec`)

SPEC REPOS:
trunk:
- Eagle-iOS
EXTERNAL SOURCES:
Eagle-iOS:
:podspec: https://raw.githubusercontent.com/Picovoice/eagle/v1.0-ios/binding/ios/Eagle-iOS.podspec

SPEC CHECKSUMS:
Eagle-iOS: 4d73249948537760d43a71d133e36f4dab62baf1
Eagle-iOS: 02067133a7460faf56e0ef7b995c93543a8e0450

PODFILE CHECKSUM: 437084df4c8d112faabf682827d3b9f36717574b
PODFILE CHECKSUM: 6644ab972ff7cbe5e822a55d57563e985d138f9f

COCOAPODS: 1.11.3
2 changes: 1 addition & 1 deletion demo/ios/EagleDemo/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ source 'https://cdn.cocoapods.org/'
platform :ios, '14.0'

target 'EagleDemo' do
pod 'Eagle-iOS', '~> 0.2.0'
pod 'Eagle-iOS', :podspec => 'https://raw.githubusercontent.com/Picovoice/eagle/v1.0-ios/binding/ios/Eagle-iOS.podspec'
pod 'ios-voice-processor', '~> 1.0.3'
end
13 changes: 8 additions & 5 deletions demo/ios/EagleDemo/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
PODS:
- Eagle-iOS (0.2.0)
- Eagle-iOS (1.0.0)
- ios-voice-processor (1.0.3)

DEPENDENCIES:
- Eagle-iOS (~> 0.2.0)
- Eagle-iOS (from `https://raw.githubusercontent.com/Picovoice/eagle/v1.0-ios/binding/ios/Eagle-iOS.podspec`)
- ios-voice-processor (~> 1.0.3)

SPEC REPOS:
trunk:
- Eagle-iOS
- ios-voice-processor

EXTERNAL SOURCES:
Eagle-iOS:
:podspec: https://raw.githubusercontent.com/Picovoice/eagle/v1.0-ios/binding/ios/Eagle-iOS.podspec

SPEC CHECKSUMS:
Eagle-iOS: 4d73249948537760d43a71d133e36f4dab62baf1
Eagle-iOS: 02067133a7460faf56e0ef7b995c93543a8e0450
ios-voice-processor: 65b25a8db69ea25ffba0eeef37bae71a982f34cc

PODFILE CHECKSUM: 856dca93ab6416a5a8c6da6952dc2a955fea9e4f
PODFILE CHECKSUM: 80fbe8e61cae033b91409ea1ad086ff95a210ead

COCOAPODS: 1.11.3
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ PV_API pv_status_t pv_get_error_stack(
*/
PV_API void pv_free_error_stack(char **message_stack);

PV_API void pv_set_sdk(const char *sdk);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we want to expose this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's already a public function, but for iOS we have to add this to the head because otherwise the framework will claim that it doesn't exist even though the symbol is there in the actual dylib file. We've done this in the other products, it just hasn't been automated.


#ifdef __cplusplus
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ PV_API pv_status_t pv_get_error_stack(
*/
PV_API void pv_free_error_stack(char **message_stack);

PV_API void pv_set_sdk(const char *sdk);

#ifdef __cplusplus
}

Expand Down
Loading