Skip to content
Merged

V2.0 #125

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

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

- name: Inject Android keystore variables
run: |
echo storePassword="${{secrets.ANDROID_RELEASE_KEYSTORE_PASSWORD}}" >> local.properties
Expand Down Expand Up @@ -103,6 +106,9 @@ jobs:
- name: Inject AccessKey
run: echo pvTestingAccessKey="${{secrets.PV_VALID_ACCESS_KEY}}" >> local.properties

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

- name: Inject Android keystore variables
run: |
echo storePassword="${{secrets.ANDROID_RELEASE_KEYSTORE_PASSWORD}}" >> local.properties
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/android-perf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ jobs:
- name: Inject AccessKey
run: echo pvTestingAccessKey="${{secrets.PV_VALID_ACCESS_KEY}}" >> local.properties

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

- name: Inject Number of Iterations
run: echo numTestIterations="30" >> local.properties

Expand Down
43 changes: 39 additions & 4 deletions .github/workflows/c-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:

strategy:
matrix:
device: [ cpu, cpu:1 ]
os: [ ubuntu-latest, windows-latest, macos-latest ]
include:
- os: ubuntu-latest
Expand Down Expand Up @@ -69,35 +70,69 @@ jobs:
cmake --build ./build --target orca_demo_streaming

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

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

strategy:
matrix:
machine: [ rpi3-32, rpi3-64, rpi4-32, rpi4-64, rpi5-64 ]
make_file: ["Unix Makefiles"]
machine: [ rpi3-32, rpi3-64, rpi4-32, rpi4-64, rpi5-64, pv-linux, pv-ios, pv-windows ]
include:
- machine: rpi3-32
platform: raspberry-pi
arch: cortex-a53
make_file: "Unix Makefiles"
pv_recorder_platform: "raspberry-pi3"
device: best
- machine: rpi3-64
platform: raspberry-pi
arch: cortex-a53-aarch64
make_file: "Unix Makefiles"
pv_recorder_platform: "raspberry-pi3-64"
device: best
- machine: rpi4-32
platform: raspberry-pi
arch: cortex-a72
make_file: "Unix Makefiles"
pv_recorder_platform: "raspberry-pi4"
device: best
- machine: rpi4-64
platform: raspberry-pi
arch: cortex-a72-aarch64
make_file: "Unix Makefiles"
pv_recorder_platform: "raspberry-pi4-64"
device: best
- machine: rpi5-64
platform: raspberry-pi
arch: cortex-a76-aarch64
make_file: "Unix Makefiles"
pv_recorder_platform: "raspberry-pi5-64"
device: best
- machine: pv-windows-arm64
platform: windows
arch: arm64
make_file: "MinGW Makefiles"
pv_recorder_platform: "windows-arm64"
device: best
- machine: pv-linux
platform: linux
arch: x86_64
make_file: "Unix Makefiles"
pv_recorder_platform: "linux"
device: gpu
- machine: pv-ios
platform: mac
arch: arm64
make_file: "Unix Makefiles"
pv_recorder_platform: "mac-arm64"
device: gpu
- machine: pv-windows
platform: windows
arch: amd64
make_file: "MinGW Makefiles"
pv_recorder_platform: "windows-amd64"
device: gpu

steps:
- uses: actions/checkout@v3
Expand All @@ -113,4 +148,4 @@ jobs:
cmake --build ./build --target orca_demo_streaming

- name: Test
run: python3 test/test_orca_c.py ${{secrets.PV_VALID_ACCESS_KEY}} ${{ matrix.platform }} ${{ matrix.arch }}
run: python3 test/test_orca_c.py ${{secrets.PV_VALID_ACCESS_KEY}} ${{ matrix.device }} ${{ matrix.platform }} ${{ matrix.arch }}
13 changes: 13 additions & 0 deletions .github/workflows/dotnet-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:

strategy:
matrix:
device: [cpu, cpu:1]
os: [ ubuntu-latest, windows-latest, macos-latest ]

steps:
Expand Down Expand Up @@ -52,6 +53,7 @@ jobs:
--gender female
--text "Hello, I am Orca!"
--output_path ./tmp.wav
--device ${{ matrix.device }}

- name: Run .NET streaming demo
run: >
Expand All @@ -60,13 +62,22 @@ jobs:
--language en
--gender female
--text_to_stream "Hello, I am Orca!"
--device ${{ matrix.device }}

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

strategy:
matrix:
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 @@ -88,6 +99,7 @@ jobs:
--gender female
--text "Hello, I am Orca!"
--output_path ./tmp.wav
--device ${{ matrix.device }}

- name: Run .NET streaming demo
run: >
Expand All @@ -96,3 +108,4 @@ jobs:
--language en
--gender female
--text_to_stream "Hello, I am Orca!"
--device ${{ matrix.device }}
74 changes: 40 additions & 34 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,48 +39,29 @@ jobs:

