opuslib 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -9
- package/package.json +12 -2
package/README.md
CHANGED
|
@@ -1,24 +1,29 @@
|
|
|
1
1
|
# opuslib
|
|
2
2
|
|
|
3
|
-
**
|
|
3
|
+
**Opus 1.6 audio encoding for React Native and Expo**
|
|
4
4
|
|
|
5
5
|
Real-time audio capture and encoding using the latest Opus 1.6 codec, built from source with full native integration for iOS and Android.
|
|
6
6
|
|
|
7
7
|
[](https://opensource.org/licenses/MIT)
|
|
8
8
|
[](https://badge.fury.io/js/opuslib)
|
|
9
9
|
|
|
10
|
+
---
|
|
11
|
+
## Story
|
|
12
|
+
|
|
13
|
+
Created as I had a need for real-time voice communication in a React Native app. Figured it could be useful to share with the community as it's a popular format for moving realtime audio over the internet!
|
|
14
|
+
|
|
10
15
|
---
|
|
11
16
|
|
|
12
17
|
## Features
|
|
13
18
|
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
-
|
|
17
|
-
-
|
|
18
|
-
-
|
|
19
|
-
-
|
|
20
|
-
-
|
|
21
|
-
-
|
|
19
|
+
- **Opus 1.6** - Latest codec version compiled from the [official source](https://opus-codec.org/release/stable/2025/12/15/libopus-1_6.html)
|
|
20
|
+
- **Low Latency** - Real-time encoding with minimal overhead
|
|
21
|
+
- **Native Performance** - Direct C/C++ integration, no JavaScript encoding
|
|
22
|
+
- **High Quality** - 24kbps achieves excellent speech quality
|
|
23
|
+
- **Cross-Platform** - iOS and Android with a consistent API
|
|
24
|
+
- **Zero Dependencies** - Self-contained with vendored Opus source
|
|
25
|
+
- **Configurable** - Bitrate, sample rate, frame size
|
|
26
|
+
- **Event-Based** - Stream encoded audio chunks via events
|
|
22
27
|
|
|
23
28
|
### Why Opus 1.6?
|
|
24
29
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opuslib",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Opuslib wrapper",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -18,8 +18,18 @@
|
|
|
18
18
|
"keywords": [
|
|
19
19
|
"react-native",
|
|
20
20
|
"expo",
|
|
21
|
+
"opus",
|
|
21
22
|
"opuslib",
|
|
22
|
-
"Opuslib"
|
|
23
|
+
"Opuslib",
|
|
24
|
+
"libopus",
|
|
25
|
+
"Libopus",
|
|
26
|
+
"audio",
|
|
27
|
+
"voice",
|
|
28
|
+
"speech",
|
|
29
|
+
"streaming",
|
|
30
|
+
"encoding",
|
|
31
|
+
"opus-codec",
|
|
32
|
+
"Opus Codec"
|
|
23
33
|
],
|
|
24
34
|
"repository": "https://github.com/Scdales/opuslib",
|
|
25
35
|
"bugs": {
|