stork-live 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/README.md CHANGED
@@ -31,6 +31,18 @@ import { StorkLiveAvatar } from 'stork-live/react'
31
31
 
32
32
  For LiveKit, Pipecat and OpenAI Realtime see [docs/voice-agents.md](docs/voice-agents.md).
33
33
 
34
+ ## Examples
35
+
36
+ Each folder is a complete starter. Copy it, fill in `.env`, and run it.
37
+
38
+ | Folder | What it is |
39
+ |---|---|
40
+ | [examples/livekit](examples/livekit) | A LiveKit Agents voice agent in Python, a token server and a page. |
41
+ | [examples/pipecat](examples/pipecat) | A Pipecat bot on `SmallWebRTCTransport` and a page. |
42
+ | [examples/openai-realtime](examples/openai-realtime) | Browser WebRTC to OpenAI Realtime, with a small server that mints the short-lived key. |
43
+
44
+ The pages load the client from the CDN and use the free face `'a'`. The agent code needs no avatar plugin.
45
+
34
46
  Between calls to `speak` she blinks, moves her head and keeps her mouth at rest. That part needs nothing from a server.
35
47
 
36
48
  | Call | What it does |
@@ -105,7 +117,8 @@ The renderer is a web page, so on iOS and Android it runs inside the system web
105
117
  | `src/local-motion.js` | The in-page motion model. |
106
118
  | `assets/idle.*` | Head-movement track, resting mouth, eye shapes. |
107
119
  | `assets/motion.*` | The in-page motion model's weights. |
108
- | `examples/` | A page with a sample sentence and a microphone demo. |
120
+ | `examples/index.html` | A page with a sample sentence and a microphone demo. |
121
+ | `examples/livekit`, `examples/pipecat`, `examples/openai-realtime` | Voice agent starters. Not part of the npm package. |
109
122
 
110
123
  ## Free and paid
111
124
 
package/llms.txt CHANGED
@@ -32,3 +32,11 @@ Use it when a page, app or voice agent should have a face that speaks.
32
32
 
33
33
  - [README](README.md): options, methods, measurements
34
34
  - [Voice agents](docs/voice-agents.md): LiveKit, Pipecat, OpenAI Realtime
35
+
36
+ ## Examples
37
+
38
+ Complete starters for "give my voice agent a face". Copy a folder, fill in `.env`, run it. Each page loads the client from the CDN and uses the free face `'a'`.
39
+
40
+ - [LiveKit Agents](examples/livekit/README.md): Python agent, token server, page
41
+ - [Pipecat](examples/pipecat/README.md): bot on SmallWebRTCTransport, page
42
+ - [OpenAI Realtime](examples/openai-realtime/README.md): browser WebRTC, small server that mints the short-lived key
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "stork-live",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "A talking avatar drawn in the browser. Lips follow any audio. No server, no API key.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
7
- "homepage": "https://stork.ai",
7
+ "homepage": "https://www.stork.ai/live",
8
8
  "repository": { "type": "git", "url": "git+https://github.com/jupiterspins/stork-live.git" },
9
9
  "exports": { ".": "./src/stork-live.js", "./react": "./src/react.js" },
10
10
  "files": ["src", "assets", "README.md", "LICENSE", "llms.txt"],
package/src/stork-live.js CHANGED
@@ -14,7 +14,7 @@ export { LocalMotion }
14
14
 
15
15
  const FPS = 25, KM = 16
16
16
  export const LIBRARY = 'https://cdn.jsdelivr.net/npm/stork-live-avatars@1/' // Stork's free library: the npm package stork-live-avatars, served by jsDelivr
17
- const MARK_LINK = 'https://stork.ai/?ref=live-mark' // where the mark on a free avatar leads
17
+ const MARK_LINK = 'https://www.stork.ai/live?ref=live-mark' // where the mark on a free avatar leads
18
18
 
19
19
  /** Motion from a server: 16 kHz speech up, mouth numbers down. */
20
20
  export class ServerMotion {