Skip to content

Commit

Permalink
v2.0 web release
Browse files Browse the repository at this point in the history
  • Loading branch information
ksyeo1010 committed Oct 25, 2023
1 parent 657850f commit 0108041
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/web-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

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

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

Expand Down
7 changes: 3 additions & 4 deletions demo/web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
<script type="application/javascript">
function writeMessage(message) {
console.log(message);
let p = document.createElement("p");
let text = document.createTextNode(message);
p.appendChild(text);
document.body.appendChild(p);
document.getElementById("status").innerHTML = message;
}

function writeVoiceProbability(message, value) {
Expand Down Expand Up @@ -75,6 +72,8 @@ <h1>Cobra Web Demo - worker</h1>
/>
<hr />

<div id="status" style="white-space: pre;"></div>

<div id="voiceProbability" class="voiceProbability">
<h2 id="voiceProbabilityText">
</h2>
Expand Down
2 changes: 1 addition & 1 deletion demo/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"author": "Picovoice Inc",
"license": "Apache-2.0",
"dependencies": {
"@picovoice/cobra-web": "file:../../binding/web",
"@picovoice/cobra-web": "~2.0.0",
"@picovoice/web-voice-processor": "~4.0.8"
},
"devDependencies": {
Expand Down
4 changes: 3 additions & 1 deletion demo/web/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
# yarn lockfile v1


"@picovoice/cobra-web@file:../../binding/web":
"@picovoice/cobra-web@~2.0.0":
version "2.0.0"
resolved "https://registry.yarnpkg.com/@picovoice/cobra-web/-/cobra-web-2.0.0.tgz#fae10248546072faba3e784288135b07e576b0cd"
integrity sha512-twgDJKkty+NXUG9/1feM15TLTvyCTjiDLwoncWFeHqcJ02peIa84T27/5atzpYkXKKA3sp+/B1a+6EKDq7P6/g==
dependencies:
"@picovoice/web-utils" "=1.3.1"

Expand Down

0 comments on commit 0108041

Please sign in to comment.