-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
80 changed files
with
4,104 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,7 @@ body: | |
label: SDK | ||
options: | ||
- C | ||
- iOS | ||
- Python | ||
- Web | ||
- Android | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
name: iOS AppCenter Tests | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [ main ] | ||
paths: | ||
- '.github/workflows/ios-appcenter.yml' | ||
- 'binding/ios/FalconAppTest/**' | ||
- 'resources/audio_samples/**' | ||
pull_request: | ||
branches: [ main, 'v[0-9]+.[0-9]+' ] | ||
paths: | ||
- '.github/workflows/ios-appcenter.yml' | ||
- 'binding/ios/FalconAppTest/**' | ||
- 'resources/audio_samples/**' | ||
|
||
defaults: | ||
run: | ||
working-directory: binding/ios/FalconAppTest | ||
|
||
jobs: | ||
build: | ||
name: Run iOS Tests on AppCenter | ||
runs-on: macos-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Node.js environment | ||
uses: actions/setup-node@v3 | ||
|
||
- name: Install Cocoapods | ||
run: gem install cocoapods | ||
|
||
- name: Install AppCenter CLI | ||
run: npm install -g appcenter-cli | ||
|
||
- name: Make build dir | ||
run: mkdir ddp | ||
|
||
- name: Install resource script dependency | ||
run: | | ||
brew update | ||
brew install convmv | ||
- name: Copy test_resources | ||
run: ./copy_test_resources.sh | ||
|
||
- name: Run Cocoapods | ||
run: pod install | ||
|
||
- name: Inject AppID | ||
run: sed -i '.bak' 's:{TESTING_ACCESS_KEY_HERE}:${{secrets.PV_VALID_ACCESS_KEY}}:' | ||
FalconAppTestUITests/FalconAppTestUITests.swift | ||
|
||
- name: XCode Build | ||
run: xcrun xcodebuild build-for-testing | ||
-configuration Debug | ||
-workspace FalconAppTest.xcworkspace | ||
-sdk iphoneos | ||
-scheme FalconAppTest | ||
-derivedDataPath ddp | ||
CODE_SIGNING_ALLOWED=NO | ||
|
||
- name: Run Tests on AppCenter | ||
run: appcenter test run xcuitest | ||
--token ${{secrets.APPCENTERAPITOKEN}} | ||
--app "Picovoice/Falcon-iOS" | ||
--devices "Picovoice/ios-min-max" | ||
--test-series "falcon-ios" | ||
--locale "en_US" | ||
--build-dir ddp/Build/Products/Debug-iphoneos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: iOS Demos | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [ main ] | ||
paths: | ||
- 'demo/ios/FalconDemo/**' | ||
- '.github/workflows/ios-demos.yml' | ||
pull_request: | ||
branches: [ main, 'v[0-9]+.[0-9]+' ] | ||
paths: | ||
- 'demo/ios/FalconDemo/**' | ||
- '.github/workflows/ios-demos.yml' | ||
|
||
defaults: | ||
run: | ||
working-directory: demo/ios/FalconDemo | ||
|
||
jobs: | ||
build: | ||
runs-on: macos-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Node.js LTS | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: lts/* | ||
|
||
- name: Install Cocoapods | ||
run: gem install cocoapods | ||
|
||
- name: Install AppCenter CLI | ||
run: npm install -g appcenter-cli | ||
|
||
- name: Make build dir | ||
run: mkdir ddp | ||
|
||
- name: Run Cocoapods | ||
run: pod install | ||
|
||
- name: Build | ||
run: xcrun xcodebuild build | ||
-configuration Debug | ||
-workspace FalconDemo.xcworkspace | ||
-sdk iphoneos | ||
-scheme FalconDemo | ||
-derivedDataPath ddp | ||
CODE_SIGNING_ALLOWED=NO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
name: iOS Performance | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [ main ] | ||
paths: | ||
- 'lib/ios/**' | ||
- 'lib/common/**' | ||
- '.github/workflows/ios-perf.yml' | ||
pull_request: | ||
branches: [ main, 'v[0-9]+.[0-9]+' ] | ||
paths: | ||
- 'lib/ios/**' | ||
- 'lib/common/**' | ||
- '.github/workflows/ios-perf.yml' | ||
|
||
defaults: | ||
run: | ||
working-directory: binding/ios/FalconAppTest | ||
|
||
jobs: | ||
build: | ||
name: Run iOS Tests on AppCenter | ||
runs-on: macos-latest | ||
|
||
strategy: | ||
matrix: | ||
device: [ios-perf] | ||
include: | ||
- device: ios-perf | ||
procPerformanceThresholdSec: 0.5 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Node.js environment | ||
uses: actions/setup-node@v3 | ||
|
||
- name: Install Cocoapods | ||
run: gem install cocoapods | ||
|
||
- name: Install AppCenter CLI | ||
run: npm install -g appcenter-cli | ||
|
||
- name: Make build dir | ||
run: mkdir ddp | ||
|
||
- name: Install resource script dependency | ||
run: | | ||
brew update | ||
brew install convmv | ||
- name: Copy test_resources | ||
run: ./copy_test_resources.sh | ||
|
||
- name: Run Cocoapods | ||
run: pod install | ||
|
||
- name: Inject AppID | ||
run: sed -i '.bak' 's:{TESTING_ACCESS_KEY_HERE}:${{secrets.PV_VALID_ACCESS_KEY}}:' | ||
PerformanceTest/PerformanceTest.swift | ||
|
||
- name: Inject Number of Iterations | ||
run: sed -i '.bak' 's:{NUM_TEST_ITERATIONS}:100:' | ||
PerformanceTest/PerformanceTest.swift | ||
|
||
- name: Inject Performance Threshold | ||
run: sed -i '.bak' 's:{PROC_PERFORMANCE_THRESHOLD_SEC}:${{ matrix.procPerformanceThresholdSec }}:' | ||
PerformanceTest/PerformanceTest.swift | ||
|
||
- name: XCode Build | ||
run: xcrun xcodebuild build-for-testing | ||
-configuration Debug | ||
-workspace FalconAppTest.xcworkspace | ||
-sdk iphoneos | ||
-scheme PerformanceTest | ||
-derivedDataPath ddp | ||
CODE_SIGNING_ALLOWED=NO | ||
|
||
- name: Run Tests on AppCenter | ||
run: appcenter test run xcuitest | ||
--token ${{secrets.APPCENTERAPITOKEN}} | ||
--app "Picovoice/Falcon-iOS" | ||
--devices "Picovoice/${{ matrix.device }}" | ||
--test-series "falcon-ios" | ||
--locale "en_US" | ||
--build-dir ddp/Build/Products/Debug-iphoneos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Pod::Spec.new do |s| | ||
s.name = 'Falcon-iOS' | ||
s.module_name = 'Falcon' | ||
s.version = '1.0.0' | ||
s.license = {:type => 'Apache 2.0'} | ||
s.summary = 'iOS SDK for Picovoice\'s Falcon speaker diarization engine.' | ||
s.description = | ||
<<-DESC | ||
Falcon is an on-device speaker diarization engine that identifies speakers | ||
in an audio stream by finding speaker change points and grouping speech segments | ||
based on speaker voice characteristics. | ||
DESC | ||
s.homepage = 'https://github.com/Picovoice/falcon/tree/main/binding/ios' | ||
s.author = { 'Picovoice' => '[email protected]' } | ||
s.source = { :git => "https://github.com/Picovoice/falcon.git", :branch => "falcon-ios" } | ||
s.ios.deployment_target = '13.0' | ||
s.swift_version = '5.0' | ||
s.vendored_frameworks = 'lib/ios/PvFalcon.xcframework' | ||
s.resources = 'lib/common/falcon_params.pv' | ||
s.source_files = 'binding/ios/*.{swift}' | ||
s.exclude_files = 'binding/ios/FalconTestApp/**' | ||
end |
Oops, something went wrong.