strategy:
matrix:
os: [ubuntu-latest, macos-13, macos-latest, windows-latest]
dotnet-version: [2.1.818, 3.0.103, 3.1.426, 5.0.408, 6.0.x, 8.0.x]
os: [ubuntu-latest, macos-latest, macos-15-intel, windows-latest]
device: [cpu, cpu:1]
dotnet-version: [2.1.x, 3.1.x, 6.0.x, 8.0.x, 10.0.x]
include:
- dotnet-version: 2.1.818
binding-framework: netstandard2.0
- dotnet-version: 2.1.x
test-framework: netcoreapp2.1
- dotnet-version: 3.0.103
binding-framework: netcoreapp3.0
test-framework: netcoreapp3.0
- dotnet-version: 3.1.426
binding-framework: netcoreapp3.0
- dotnet-version: 3.1.x
test-framework: netcoreapp3.1
- dotnet-version: 5.0.408
binding-framework: netcoreapp3.0
test-framework: net5.0
- dotnet-version: 6.0.x
binding-framework: net6.0
test-framework: net6.0
- dotnet-version: 8.0.x
binding-framework: net8.0
test-framework: net8.0
- dotnet-version: 10.0.x
test-framework: net10.0
exclude:
- os: ubuntu-latest
dotnet-version: 2.1.818
dotnet-version: 2.1.x
- os: ubuntu-latest
dotnet-version: 3.0.103
- os: ubuntu-latest
dotnet-version: 3.1.426
- os: ubuntu-latest
dotnet-version: 5.0.408
- os: macos-latest
dotnet-version: 2.1.818
- os: macos-latest
dotnet-version: 3.0.103
dotnet-version: 3.1.x
- os: macos-latest
dotnet-version: 3.1.426
dotnet-version: 2.1.x
- os: macos-latest
dotnet-version: 5.0.408
- os: macos-13
dotnet-version: 6.0.x
- os: macos-13
dotnet-version: 8.0.x
dotnet-version: 3.1.x

steps:
- uses: actions/checkout@v3
Expand All @@ -97,10 +78,24 @@ jobs:
dotnet-version: 8.0.x

- name: Build binding
run: dotnet build Orca/Orca.csproj --framework ${{ matrix.binding-framework }}
run: dotnet build Orca/Orca.csproj

- name: Set test framework version (linux)
if: ${{ matrix.os == 'ubuntu-latest' }}
run: sed -i 's/net6.0/${{matrix.test-framework}}/g' OrcaTest/OrcaTest.csproj

- name: Set test framework version (macos)
if: ${{ matrix.os == 'macos-latest' || matrix.os == 'macos-15-intel' }}
run: sed -i '.bak' 's/net6.0/${{matrix.test-framework}}/g' OrcaTest/OrcaTest.csproj

- name: Set test framework version (windows)
if: ${{ matrix.os == 'windows-latest' }}
run: (Get-Content -Path "OrcaTest/OrcaTest.csproj") -replace "net6.0", "${{matrix.test-framework}}" | Set-Content -Path "OrcaTest/OrcaTest.csproj"

- name: Test
run: dotnet test --framework ${{ matrix.test-framework }} -v n
run: dotnet test -v n
env:
DEVICE: ${{ matrix.device }}

build-self-hosted:
runs-on: ${{ matrix.machine }}
Expand All @@ -110,12 +105,23 @@ jobs:
strategy:
matrix:
machine: [rpi3-32, rpi3-64, rpi4-32, rpi4-64, rpi5-64, pv-windows-arm64]
device: [best]
include:
- device: gpu
machine: pv-linux
- device: gpu
machine: pv-windows
- device: gpu
machine: pv-ios

steps:
- uses: actions/checkout@v3

- name: Build binding
run: dotnet build Orca/Orca.csproj --framework net8.0
run: dotnet build Orca/Orca.csproj

- name: Test
run: dotnet test --framework net8.0 -v n
run: dotnet test -v n
env:
DEVICE: ${{ matrix.device }}
DOTNET_ROLL_FORWARD: LatestMajor
4 changes: 4 additions & 0 deletions .github/workflows/ios-browserstack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ jobs:
run: sed -i '.bak' 's:{TESTING_ACCESS_KEY_HERE}:${{secrets.PV_VALID_ACCESS_KEY}}:'
OrcaAppTestUITests/BaseTest.swift

- name: Inject Device
run: sed -i '.bak' 's:{TESTING_DEVICE_HERE}:best:'
OrcaAppTestUITests/BaseTest.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 @@ -52,6 +52,10 @@ jobs:
run: sed -i '.bak' 's:{TESTING_ACCESS_KEY_HERE}:${{secrets.PV_VALID_ACCESS_KEY}}:'
OrcaAppTestUITests/BaseTest.swift

