Skip to content
Merged

v3.0 #99

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
12 changes: 12 additions & 0 deletions .github/workflows/android-browserstack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,19 @@ jobs:
- name: Inject AccessKey
run: echo pvTestingAccessKey="${{secrets.PV_VALID_ACCESS_KEY}}" >> local.properties

- name: Inject Device
run: echo pvTestingDevice="cpu:1" >> local.properties

- name: Inject Android keystore variables
run: |
echo storePassword="${{secrets.ANDROID_RELEASE_KEYSTORE_PASSWORD}}" >> local.properties
echo keyPassword="${{secrets.ANDROID_RELEASE_KEYSTORE_PASSWORD}}" >> local.properties
echo keyAlias=picovoice >> local.properties
echo storeFile=../picovoice.jks >> local.properties

- name: Inject Device
run: echo device="cpu" >> local.properties

- name: Setup Android keystore file
run: echo "${{secrets.ANDROID_RELEASE_KEYSTORE_FILE_B64}}" | base64 -d > picovoice.jks

Expand Down Expand Up @@ -100,13 +106,19 @@ jobs:
- name: Inject AccessKey
run: echo pvTestingAccessKey="${{secrets.PV_VALID_ACCESS_KEY}}" >> local.properties

- name: Inject Device
run: echo pvTestingDevice="cpu:1" >> local.properties

- name: Inject Android keystore variables
run: |
echo storePassword="${{secrets.ANDROID_RELEASE_KEYSTORE_PASSWORD}}" >> local.properties
echo keyPassword="${{secrets.ANDROID_RELEASE_KEYSTORE_PASSWORD}}" >> local.properties
echo keyAlias=picovoice >> local.properties
echo storeFile=../picovoice.jks >> local.properties

- name: Inject Device
run: echo device="cpu" >> local.properties

- name: Setup Android keystore file
run: echo "${{secrets.ANDROID_RELEASE_KEYSTORE_FILE_B64}}" | base64 -d > picovoice.jks

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/android-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:

steps:
- uses: actions/checkout@v3

- name: Override gradle settings
run: sed -i "s/com.android.tools.build:gradle:[0-9]*\.[0-9]*\.[0-9]*/com.android.tools.build:gradle:${{ matrix.agp-version }}/g" build.gradle

Expand All @@ -47,7 +47,7 @@ jobs:
with:
java-version: ${{ matrix.java-version }}
distribution: 'temurin'

- name: Use Gradle ${{ matrix.gradle-version }}
uses: gradle/actions/setup-gradle@v3
with:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/android-perf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ jobs:
- name: Inject AccessKey
run: echo pvTestingAccessKey="${{secrets.PV_VALID_ACCESS_KEY}}" >> local.properties

- name: Inject Device
run: echo pvTestingDevice="cpu:1" >> local.properties

- name: Inject Android keystore variables
run: |
echo storePassword="${{secrets.ANDROID_RELEASE_KEYSTORE_PASSWORD}}" >> local.properties
Expand Down Expand Up @@ -91,4 +94,3 @@ jobs:
--devices "${{ matrix.device }}"
--app_path "koala-test-app/build/outputs/apk/debug/koala-test-app-debug.apk"
--test_path "koala-test-app/build/outputs/apk/androidTest/debug/koala-test-app-debug-androidTest.apk"

4 changes: 2 additions & 2 deletions .github/workflows/android-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: set up JDK 17
- name: set up JDK 11
uses: actions/setup-java@v3
with:
java-version: 17
java-version: 11
distribution: 'temurin'

- name: Set up service json
Expand Down
32 changes: 26 additions & 6 deletions .github/workflows/c-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:

strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
os: [ ubuntu-latest, windows-latest, macos-latest ]
include:
- os: ubuntu-latest
pv_recorder_platform: "linux"
Expand All @@ -62,7 +62,7 @@ jobs:

strategy:
matrix:
machine: [rpi3-32, rpi3-64, rpi4-32, rpi4-64, rpi5-64, pv-windows-arm64]
machine: [ rpi3-32, rpi3-64, rpi4-32, rpi4-64, rpi5-64, pv-windows-arm64 ]
include:
- machine: rpi3-32
make_file: "Unix Makefiles"
Expand Down Expand Up @@ -99,7 +99,8 @@ jobs:

strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
device: [ cpu, cpu:1 ]
os: [ ubuntu-latest, windows-latest, macos-latest ]
include:
- os: ubuntu-latest
platform: linux
Expand Down Expand Up @@ -131,14 +132,15 @@ jobs:
run: cmake --build ./build --target koala_demo_file

- name: Test
run: python test/test_koala_c.py ${{secrets.PV_VALID_ACCESS_KEY}} ${{ matrix.platform }} ${{ matrix.arch }}
run: python test/test_koala_c.py ${{secrets.PV_VALID_ACCESS_KEY}} ${{ matrix.device }} ${{ matrix.platform }} ${{ matrix.arch }}

build-filedemo-self-hosted:
runs-on: ${{ matrix.machine }}

