Skip to content

Commit d0f364b

Browse files
authored
v0.2 (#39)
1 parent a442aa0 commit d0f364b

File tree

92 files changed

+3265
-1554
lines changed

Some content is hidden

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

92 files changed

+3265
-1554
lines changed

.github/workflows/ios-demos.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: iOS Demos
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [ main ]
7+
paths:
8+
- 'demo/ios/EagleDemo/**'
9+
- '.github/workflows/ios-demos.yml'
10+
pull_request:
11+
branches: [ main, 'v[0-9]+.[0-9]+' ]
12+
paths:
13+
- 'demo/ios/EagleDemo/**'
14+
- '.github/workflows/ios-demos.yml'
15+
16+
defaults:
17+
run:
18+
working-directory: demo/ios/EagleDemo
19+
20+
jobs:
21+
build:
22+
runs-on: macos-latest
23+
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v3
27+
28+
- name: Set up Node.js LTS
29+
uses: actions/setup-node@v3
30+
with:
31+
node-version: lts/*
32+
33+
- name: Install Cocoapods
34+
run: gem install cocoapods
35+
36+
- name: Install AppCenter CLI
37+
run: npm install -g appcenter-cli
38+
39+
- name: Make build dir
40+
run: mkdir ddp
41+
42+
- name: Run Cocoapods
43+
run: pod install
44+
45+
- name: Build
46+
run: xcrun xcodebuild build
47+
-configuration Debug
48+
-workspace EagleDemo.xcworkspace
49+
-sdk iphoneos
50+
-scheme EagleDemo
51+
-derivedDataPath ddp
52+
CODE_SIGNING_ALLOWED=NO

.github/workflows/python-codestyle.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ name: Python Codestyle
33
on:
44
workflow_dispatch:
55
push:
6-
branches: [main]
6+
branches: [ main ]
77
paths:
88
- '**/*.py'
99
pull_request:
10-
branches: [main, 'v[0-9]+.[0-9]+']
10+
branches: [ main, 'v[0-9]+.[0-9]+' ]
1111
paths:
1212
- '**/*.py'
1313

.github/workflows/python-demos.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ name: Python Demos
33
on:
44
workflow_dispatch:
55
push:
6-
branches: [main]
6+
branches: [ main ]
77
paths:
88
- '.github/workflows/python-demos.yml'
99
- 'demo/python/**'
1010
- '!demo/python/README.md'
1111
- 'resources/audio_samples/**'
1212
pull_request:
13-
branches: [main, 'v[0-9]+.[0-9]+']
13+
branches: [ main, 'v[0-9]+.[0-9]+' ]
1414
paths:
1515
- '.github/workflows/python-demos.yml'
1616
- 'demo/python/**'
@@ -72,7 +72,7 @@ jobs:
7272
run: python3 -m pip install --upgrade pip
7373

7474
- name: Install dependencies
75-
run: pip install -r requirements.txt
75+
run: pip3 install -r requirements.txt
7676

7777
- name: Test enroll
7878
run: >

.github/workflows/python-perf.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Python Performance
33
on:
44
workflow_dispatch:
55
push:
6-
branches: [main]
6+
branches: [ main ]
77
paths:
88
- '.github/workflows/python-perf.yml'
99
- 'binding/python/__init__.py'
@@ -18,7 +18,7 @@ on:
1818
- 'lib/windows/**'
1919
- 'resources/audio_samples/*.wav'
2020
pull_request:
21-
branches: [main, 'v[0-9]+.[0-9]+']
21+
branches: [ main, 'v[0-9]+.[0-9]+' ]
2222
paths:
2323
- '.github/workflows/python-perf.yml'
2424
- 'binding/python/__init__.py'
@@ -112,12 +112,8 @@ jobs:
112112
- name: Pre-build dependencies
113113
run: python3 -m pip install --upgrade pip
114114

115-
- name: Build dependencies
116-
run: |
117-
pip install wheel && python3 setup.py sdist bdist_wheel && pip install pip install -U dist/*.whl
118-
119115
- name: Install dependencies
120-
run: pip install -r requirements.txt
116+
run: pip3 install -r requirements.txt
121117

122118
- name: Test
123119
run: >

.github/workflows/python.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Python
33
on:
44
workflow_dispatch:
55
push:
6-
branches: [main]
6+
branches: [ main ]
77
paths:
88
- '.github/workflows/python.yml'
99
- 'binding/python/**'
@@ -16,7 +16,7 @@ on:
1616
- 'lib/windows/**'
1717
- 'resources/audio_samples/*.wav'
1818
pull_request:
19-
branches: [main, 'v[0-9]+.[0-9]+']
19+
branches: [ main, 'v[0-9]+.[0-9]+' ]
2020
paths:
2121
- '.github/workflows/python.yml'
2222
- 'binding/python/**'

.github/workflows/web-demos.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
strategy:
2727
matrix:
2828
os: [ubuntu-latest, windows-latest, macos-latest]
29-
node-version: [16.x, 18.x]
29+
node-version: [16.x, 18.x, 20.x]
3030

3131
steps:
3232
- uses: actions/checkout@v3
@@ -36,6 +36,10 @@ jobs:
3636
with:
3737
node-version: ${{ matrix.node-version }}
3838

39+
- name: Build Web SDK
40+
run: yarn && yarn copywasm && yarn build
41+
working-directory: binding/web
42+
3943
- name: Pre-build dependencies
4044
run: npm install yarn
4145

.github/workflows/web.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131

3232
strategy:
3333
matrix:
34-
node-version: [lts/*]
34+
node-version: [16.x, 18.x, 20.x]
3535

3636
steps:
3737
- uses: actions/checkout@v3

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,9 +611,17 @@ while (true) {
611611

612612
## Releases
613613

614+
### v0.2.0 - November 24th, 2023
615+
616+
- Improvements to error reporting
617+
- Upgrades to authorization and authentication system
618+
- Various bug fixes and improvements
619+
- Web min support bumped to Node 16
620+
- iOS support bumped to iOS 13
621+
614622
### v0.1.0 - May 29, 2023
615623

616-
- Beta release.
624+
- Beta release
617625

618626
## FAQ
619627

binding/android/Eagle/eagle/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
22

33
ext {
44
PUBLISH_GROUP_ID = 'ai.picovoice'
5-
PUBLISH_VERSION = '0.1.1'
5+
PUBLISH_VERSION = '0.2.0'
66
PUBLISH_ARTIFACT_ID = 'eagle-android'
77
}
88

@@ -34,12 +34,12 @@ dependencies {
3434
}
3535

3636
task copyLibs(type: Copy) {
37-
from("${rootDir}/../../lib/android")
37+
from("${rootDir}/../../../lib/android")
3838
into("${rootDir}/eagle/src/main/jniLibs")
3939
}
4040

4141
task copyParams(type: Copy) {
42-
from("${rootDir}/../../lib/common")
42+
from("${rootDir}/../../../lib/common")
4343
include('eagle_params.pv')
4444
into("${rootDir}/eagle/src/main/res/raw")
4545
}

binding/android/Eagle/eagle/src/main/java/ai/picovoice/eagle/Eagle.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
public class Eagle {
2929

3030
private static String defaultModelPath;
31+
private static String _sdk = "android";
3132

3233
static {
3334
System.loadLibrary("pv_eagle");
@@ -36,6 +37,10 @@ public class Eagle {
3637
private long handle;
3738
private int numSpeakers;
3839

40+
public static void setSdk(String sdk) {
41+
Eagle._sdk = sdk;
42+
}
43+
3944
/**
4045
* Constructor.
4146
*
@@ -54,6 +59,7 @@ private Eagle(
5459
profileHandles[i] = speakerProfiles[i].profileNative.handle;
5560
}
5661

62+
EagleNative.setSdk(Eagle._sdk);
5763
handle = EagleNative.init(
5864
accessKey,
5965
modelPath,

0 commit comments

Comments
 (0)