Skip to content

Commit 7ca87ae

Browse files
YxAgorasmilexin
authored andcommitted
Add Web wasm+js support
Update readme
1 parent f195ae3 commit 7ca87ae

File tree

1 file changed

+34
-2
lines changed

1 file changed

+34
-2
lines changed

README.md

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212

1313
<br>
1414

15+
*Latest News* 🔥
16+
- [2025/06] We are excited to announce the release of **WASM+JS** for Web WASM Support.
17+
<br>
1518

1619
## Table of Contents
1720

@@ -28,6 +31,8 @@
2831
- [Quick Start](#quick-start)
2932
- [Python Usage](#python-usage)
3033
- [Linux](#1-linux)
34+
- [JS Usage](#js-usage)
35+
- [Web](#1-web)
3136
- [C Usage](#c-usage)
3237
- [Linux](#1-linux-1)
3338
- [Windows](#2-windows)
@@ -155,6 +160,12 @@ We evaluated the RTF (Real-Time Factor) across five distinct platforms, each equ
155160
<td align="center"> 0.0160 </td>
156161
<td align="center"> 731KB </td>
157162
</tr>
163+
<tr>
164+
<th align="center"> Web </th>
165+
<td> macOS(M1) </td>
166+
<td align="center"> 0.010 </td>
167+
<td align="center"> 277KB </td>
168+
</tr>
158169
<tr>
159170
<th align="center" rowspan="2"> Android </th>
160171
<td> Galaxy J6+ (32bit, 425) </td>
@@ -179,7 +190,7 @@ We evaluated the RTF (Real-Time Factor) across five distinct platforms, each equ
179190
<br>
180191

181192
### **4. Multiple programming languages and platforms:**
182-
TEN VAD provides cross-platform C compatibility across five operating systems (Linux x64, Windows, macOS, Android, iOS), with Python bindings optimized for Linux x64.
193+
TEN VAD provides cross-platform C compatibility across five operating systems (Linux x64, Windows, macOS, Android, iOS), with Python bindings optimized for Linux x64, with wasm for Web.
183194
<br>
184195
<br>
185196

@@ -211,7 +222,7 @@ The project supports five major platforms with dynamic library linking.
211222
<td align="center"> libten_vad.so </td>
212223
<td align="center"> x64 </td>
213224
<td align="center"> Python, C </td>
214-
<td rowspan="5">ten_vad.h <br> ten_vad.py</td>
225+
<td rowspan="5">ten_vad.h <br> ten_vad.py <br> ten_vad.js</td>
215226
<td> </td>
216227
</tr>
217228
<tr>
@@ -228,6 +239,13 @@ The project supports five major platforms with dynamic library linking.
228239
<td align="center"> C </td>
229240
<td> </td>
230241
</tr>
242+
<tr>
243+
<th align="center"> Web </th>
244+
<td align="center"> ten_vad.wasm </td>
245+
<td align="center"> / </td>
246+
<td align="center"> JS </td>
247+
<td> </td>
248+
</tr>
231249
<tr>
232250
<th align="center"> Android </th>
233251
<td align="center"> libten_vad.so </td>
@@ -316,6 +334,20 @@ from ten_vad import TenVad
316334
```
317335
<br>
318336

337+
### **JS Usage**
338+
339+
#### **1. Web**
340+
##### **Requirements**
341+
- Node.js (macOS v14.18.2, Linux v16.20.2 verified)
342+
- Terminal
343+
344+
##### **Usage**
345+
```
346+
1) cd ./examples
347+
2) node test_node.js s0724-s0730.wav out.txt
348+
```
349+
<br>
350+
319351
### **C Usage**
320352
#### **Build Scripts**
321353
Located in examples/ directory:

0 commit comments

Comments
 (0)