- name: Inject Device
run: sed -i '.bak' 's:{TESTING_DEVICE_HERE}:best:'
OrcaAppTestUITests/BaseTest.swift

- name: Inject Number of Iterations
run: sed -i '.bak' 's:{NUM_TEST_ITERATIONS}:30:'
PerformanceTest/PerformanceTest.swift
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/nodejs-codestyle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ jobs:
with:
node-version: lts/*

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

- name: Run Binding Linter
run: yarn && yarn lint
working-directory: binding/nodejs
19 changes: 14 additions & 5 deletions .github/workflows/nodejs-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ jobs:
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
node-version: [18.x, 20.x, 22.x]
device: [cpu:1, cpu]
node-version: [18.x, 20.x, 22.x, 24.x]
include:
- os: ubuntu-latest
install-dep: sudo apt install libasound2-dev -y
Expand All @@ -49,17 +50,25 @@ jobs:
yarn install

- name: Test streaming
run: yarn streaming -a ${{secrets.PV_VALID_ACCESS_KEY}} -m ../../lib/common/orca_params_en_female.pv -t "Hello, I am Orca!"
run: yarn streaming -a ${{secrets.PV_VALID_ACCESS_KEY}} -m ../../lib/common/orca_params_en_female.pv -y ${{ matrix.device }} -t "Hello, I am Orca!"

- name: Test file
run: yarn file -a ${{secrets.PV_VALID_ACCESS_KEY}} -m ../../lib/common/orca_params_en_female.pv -t "Hello, I am Orca!" -o "./tmp.wav"
run: yarn file -a ${{secrets.PV_VALID_ACCESS_KEY}} -m ../../lib/common/orca_params_en_female.pv -y ${{ matrix.device }} -t "Hello, I am Orca!" -o "./tmp.wav"

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

strategy:
matrix:
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,7 +77,7 @@ jobs:
run: yarn install

- name: Test streaming
run: yarn streaming -a ${{secrets.PV_VALID_ACCESS_KEY}} -m ../../lib/common/orca_params_en_female.pv -t "Hello, I am Orca!"
run: yarn streaming -a ${{secrets.PV_VALID_ACCESS_KEY}} -m ../../lib/common/orca_params_en_female.pv -y ${{ matrix.device }} -t "Hello, I am Orca!"

- name: Test file
run: yarn file -a ${{secrets.PV_VALID_ACCESS_KEY}} -m ../../lib/common/orca_params_en_female.pv -t "Hello, I am Orca!" -o "./tmp.wav"
run: yarn file -a ${{secrets.PV_VALID_ACCESS_KEY}} -m ../../lib/common/orca_params_en_female.pv -y ${{ matrix.device }} -t "Hello, I am Orca!" -o "./tmp.wav"
6 changes: 3 additions & 3 deletions .github/workflows/nodejs-perf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
run: yarn install

- name: Test
run: yarn test test/perf.test.ts --access_key=${{secrets.PV_VALID_ACCESS_KEY}} --num_test_iterations=50 --proc_performance_threshold_sec=${{matrix.proc_performance_threshold_sec}}
run: yarn test test/perf.test.ts --access_key=${{secrets.PV_VALID_ACCESS_KEY}} --device=cpu:1 --num_test_iterations=50 --proc_performance_threshold_sec=${{matrix.proc_performance_threshold_sec}}

perf-self-hosted:
runs-on: ${{ matrix.machine }}
Expand Down Expand Up @@ -82,7 +82,7 @@ jobs:
run: bash machine-state.sh

- name: Test
run: yarn test test/perf.test.ts --access_key=${{secrets.PV_VALID_ACCESS_KEY}} --num_test_iterations=20 --proc_performance_threshold_sec=${{matrix.proc_performance_threshold_sec}}
run: yarn test test/perf.test.ts --access_key=${{secrets.PV_VALID_ACCESS_KEY}} --device=cpu:1 --num_test_iterations=20 --proc_performance_threshold_sec=${{matrix.proc_performance_threshold_sec}}

- name: Machine state after
working-directory: resources/.scripts
Expand All @@ -106,4 +106,4 @@ jobs:
run: yarn install

- name: Test
run: yarn test test/perf.test.ts --access_key=${{secrets.PV_VALID_ACCESS_KEY}} --num_test_iterations=50 --proc_performance_threshold_sec=${{matrix.proc_performance_threshold_sec}}
run: yarn test test/perf.test.ts --access_key=${{secrets.PV_VALID_ACCESS_KEY}} --device=cpu:1 --num_test_iterations=50 --proc_performance_threshold_sec=${{matrix.proc_performance_threshold_sec}}
Loading
Loading