react-native-voice-bot-sdk 0.1.0 → 0.1.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.1
4
+
5
+ Documentation only, no code changes.
6
+
7
+ - Links to the integration guide, protocol and release notes now work on the npm page.
8
+ - Removed developer-only build instructions from the README (they referred to files that are not in
9
+ the package).
10
+
3
11
  ## 0.1.0 (first release)
4
12
 
5
13
  The first public release of `react-native-voice-bot-sdk`: a drop-in voice assistant widget for
package/README.md CHANGED
@@ -11,8 +11,8 @@ talk; the SDK streams their voice to your voice server, plays the spoken answer,
11
11
  - ✅ Keeps listening in the background (Android), reconnects by itself, handles phone calls
12
12
  - ✅ Every request and response in the console, TypeScript-first
13
13
 
14
- > Integration guide: [docs/INTEGRATION.md](docs/INTEGRATION.md) · Wire protocol for the server team:
15
- > [docs/PROTOCOL.md](docs/PROTOCOL.md) · Release notes: [CHANGELOG.md](CHANGELOG.md)
14
+ > Integration guide: [docs/INTEGRATION.md](https://unpkg.com/react-native-voice-bot-sdk/docs/INTEGRATION.md) · Wire protocol for the server team:
15
+ > [docs/PROTOCOL.md](https://unpkg.com/react-native-voice-bot-sdk/docs/PROTOCOL.md) · Release notes: [CHANGELOG.md](https://unpkg.com/react-native-voice-bot-sdk/CHANGELOG.md)
16
16
 
17
17
  ## Requirements
18
18
 
@@ -432,33 +432,7 @@ Both directions use raw PCM, signed 16-bit little-endian, mono, no header. The m
432
432
  Reply audio is played at the reply's `sample_rate` (e.g. `24000`), or 16 kHz if the server doesn't
433
433
  send one. The mic is sent as
434
434
  640-byte (20 ms) binary frames, in order, with no gaps. Android records from `VOICE_COMMUNICATION`
435
- with echo cancellation, gain control and noise suppression. Details: [docs/PROTOCOL.md](docs/PROTOCOL.md).
436
-
437
- ## Development
438
-
439
- ```bash
440
- cd example && npm install && cd ..
441
- ./scripts/link-example-deps.sh # type-check against the example's react-native / expo
442
- npm run typecheck && npm run build && npm test
443
- npm pack # → react-native-voice-bot-sdk-<version>.tgz
444
- ```
445
-
446
- Example app (installs the packed tarball, like a real third-party app):
447
-
448
- ```bash
449
- cd example && npm install ../react-native-voice-bot-sdk-0.1.0.tgz
450
- npx expo run:android
451
- ```
452
-
453
- Local test server (Python 3, no packages needed), with the phone on USB:
454
-
455
- ```bash
456
- python3 test-server/server.py
457
- adb reverse tcp:8091 tcp:8091
458
- ```
459
-
460
- Then use `ws://localhost:8091/demo` in the example app. The server checks the connect message and the
461
- 640-byte frames, sends a reply with audio, and runs a navigation script.
435
+ with echo cancellation, gain control and noise suppression. Details: [docs/PROTOCOL.md](https://unpkg.com/react-native-voice-bot-sdk/docs/PROTOCOL.md).
462
436
 
463
437
  ## License
464
438
 
@@ -11,7 +11,7 @@ voice server (for example `wss://voice.example.com/demo`) and your domain id.
11
11
  | Bare React Native | 0.76 or newer (Expo modules SDK 52+) with Expo modules installed (`npx install-expo-modules@latest`). |
12
12
  | Android | 7.0 (API 24) or newer. Tested on Android 16 (Pixel 7). |
13
13
  | iOS | 16.4 or newer. **Not tested on a device yet** in this release. |
14
- | Server | A voice server that speaks the protocol in [PROTOCOL.md](PROTOCOL.md), over `wss://` with a certificate from a public authority for release builds. |
14
+ | Server | A voice server that speaks the protocol in [PROTOCOL.md](https://unpkg.com/react-native-voice-bot-sdk/docs/PROTOCOL.md), over `wss://` with a certificate from a public authority for release builds. |
15
15
 
16
16
  ## 2. Install
17
17
 
@@ -161,8 +161,8 @@ Pass any `VoiceBot.connect()` option in `options`:
161
161
  and response (`← RECV`) is printed. On Android: `adb logcat -s ReactNativeJS VoiceBotAudio`.
162
162
  3. Tap the mic and say something like "open my cart".
163
163
 
164
- A small test server (Python 3, no packages) ships in the SDK repository's `test-server/` folder if
165
- your real server isn't ready.
164
+ If your real server isn't ready yet, ask the voice bot team for the small test server (Python 3, no
165
+ packages needed) that checks the connect message and the audio frames.
166
166
 
167
167
  ## 9. Before you release
168
168
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-voice-bot-sdk",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Drop-in voice assistant widget for React Native and Expo apps: talks to your voice server over a WebSocket, plays the spoken reply, and lets the server open screens in your app.",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",