Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v3.0 web UI #695

Merged
merged 4 commits into from
Oct 24, 2023
Merged
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
16 changes: 16 additions & 0 deletions .github/workflows/angular-codestyle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,22 @@ jobs:

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

- name: Build Local Porcupine Web SDK
run: yarn && yarn copywasm && yarn copyppn && yarn build
working-directory: resources/porcupine/binding/web

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

- name: Build Local SDK
run: yarn && yarn build
working-directory: sdk/web

- name: Build Local Angular SDK
run: yarn && yarn build
working-directory: sdk/angular

- name: Run SDK Linter
run: yarn && yarn lint
Expand Down
18 changes: 17 additions & 1 deletion .github/workflows/angular-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:

strategy:
matrix:
node-version: [14.x, 16.x, 18.x, 20.x]
node-version: [16.x, 18.x, 20.x]

steps:
- uses: actions/checkout@v3
Expand All @@ -39,6 +39,22 @@ jobs:

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

- name: Build Local Porcupine Web SDK
run: yarn && yarn copywasm && yarn copyppn && yarn build
working-directory: resources/porcupine/binding/web

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

- name: Build Local SDK
run: yarn && yarn build
working-directory: sdk/web

- name: Build Local Angular SDK
run: yarn && yarn build
working-directory: sdk/angular

- name: Install dependencies
run: yarn install
Expand Down
14 changes: 13 additions & 1 deletion .github/workflows/angular.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

strategy:
matrix:
node-version: [14.x, 16.x, 18.x, 20.x]
node-version: [16.x, 18.x, 20.x]

steps:
- uses: actions/checkout@v3
Expand All @@ -43,6 +43,18 @@ jobs:

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

- name: Build Local Porcupine Web SDK
run: yarn && yarn copywasm && yarn copyppn && yarn build
working-directory: resources/porcupine/binding/web

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

- name: Build Local SDK
run: yarn && yarn build
working-directory: sdk/web

- name: Install dependencies
run: yarn install
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/react-codestyle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,22 @@ jobs:

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

- name: Build Local Porcupine Web SDK
run: yarn && yarn copywasm && yarn copyppn && yarn build
working-directory: resources/porcupine/binding/web

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

- name: Build Local SDK
run: yarn && yarn build
working-directory: sdk/web

- name: Build Local React SDK
run: yarn && yarn build
working-directory: sdk/react

- name: Run SDK Linter
run: yarn && yarn lint
Expand Down
18 changes: 17 additions & 1 deletion .github/workflows/react-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:

strategy:
matrix:
node-version: [14.x, 16.x, 18.x, 20.x]
node-version: [16.x, 18.x, 20.x]

steps:
- uses: actions/checkout@v3
Expand All @@ -39,6 +39,22 @@ jobs:

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

- name: Build Local Porcupine Web SDK
run: yarn && yarn copywasm && yarn copyppn && yarn build
working-directory: resources/porcupine/binding/web

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

- name: Build Local SDK
run: yarn && yarn build
working-directory: sdk/web

- name: Build Local React SDK
run: yarn && yarn build
working-directory: sdk/react

- name: Install dependencies
run: yarn install
Expand Down
14 changes: 13 additions & 1 deletion .github/workflows/react.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

strategy:
matrix:
node-version: [14.x, 16.x, 18.x, 20.x]
node-version: [16.x, 18.x, 20.x]

steps:
- uses: actions/checkout@v3
Expand All @@ -43,6 +43,18 @@ jobs:

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

- name: Build Local Porcupine Web SDK
run: yarn && yarn copywasm && yarn copyppn && yarn build
working-directory: resources/porcupine/binding/web

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

- name: Build Local SDK
run: yarn && yarn build
working-directory: sdk/web

- name: Install dependencies
run: yarn install
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/vue-codestyle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,22 @@ jobs:

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

- name: Build Local Porcupine Web SDK
run: yarn && yarn copywasm && yarn copyppn && yarn build
working-directory: resources/porcupine/binding/web

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

- name: Build Local SDK
run: yarn && yarn build
working-directory: sdk/web

- name: Build Local Vue SDK
run: yarn && yarn build
working-directory: sdk/vue

- name: Run SDK Linter
run: yarn && yarn lint
Expand Down
18 changes: 17 additions & 1 deletion .github/workflows/vue-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:

strategy:
matrix:
node-version: [14.x, 16.x, 18.x, 20.x]
node-version: [16.x, 18.x, 20.x]

steps:
- uses: actions/checkout@v3
Expand All @@ -39,6 +39,22 @@ jobs:

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

- name: Build Local Porcupine Web SDK
run: yarn && yarn copywasm && yarn copyppn && yarn build
working-directory: resources/porcupine/binding/web

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

- name: Build Local SDK
run: yarn && yarn build
working-directory: sdk/web

- name: Build Local Vue SDK
run: yarn && yarn build
working-directory: sdk/vue

- name: Install dependencies
run: yarn install
Expand Down
14 changes: 13 additions & 1 deletion .github/workflows/vue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

strategy:
matrix:
node-version: [14.x, 16.x, 18.x, 20.x]
node-version: [16.x, 18.x, 20.x]

steps:
- uses: actions/checkout@v3
Expand All @@ -43,6 +43,18 @@ jobs:

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

- name: Build Local Porcupine Web SDK
run: yarn && yarn copywasm && yarn copyppn && yarn build
working-directory: resources/porcupine/binding/web

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

- name: Build Local SDK
run: yarn && yarn build
working-directory: sdk/web

- name: Install dependencies
run: yarn install
Expand Down
4 changes: 2 additions & 2 deletions demo/angular/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "picovoice-angular-demo",
"version": "2.2.0",
"version": "3.0.0",
"scripts": {
"ng": "ng",
"start": "node scripts/run_demo.js serve",
Expand All @@ -18,7 +18,7 @@
"@angular/platform-browser": "^15.0.3",
"@angular/platform-browser-dynamic": "^15.0.3",
"@angular/router": "^15.0.3",
"@picovoice/picovoice-angular": "~2.2.1",
"@picovoice/picovoice-angular": "../../sdk/angular",
"@picovoice/web-voice-processor": "~4.0.8",
"rxjs": "~7.5.0",
"tslib": "^2.3.0",
Expand Down
2 changes: 1 addition & 1 deletion demo/angular/src/app/voice_widget.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ <h3>
<h3>Picovoice Loaded: {{ isLoaded }}</h3>
<h3>Listening: {{ isListening }}</h3>
<h3>Error: {{ error !== null }}</h3>
<p *ngIf="error !== null" class="error-message">{{ error.toString() }}</p>
<p *ngIf="error !== null" class="error-message">{{ error.message }}</p>

<br />
<button (click)="start()" [disabled]="error || !isLoaded || isListening">Start</button>
Expand Down
4 changes: 3 additions & 1 deletion demo/angular/src/app/voice_widget.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
border-left: 5px solid red;
font-family: monospace;
font-weight: bold;
font-size: 1.5rem;
font-size: 1.2rem;
white-space: pre;
overflow-wrap: break-word;
}

overflow: hidden;
Expand Down
Loading
Loading