uneeq-js 3.12.1 → 3.13.0
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 +28 -0
- package/dist/esm/index.js +13 -13
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/session.d.ts +23 -1
- package/dist/signaling.d.ts +32 -0
- package/dist/types/UneeqConfig.d.ts +45 -0
- package/dist/uneeq.d.ts +31 -0
- package/package.json +1 -1
- package/dist/esm/chunks/chunk-L6ZAQW34.js +0 -2
- package/dist/esm/chunks/chunk-WFB6TCVG.js +0 -1
- package/dist/esm/chunks/deepgram-flux-stt-THPXAQCV.js +0 -27
- package/dist/esm/chunks/deepgram-stt-CR3L4IF7.js +0 -1
- package/dist/esm/chunks/google-stt-27OIIGBU.js +0 -2486
- package/dist/speech-recognition.d.ts +0 -59
- package/dist/speech-recognition.spec.d.ts +0 -1
package/README.md
CHANGED
|
@@ -64,6 +64,34 @@ Logs will only be displayed if they are at or above the log level specified when
|
|
|
64
64
|
Log messages will be prefixed with the string 'UneeQ: ' so that uneeq-js logs can be differentiated from client logs easily.
|
|
65
65
|
|
|
66
66
|
|
|
67
|
+
## Beta features
|
|
68
|
+
|
|
69
|
+
### `audioUpstreamMode` (beta for non-default values)
|
|
70
|
+
|
|
71
|
+
`audioUpstreamMode` on `UneeqConfig` controls where user microphone audio is delivered. **Omit the field or leave it `undefined` for the existing GA behaviour — no existing caller needs to change anything.**
|
|
72
|
+
|
|
73
|
+
| Value | Status | What it does |
|
|
74
|
+
| --- | --- | --- |
|
|
75
|
+
| `'speech-recognition-service'` | **GA / default** | Mic is captured with browser AEC/AGC/NS, sent to UneeQ's STT WebSocket (Google or Deepgram). Transcripts flow to Renny over the data channel. This is the behaviour when the field is omitted. |
|
|
76
|
+
| `'pixel-streaming'` | **Beta** | Mic is attached to the Pixel Streaming WebRTC peer connection as an upstream audio track (Epic's `UseMic` flag). No STT client is instantiated; `speechRecognitionProvider` is ignored. Use when Renny drives conversation in-renderer. |
|
|
77
|
+
| `'both'` | **Beta** | Mic is delivered to BOTH the PS peer connection AND the STT WebSocket. Two independent `getUserMedia` captures run in parallel. Use when Renny needs raw audio AND we still want server-side transcripts (captions, compliance, transcript-driven LLM). |
|
|
78
|
+
|
|
79
|
+
**Headphone caveat:** the Epic Pixel Streaming library captures the PS mic track without AEC/AGC/NS, so expect echo/feedback unless the user is wearing headphones. Not a concern in the default `'speech-recognition-service'` mode.
|
|
80
|
+
|
|
81
|
+
**Shape and defaults may change while the two non-default modes are beta.** The library emits an `info`-level log line at session init whenever a beta mode is active so the current upstream routing is visible in support captures:
|
|
82
|
+
|
|
83
|
+
```
|
|
84
|
+
audioUpstreamMode='pixel-streaming' is beta; behaviour may change.
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
**New APIs on the `Uneeq` instance (beta):**
|
|
88
|
+
|
|
89
|
+
- `muteUpstreamMic()` / `unmuteUpstreamMic()` — mute/unmute the PS upstream mic track only. No-op with a warning in `'speech-recognition-service'` mode (there is no PS track to control). In `'pixel-streaming'` / `'both'` mode these are preferred over `enableMicrophone()` if you only want to gate the PS leg (e.g. to stop feeding audio into the in-renderer agent without pausing STT transcripts).
|
|
90
|
+
- `pauseSpeechRecognition()` / `resumeSpeechRecognition()` — unchanged in behaviour, but now explicitly warn and return `false` in `'pixel-streaming'` mode since there is no STT leg to pause.
|
|
91
|
+
- `enableMicrophone(enabled)` — now dispatches to whichever leg(s) are active for the current mode: STT in `'speech-recognition-service'`, PS in `'pixel-streaming'`, both in `'both'`.
|
|
92
|
+
|
|
93
|
+
See [`documentation/PS_AUDIO_UPSTREAM.md`](./documentation/PS_AUDIO_UPSTREAM.md) for the full design.
|
|
94
|
+
|
|
67
95
|
## Notes
|
|
68
96
|
#### onnxruntime-web
|
|
69
97
|
onnxruntime-web only works on version 1.15.1 at this time. Upgrading this package will likely break VAD funtionality.
|