@lumavox/react 0.16.0 → 0.17.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 CHANGED
@@ -58,7 +58,7 @@ redial.
58
58
  | `interrupted` | the device has the audio — a call, Siri, another app |
59
59
  | `send` `startAudio` `sendAudio` `endAudio` `cancel` `mute` `reconnect` `close` | the conversation's |
60
60
  | `startRecording({ rate, transcribeOnly, speech, thoughts })` `stopRecording({ transcribeOnly, discard })` | through the `audio` adapter; a held turn's own voice and thinking, as `send`'s |
61
- | `listen(options)` `stopListening()` `listening` `hearing` | hands-free: each utterance a turn, talking over the agent stopping it (`@lumavox/client`'s `listen`) |
61
+ | `listen(options)` `stopListening()` `listening` `hearing` | hands-free: each utterance a turn, talking over the agent stopping it (`@lumavox/client`'s `listen`); `listen({ halfDuplex: true })` where echo cannot be cancelled — nothing heard while the agent speaks |
62
62
  | `newSession()` | a new conversation with the same agent |
63
63
  | `conversation` | the `Conversation` itself |
64
64
 
@@ -23,7 +23,8 @@
23
23
  * - **Hands-free is `listen()`** (`@lumavox/client`'s): the recorder stays
24
24
  * open and each utterance is a turn; talking over the agent stops it on
25
25
  * the edge's `barge_in`, and its voice stays stopped for the rest of
26
- * that reply. Push-to-talk waits while it listens, and it ends with the
26
+ * that reply — or, with `halfDuplex`, nothing is heard while it speaks.
27
+ * Push-to-talk waits while it listens, and it ends with the
27
28
  * conversation.
28
29
  */
29
30
  import { type AgentAudio, type Client, type CloseInfo, type ConnectOptions, type Conversation, type ConversationHandlers, type ErrorFrame, type ListenOptions, type PlatformError, type SessionDetail, type Snapshot, type StartAudioOptions, type TranscriptOutcome, type TurnOptions, type TurnOutcome } from "@lumavox/client";
@@ -115,8 +116,9 @@ export interface AgentControls extends Snapshot {
115
116
  /**
116
117
  * Hands-free: the recorder left open, each utterance a turn, talking over
117
118
  * the agent stopping it. Answers whether it listens; where the agent
118
- * would hear itself it does not, and `error` says why — push-to-talk
119
- * still works there.
119
+ * would hear itself it does not, and `error` says why — `halfDuplex`, or
120
+ * push-to-talk, works there: with `{ halfDuplex: true }` nothing is heard
121
+ * while the agent speaks, so it never hears itself.
120
122
  */
121
123
  listen(options?: ListenOptions): Promise<boolean>;
122
124
  /** Hands-free off: the recorder closed, a half-heard utterance thrown away. */
package/dist/use-agent.js CHANGED
@@ -23,7 +23,8 @@
23
23
  * - **Hands-free is `listen()`** (`@lumavox/client`'s): the recorder stays
24
24
  * open and each utterance is a turn; talking over the agent stops it on
25
25
  * the edge's `barge_in`, and its voice stays stopped for the rest of
26
- * that reply. Push-to-talk waits while it listens, and it ends with the
26
+ * that reply — or, with `halfDuplex`, nothing is heard while it speaks.
27
+ * Push-to-talk waits while it listens, and it ends with the
27
28
  * conversation.
28
29
  */
29
30
  import { listen as listenOn, RECORDING_RATES, } from "@lumavox/client";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lumavox/react",
3
- "version": "0.16.0",
3
+ "version": "0.17.0",
4
4
  "description": "React and React Native hooks for Lumavox agents: a conversation that keeps itself connected, sessions, memory and relations, over @lumavox/client.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -29,7 +29,7 @@
29
29
  "typecheck": "tsc --noEmit && tsc --noEmit -p test"
30
30
  },
31
31
  "dependencies": {
32
- "@lumavox/client": "0.16.0"
32
+ "@lumavox/client": "0.17.0"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "react": ">=18"