Skip to content

Commit dbb9e24

Browse files
authored
v3.0 (#99)
1 parent 20bc676 commit dbb9e24

File tree

98 files changed

+1775
-705
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+1775
-705
lines changed

.github/workflows/android-browserstack.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,19 @@ jobs:
4848
- name: Inject AccessKey
4949
run: echo pvTestingAccessKey="${{secrets.PV_VALID_ACCESS_KEY}}" >> local.properties
5050

51+
- name: Inject Device
52+
run: echo pvTestingDevice="cpu:1" >> local.properties
53+
5154
- name: Inject Android keystore variables
5255
run: |
5356
echo storePassword="${{secrets.ANDROID_RELEASE_KEYSTORE_PASSWORD}}" >> local.properties
5457
echo keyPassword="${{secrets.ANDROID_RELEASE_KEYSTORE_PASSWORD}}" >> local.properties
5558
echo keyAlias=picovoice >> local.properties
5659
echo storeFile=../picovoice.jks >> local.properties
5760
61+
- name: Inject Device
62+
run: echo device="cpu" >> local.properties
63+
5864
- name: Setup Android keystore file
5965
run: echo "${{secrets.ANDROID_RELEASE_KEYSTORE_FILE_B64}}" | base64 -d > picovoice.jks
6066

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

109+
- name: Inject Device
110+
run: echo pvTestingDevice="cpu:1" >> local.properties
111+
103112
- name: Inject Android keystore variables
104113
run: |
105114
echo storePassword="${{secrets.ANDROID_RELEASE_KEYSTORE_PASSWORD}}" >> local.properties
106115
echo keyPassword="${{secrets.ANDROID_RELEASE_KEYSTORE_PASSWORD}}" >> local.properties
107116
echo keyAlias=picovoice >> local.properties
108117
echo storeFile=../picovoice.jks >> local.properties
109118
119+
- name: Inject Device
120+
run: echo device="cpu" >> local.properties
121+
110122
- name: Setup Android keystore file
111123
run: echo "${{secrets.ANDROID_RELEASE_KEYSTORE_FILE_B64}}" | base64 -d > picovoice.jks
112124

.github/workflows/android-demos.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838

3939
steps:
4040
- uses: actions/checkout@v3
41-
41+
4242
- name: Override gradle settings
4343
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
4444

@@ -47,7 +47,7 @@ jobs:
4747
with:
4848
java-version: ${{ matrix.java-version }}
4949
distribution: 'temurin'
50-
50+
5151
- name: Use Gradle ${{ matrix.gradle-version }}
5252
uses: gradle/actions/setup-gradle@v3
5353
with:

.github/workflows/android-perf.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ jobs:
5757
- name: Inject AccessKey
5858
run: echo pvTestingAccessKey="${{secrets.PV_VALID_ACCESS_KEY}}" >> local.properties
5959

60+
- name: Inject Device
61+
run: echo pvTestingDevice="cpu:1" >> local.properties
62+
6063
- name: Inject Android keystore variables
6164
run: |
6265
echo storePassword="${{secrets.ANDROID_RELEASE_KEYSTORE_PASSWORD}}" >> local.properties
@@ -91,4 +94,3 @@ jobs:
9194
--devices "${{ matrix.device }}"
9295
--app_path "koala-test-app/build/outputs/apk/debug/koala-test-app-debug.apk"
9396
--test_path "koala-test-app/build/outputs/apk/androidTest/debug/koala-test-app-debug-androidTest.apk"
94-

.github/workflows/android-upload.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ jobs:
2323
steps:
2424
- uses: actions/checkout@v3
2525

26-
- name: set up JDK 17
26+
- name: set up JDK 11
2727
uses: actions/setup-java@v3
2828
with:
29-
java-version: 17
29+
java-version: 11
3030
distribution: 'temurin'
3131

3232
- name: Set up service json

.github/workflows/c-demos.yml

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737

3838
strategy:
3939
matrix:
40-
os: [ubuntu-latest, windows-latest, macos-latest]
40+
os: [ ubuntu-latest, windows-latest, macos-latest ]
4141
include:
4242
- os: ubuntu-latest
4343
pv_recorder_platform: "linux"
@@ -62,7 +62,7 @@ jobs:
6262

6363
strategy:
6464
matrix:
65-
machine: [rpi3-32, rpi3-64, rpi4-32, rpi4-64, rpi5-64, pv-windows-arm64]
65+
machine: [ rpi3-32, rpi3-64, rpi4-32, rpi4-64, rpi5-64, pv-windows-arm64 ]
6666
include:
6767
- machine: rpi3-32
6868
make_file: "Unix Makefiles"
@@ -99,7 +99,8 @@ jobs:
9999

100100
strategy:
101101
matrix:
102-
os: [ubuntu-latest, windows-latest, macos-latest]
102+
device: [ cpu, cpu:1 ]
103+
os: [ ubuntu-latest, windows-latest, macos-latest ]
103104
include:
104105
- os: ubuntu-latest
105106
platform: linux
@@ -131,14 +132,15 @@ jobs:
131132
run: cmake --build ./build --target koala_demo_file
132133

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

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

139140
strategy:
140141
matrix:
141-
machine: [rpi3-32, rpi3-64, rpi4-32, rpi4-64, rpi5-64]
142+
device: [ best ]
143+
machine: [ rpi3-32, rpi3-64, rpi4-32, rpi4-64, rpi5-64, pv-windows-arm64 ]
142144
include:
143145
- machine: rpi3-32
144146
platform: raspberry-pi
@@ -170,6 +172,24 @@ jobs:
170172
arch: arm64
171173
make_file: "MinGW Makefiles"
172174
pv_recorder_platform: "windows-arm64"
175+
- device: gpu
176+
machine: pv-linux
177+
platform: linux
178+
arch: x86_64
179+
make_file: "Unix Makefiles"
180+
pv_recorder_platform: "linux"
181+
- device: gpu
182+
machine: pv-windows
183+
platform: windows
184+
arch: amd64
185+
make_file: "MinGW Makefiles"
186+
pv_recorder_platform: "windows-amd64"
187+
- device: gpu
188+
machine: pv-ios
189+
platform: mac
190+
arch: arm64
191+
make_file: "Unix Makefiles"
192+
pv_recorder_platform: "mac-arm64"
173193

174194
steps:
175195
- uses: actions/checkout@v3
@@ -183,4 +203,4 @@ jobs:
183203
run: cmake --build ./build --target koala_demo_file
184204

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

.github/workflows/ios-browserstack.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ jobs:
4242
run: sed -i '.bak' 's:{TESTING_ACCESS_KEY_HERE}:${{secrets.PV_VALID_ACCESS_KEY}}:'
4343
KoalaAppTestUITests/KoalaAppTestUITests.swift
4444

45+
- name: Inject Device
46+
run: sed -i '.bak' 's:{TESTING_DEVICE_HERE}:cpu\:1:'
47+
KoalaAppTestUITests/KoalaAppTestUITests.swift
48+
4549
- name: XCode Build
4650
run: xcrun xcodebuild build-for-testing
4751
-configuration Debug

.github/workflows/ios-perf.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ jobs:
4949
run: sed -i '.bak' 's:{TESTING_ACCESS_KEY_HERE}:${{secrets.PV_VALID_ACCESS_KEY}}:'
5050
PerformanceTest/PerformanceTest.swift
5151

52+
- name: Inject Device
53+
run: sed -i '.bak' 's:{TESTING_DEVICE_HERE}:cpu\:1:'
54+
PerformanceTest/PerformanceTest.swift
55+
5256
- name: Inject Number of Iterations
5357
run: sed -i '.bak' 's:{NUM_TEST_ITERATIONS}:30:'
5458
PerformanceTest/PerformanceTest.swift

.github/workflows/python-demos.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ jobs:
2727

2828
strategy:
2929
matrix:
30-
os: [ubuntu-latest, windows-latest, macos-latest]
31-
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
30+
device: [ cpu:1, cpu ]
31+
os: [ ubuntu-latest, windows-latest, macos-latest ]
32+
python-version: [ '3.9', '3.10', '3.11', '3.12', '3.13', '3.14' ]
3233

3334
steps:
3435
- uses: actions/checkout@v3
@@ -48,6 +49,7 @@ jobs:
4849
run: >
4950
python koala_demo_file.py
5051
--access_key ${{secrets.PV_VALID_ACCESS_KEY}}
52+
--device ${{ matrix.device }}
5153
--input_path ../../resources/audio_samples/test.wav
5254
--output_path ./tmp.wav
5355
@@ -56,7 +58,15 @@ jobs:
5658

5759
strategy:
5860
matrix:
59-
machine: [rpi3-32, rpi3-64, rpi4-32, rpi4-64, rpi5-64, pv-windows-arm64]
61+
device: [ best ]
62+
machine: [ rpi3-32, rpi3-64, rpi4-32, rpi4-64, rpi5-64, pv-windows-arm64 ]
63+
include:
64+
- device: gpu
65+
machine: pv-linux
66+
- device: gpu
67+
machine: pv-windows
68+
- device: gpu
69+
machine: pv-ios
6070

6171
steps:
6272
- uses: actions/checkout@v3
@@ -68,5 +78,6 @@ jobs:
6878
run: >
6979
python3 koala_demo_file.py
7080
--access_key ${{secrets.PV_VALID_ACCESS_KEY}}
81+
--device ${{ matrix.device }}
7182
--input_path ../../resources/audio_samples/test.wav
7283
--output_path ./tmp.wav

.github/workflows/python-perf.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ jobs:
4242
strategy:
4343
fail-fast: false
4444
matrix:
45-
os: [ubuntu-latest, windows-latest, macos-latest]
45+
device: [ cpu:1 ]
46+
os: [ ubuntu-latest, windows-latest, macos-latest ]
4647
include:
4748
- os: ubuntu-latest
4849
proc_performance_threshold_sec: 0.8
@@ -69,6 +70,7 @@ jobs:
6970
run: >
7071
python3 test_koala_perf.py
7172
--access-key ${{secrets.PV_VALID_ACCESS_KEY}}
73+
--device ${{ matrix.device }}
7274
--num-test-iterations 20
7375
--proc-performance-threshold-sec ${{matrix.proc_performance_threshold_sec}}
7476
@@ -78,7 +80,8 @@ jobs:
7880
strategy:
7981
fail-fast: false
8082
matrix:
81-
machine: [rpi3-32, rpi3-64, rpi4-32, rpi4-64, rpi5-64]
83+
device: [ cpu:1 ]
84+
machine: [ rpi3-32, rpi3-64, rpi4-32, rpi4-64, rpi5-64 ]
8285
include:
8386
- machine: rpi3-32
8487
proc_performance_threshold_sec: 2.5
@@ -105,6 +108,7 @@ jobs:
105108
run: >
106109
python3 test_koala_perf.py
107110
--access-key ${{secrets.PV_VALID_ACCESS_KEY}}
111+
--device ${{ matrix.device }}
108112
--num-test-iterations 20
109113
--proc-performance-threshold-sec ${{matrix.proc_performance_threshold_sec}}
110114
@@ -118,10 +122,11 @@ jobs:
118122
strategy:
119123
fail-fast: false
120124
matrix:
121-
machine: [pv-windows-arm64]
125+
device: [ cpu:1 ]
126+
machine: [ pv-windows-arm64 ]
122127
include:
123-
- machine: pv-windows-arm64
124-
proc_performance_threshold_sec: 0.8
128+
- machine: pv-windows-arm64
129+
proc_performance_threshold_sec: 0.8
125130

126131
steps:
127132
- uses: actions/checkout@v3
@@ -133,5 +138,6 @@ jobs:
133138
run: >
134139
python3 test_koala_perf.py
135140
--access-key ${{secrets.PV_VALID_ACCESS_KEY}}
141+
--device ${{ matrix.device }}
136142
--num-test-iterations 20
137-
--proc-performance-threshold-sec ${{matrix.proc_performance_threshold_sec}}
143+
--proc-performance-threshold-sec ${{ matrix.proc_performance_threshold_sec}}

.github/workflows/python.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,9 @@ jobs:
3939

4040
strategy:
4141
matrix:
42-
os: [ubuntu-latest, windows-latest, macos-latest]
43-
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
42+
device: [ cpu, cpu:1 ]
43+
os: [ ubuntu-latest, windows-latest, macos-latest ]
44+
python-version: [ '3.9', '3.10', '3.11', '3.12', '3.13', '3.14' ]
4445

4546
steps:
4647
- uses: actions/checkout@v3
@@ -57,14 +58,22 @@ jobs:
5758
run: pip install -r requirements.txt
5859

5960
- name: Test
60-
run: python test_koala.py --access-key ${{secrets.PV_VALID_ACCESS_KEY}}
61+
run: python test_koala.py --access-key ${{secrets.PV_VALID_ACCESS_KEY}} --device ${{ matrix.device }}
6162

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

6566
strategy:
6667
matrix:
67-
machine: [rpi3-32, rpi3-64, rpi4-32, rpi4-64, rpi5-64, pv-windows-arm64]
68+
device: [ best ]
69+
machine: [ rpi3-32, rpi3-64, rpi4-32, rpi4-64, rpi5-64, pv-windows-arm64 ]
70+
include:
71+
- device: gpu
72+
machine: pv-linux
73+
- device: gpu
74+
machine: pv-windows
75+
- device: gpu
76+
machine: pv-ios
6877

6978
steps:
7079
- uses: actions/checkout@v3
@@ -76,4 +85,4 @@ jobs:
7685
run: pip install -r requirements.txt
7786

7887
- name: Test
79-
run: python3 test_koala.py --access-key ${{secrets.PV_VALID_ACCESS_KEY}}
88+
run: python3 test_koala.py --access-key ${{secrets.PV_VALID_ACCESS_KEY}} --device ${{ matrix.device }}

0 commit comments

Comments
 (0)