Skip to content

Commit

Permalink
updated pvspeaker
Browse files Browse the repository at this point in the history
  • Loading branch information
matt200-ok committed Jan 14, 2025
1 parent 198505c commit 8d0ad0b
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 10 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/nodejs-perf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,23 @@ jobs:
- name: Machine state after
working-directory: resources/.scripts
run: bash machine-state.sh

perf-windows-arm64:
runs-on: ${{ matrix.machine }}

strategy:
fail-fast: false
matrix:
machine: [ pv-windows-arm64 ]
include:
- machine: pv-windows-arm64
proc_performance_threshold_sec: 0.25

steps:
- uses: actions/checkout@v3

- name: Install dependencies
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}}
23 changes: 23 additions & 0 deletions .github/workflows/python-perf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,26 @@ jobs:
- name: Machine state after
working-directory: resources/.scripts
run: bash machine-state.sh

perf-windows-arm64:
runs-on: ${{ matrix.machine }}

strategy:
fail-fast: false
matrix:
machine: [ pv-windows-arm64 ]
- machine: pv-windows-arm64
proc_performance_threshold_rtf: 3.0

steps:
- uses: actions/checkout@v3

- name: Install dependencies
run: pip install -r requirements.txt

- name: Test
run: >
python3 test_orca_perf.py
--access-key ${{secrets.PV_VALID_ACCESS_KEY}}
--num-test-iterations 10
--proc-performance-threshold-rtf ${{matrix.proc_performance_threshold_rtf}}
2 changes: 1 addition & 1 deletion demo/nodejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"license": "Apache-2.0",
"dependencies": {
"@picovoice/orca-node": "../../binding/nodejs",
"@picovoice/pvspeaker-node": "^1.0.1",
"@picovoice/pvspeaker-node": "^1.0.2",
"commander": "^6.1.0",
"prettier": "^2.6.2",
"readline": "^1.3.0",
Expand Down
14 changes: 6 additions & 8 deletions demo/nodejs/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@
# yarn lockfile v1


"@picovoice/orca-node@=1.0.0":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@picovoice/orca-node/-/orca-node-1.0.0.tgz#812728c3183a914eff6b3189dfa958ef4d44f2f7"
integrity sha512-YDTqJ5KsueBC4Nj0Zo287VF+/y7SRjXbOyHy8h66joJYPF0QNsz8oDCzbQO7hzymNbkFXd0crMPK+gQElvd83w==

"@picovoice/pvspeaker-node@^1.0.1":
"@picovoice/orca-node@../../binding/nodejs":
version "1.0.1"
resolved "https://registry.yarnpkg.com/@picovoice/pvspeaker-node/-/pvspeaker-node-1.0.1.tgz#0524c9509a88eb50f3975cbe3c5012058a54619b"
integrity sha512-4/QBYcp3GZ+2ewq2QuyCn7pnqXdfwj90qbINecKtBsCXKLtl/XHLmXOqgfoy+RBSXmA5wjV/LuOHvqVibrxAuQ==

"@picovoice/pvspeaker-node@^1.0.2":
version "1.0.2"
resolved "https://registry.yarnpkg.com/@picovoice/pvspeaker-node/-/pvspeaker-node-1.0.2.tgz#5603864038ba7f2a8ce7f82507f68f4e3f1568b8"
integrity sha512-x7MTp6pdon7Dce1lp0yiM8wQcKkYt9jyLqiK2hjUuq85vGlILBpUfKCspuEUVZnyG/5tMic6VsGfXgET7n+O7A==

commander@^6.1.0:
version "6.2.1"
Expand Down
2 changes: 1 addition & 1 deletion demo/python/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
numpy>=1.24.0
../../binding/python/dist/pvorca-1.0.1-py3-none-any.whl
pvspeaker==1.0.3
pvspeaker==1.0.4
tiktoken==0.6.0

0 comments on commit 8d0ad0b

Please sign in to comment.