strategy:
matrix:
machine: [rpi3-32, rpi3-64, rpi4-32, rpi4-64, rpi5-64]
device: [ best ]
machine: [ rpi3-32, rpi3-64, rpi4-32, rpi4-64, rpi5-64, pv-windows-arm64 ]
include:
- machine: rpi3-32
platform: raspberry-pi
Expand Down Expand Up @@ -170,6 +172,24 @@ jobs:
arch: arm64
make_file: "MinGW Makefiles"
pv_recorder_platform: "windows-arm64"
- device: gpu
machine: pv-linux
platform: linux
arch: x86_64
make_file: "Unix Makefiles"
pv_recorder_platform: "linux"
- device: gpu
machine: pv-windows
platform: windows
arch: amd64
make_file: "MinGW Makefiles"
pv_recorder_platform: "windows-amd64"
- device: gpu
machine: pv-ios
platform: mac
arch: arm64
make_file: "Unix Makefiles"
pv_recorder_platform: "mac-arm64"

steps:
- uses: actions/checkout@v3
Expand All @@ -183,4 +203,4 @@ jobs:
run: cmake --build ./build --target koala_demo_file

- name: Test
run: python test/test_koala_c.py ${{secrets.PV_VALID_ACCESS_KEY}} ${{ matrix.platform }} ${{ matrix.arch }}
run: python3 test/test_koala_c.py ${{secrets.PV_VALID_ACCESS_KEY}} ${{ matrix.device }} ${{ matrix.platform }} ${{ matrix.arch }}
4 changes: 4 additions & 0 deletions .github/workflows/ios-browserstack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ jobs:
run: sed -i '.bak' 's:{TESTING_ACCESS_KEY_HERE}:${{secrets.PV_VALID_ACCESS_KEY}}:'
KoalaAppTestUITests/KoalaAppTestUITests.swift

- name: Inject Device
run: sed -i '.bak' 's:{TESTING_DEVICE_HERE}:cpu\:1:'
KoalaAppTestUITests/KoalaAppTestUITests.swift

- name: XCode Build
run: xcrun xcodebuild build-for-testing
-configuration Debug
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ios-perf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ jobs:
run: sed -i '.bak' 's:{TESTING_ACCESS_KEY_HERE}:${{secrets.PV_VALID_ACCESS_KEY}}:'
PerformanceTest/PerformanceTest.swift

- name: Inject Device
run: sed -i '.bak' 's:{TESTING_DEVICE_HERE}:cpu\:1:'
PerformanceTest/PerformanceTest.swift

- name: Inject Number of Iterations
run: sed -i '.bak' 's:{NUM_TEST_ITERATIONS}:30:'
PerformanceTest/PerformanceTest.swift
Expand Down
17 changes: 14 additions & 3 deletions .github/workflows/python-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ jobs:

strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
device: [ cpu:1, cpu ]
os: [ ubuntu-latest, windows-latest, macos-latest ]
python-version: [ '3.9', '3.10', '3.11', '3.12', '3.13', '3.14' ]

steps:
- uses: actions/checkout@v3
Expand All @@ -48,6 +49,7 @@ jobs:
run: >
python koala_demo_file.py
--access_key ${{secrets.PV_VALID_ACCESS_KEY}}
--device ${{ matrix.device }}
--input_path ../../resources/audio_samples/test.wav
--output_path ./tmp.wav

Expand All @@ -56,7 +58,15 @@ jobs:

strategy:
matrix:
machine: [rpi3-32, rpi3-64, rpi4-32, rpi4-64, rpi5-64, pv-windows-arm64]
device: [ best ]
machine: [ rpi3-32, rpi3-64, rpi4-32, rpi4-64, rpi5-64, pv-windows-arm64 ]
include:
- device: gpu
machine: pv-linux
- device: gpu
machine: pv-windows
- device: gpu
machine: pv-ios

steps:
- uses: actions/checkout@v3
Expand All @@ -68,5 +78,6 @@ jobs:
run: >
python3 koala_demo_file.py
--access_key ${{secrets.PV_VALID_ACCESS_KEY}}
--device ${{ matrix.device }}
--input_path ../../resources/audio_samples/test.wav
--output_path ./tmp.wav
18 changes: 12 additions & 6 deletions .github/workflows/python-perf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
device: [ cpu:1 ]
os: [ ubuntu-latest, windows-latest, macos-latest ]
include:
- os: ubuntu-latest
proc_performance_threshold_sec: 0.8
Expand All @@ -69,6 +70,7 @@ jobs:
run: >
python3 test_koala_perf.py
--access-key ${{secrets.PV_VALID_ACCESS_KEY}}
--device ${{ matrix.device }}
--num-test-iterations 20
--proc-performance-threshold-sec ${{matrix.proc_performance_threshold_sec}}

