Skip to content

Commit

Permalink
update versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ricky0123 committed Dec 21, 2024
1 parent 3fc4ef1 commit f71b81d
Show file tree
Hide file tree
Showing 8 changed files with 50 additions and 25 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ To use the VAD via a script tag in the browser, include the following script tag

```html
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/ort.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@ricky0123/[email protected].19/dist/bundle.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@ricky0123/[email protected].22/dist/bundle.min.js"></script>
<script>
async function main() {
const myvad = await vad.MicVAD.new({
Expand Down
2 changes: 1 addition & 1 deletion docs/user-guide/browser.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ The `@ricky0123/vad-web` package aims to provide an accurate, user-friendly voic
The VAD can be used via script tags as follows:
```html linenums="1"
<script src="https://cdn.jsdelivr.net/npm/onnxruntime-web/dist/ort.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@ricky0123/[email protected].7/dist/bundle.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@ricky0123/[email protected].22/dist/bundle.min.js"></script>
<script>
async function main() {
const myvad = await vad.MicVAD.new({
Expand Down
2 changes: 1 addition & 1 deletion examples/script-tags/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css"
/>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/ort.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@ricky0123/[email protected].21/dist/bundle.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@ricky0123/[email protected].22/dist/bundle.min.js"></script>
<script type="module">
import { interpolateInferno } from "https://cdn.skypack.dev/d3-scale-chromatic@3"

Expand Down
49 changes: 37 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@
"react"
],
"homepage": "https://github.com/ricky0123/vad",
"version": "0.0.27",
"version": "0.0.28",
"license": "ISC",
"main": "dist/index.js",
"devDependencies": {
"@types/react": "^18.0.28"
"@types/react": "18.0.28"
},
"dependencies": {
"onnxruntime-web": "^1.14.0",
"@ricky0123/vad-web": "^0.0.21"
"onnxruntime-web": "1.14.0",
"@ricky0123/vad-web": "0.0.22"
},
"peerDependencies": {
"react": "^18",
"react-dom": "^18"
"react": "18",
"react-dom": "18"
},
"scripts": {
"build": "tsc",
Expand Down
2 changes: 1 addition & 1 deletion packages/web/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Prompt your user for microphone permissions and run callbacks on segments of aud
Quick start:
```html
<script src="https://cdn.jsdelivr.net/npm/onnxruntime-web/dist/ort.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@ricky0123/[email protected].7/dist/bundle.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@ricky0123/[email protected].22/dist/bundle.min.js"></script>
<script>
async function main() {
const myvad = await vad.MicVAD.new({
Expand Down
4 changes: 2 additions & 2 deletions packages/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"offline-speech-recognition"
],
"homepage": "https://github.com/ricky0123/vad",
"version": "0.0.21",
"version": "0.0.22",
"license": "ISC",
"main": "dist/index.js",
"unpkg": "dist/bundle.min.js",
Expand All @@ -25,7 +25,7 @@
"webpack-cli": "^5.1.4"
},
"dependencies": {
"onnxruntime-web": "^1.14.0"
"onnxruntime-web": "1.14.0"
},
"scripts": {
"build": "./scripts/build.sh",
Expand Down
2 changes: 1 addition & 1 deletion packages/web/src/real-time-vad.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export const getDefaultRealTimeVADOptions: (
log.debug("Detected speech end")
},
baseAssetPath:
"https://cdn.jsdelivr.net/npm/@ricky0123/[email protected].20/dist/",
"https://cdn.jsdelivr.net/npm/@ricky0123/[email protected].22/dist/",
onnxWASMBasePath:
"https://cdn.jsdelivr.net/npm/[email protected]/dist/",
stream: undefined,
Expand Down

0 comments on commit f71b81d

Please sign in to comment.