Skip to content

Commit

Permalink
update demos and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
laves committed Jan 26, 2024
1 parent 1f1c2a0 commit 8c4818b
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 37 deletions.
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

0 comments on commit 8c4818b

Please sign in to comment.