Expand All @@ -78,7 +80,8 @@ jobs:
strategy:
fail-fast: false
matrix:
machine: [rpi3-32, rpi3-64, rpi4-32, rpi4-64, rpi5-64]
device: [ cpu:1 ]
machine: [ rpi3-32, rpi3-64, rpi4-32, rpi4-64, rpi5-64 ]
include:
- machine: rpi3-32
proc_performance_threshold_sec: 2.5
Expand All @@ -105,6 +108,7 @@ jobs:
run: >
python3 test_koala_perf.py
--access-key ${{secrets.PV_VALID_ACCESS_KEY}}
--device ${{ matrix.device }}
--num-test-iterations 20
--proc-performance-threshold-sec ${{matrix.proc_performance_threshold_sec}}

Expand All @@ -118,10 +122,11 @@ jobs:
strategy:
fail-fast: false
matrix:
machine: [pv-windows-arm64]
device: [ cpu:1 ]
machine: [ pv-windows-arm64 ]
include:
- machine: pv-windows-arm64
proc_performance_threshold_sec: 0.8
- machine: pv-windows-arm64
proc_performance_threshold_sec: 0.8

steps:
- uses: actions/checkout@v3
Expand All @@ -133,5 +138,6 @@ jobs:
run: >
python3 test_koala_perf.py
--access-key ${{secrets.PV_VALID_ACCESS_KEY}}
--device ${{ matrix.device }}
--num-test-iterations 20
--proc-performance-threshold-sec ${{matrix.proc_performance_threshold_sec}}
--proc-performance-threshold-sec ${{ matrix.proc_performance_threshold_sec}}
19 changes: 14 additions & 5 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ jobs:

strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
device: [ cpu, cpu:1 ]
os: [ ubuntu-latest, windows-latest, macos-latest ]
python-version: [ '3.9', '3.10', '3.11', '3.12', '3.13', '3.14' ]

steps:
- uses: actions/checkout@v3
Expand All @@ -57,14 +58,22 @@ jobs:
run: pip install -r requirements.txt

- name: Test
run: python test_koala.py --access-key ${{secrets.PV_VALID_ACCESS_KEY}}
run: python test_koala.py --access-key ${{secrets.PV_VALID_ACCESS_KEY}} --device ${{ matrix.device }}

build-self-hosted:
runs-on: ${{ matrix.machine }}

strategy:
matrix:
machine: [rpi3-32, rpi3-64, rpi4-32, rpi4-64, rpi5-64, pv-windows-arm64]
device: [ best ]
machine: [ rpi3-32, rpi3-64, rpi4-32, rpi4-64, rpi5-64, pv-windows-arm64 ]
include:
- device: gpu
machine: pv-linux
- device: gpu
machine: pv-windows
- device: gpu
machine: pv-ios

steps:
- uses: actions/checkout@v3
Expand All @@ -76,4 +85,4 @@ jobs:
run: pip install -r requirements.txt

- name: Test
run: python3 test_koala.py --access-key ${{secrets.PV_VALID_ACCESS_KEY}}
run: python3 test_koala.py --access-key ${{secrets.PV_VALID_ACCESS_KEY}} --device ${{ matrix.device }}
6 changes: 1 addition & 5 deletions .github/workflows/web-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:

strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
node-version: [18.x, 20.x, 22.x, 24.x]

steps:
- uses: actions/checkout@v3
Expand All @@ -35,10 +35,6 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- name: Build Web SDK
run: yarn && yarn copywasm && yarn build
working-directory: binding/web

- name: Pre-build dependencies
run: npm install yarn

Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/web-perf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:

strategy:
matrix:
device: [ cpu:1 ]
node-version: [lts/*]
include:
- node-version: lts/*
Expand Down Expand Up @@ -58,4 +59,4 @@ jobs:
run: yarn setup-test

- name: Test
run: yarn test-perf --env ACCESS_KEY=${{secrets.PV_VALID_ACCESS_KEY}},NUM_TEST_ITERATIONS=15,PROC_PERFORMANCE_THRESHOLD_SEC=${{ matrix.procPerformanceThresholdSec }}
run: yarn test-perf --env ACCESS_KEY=${{secrets.PV_VALID_ACCESS_KEY}},DEVICE=${{ matrix.device }},NUM_TEST_ITERATIONS=15,PROC_PERFORMANCE_THRESHOLD_SEC=${{ matrix.procPerformanceThresholdSec }}
5 changes: 3 additions & 2 deletions .github/workflows/web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ jobs:

strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
device: [ cpu:1, cpu ]
node-version: [ 18.x, 20.x, 22.x, 24.x ]

steps:
- uses: actions/checkout@v3
Expand All @@ -57,4 +58,4 @@ jobs:
run: yarn setup-test

- name: Test
run: yarn test --env ACCESS_KEY=${{secrets.PV_VALID_ACCESS_KEY}}
run: yarn test --env ACCESS_KEY=${{secrets.PV_VALID_ACCESS_KEY}},DEVICE=${{ matrix.device }}
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// swift-tools-version:5.3
// swift-tools-version:5.7
import PackageDescription
let package = Package(
name: "Koala-iOS",
platforms: [
.iOS(.v13)
.iOS(.v16)
],
products: [
.library(
Expand Down
Loading
Loading