getpatter 0.5.2 → 0.5.3
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 +5 -5
- package/dist/{banner-FLR2HE5Z.mjs → banner-3GNZ6VQK.mjs} +1 -1
- package/dist/{carrier-config-CPG5CROM.mjs → carrier-config-33HQ2W4V.mjs} +2 -2
- package/dist/{chunk-7SDDK2AO.mjs → chunk-FIFIWBL7.mjs} +3255 -588
- package/dist/chunk-QHHBUCMT.mjs +25 -0
- package/dist/{chunk-AKQFOFLG.mjs → chunk-SEMKNPCD.mjs} +7 -2
- package/dist/{chunk-FMNRCP5X.mjs → chunk-VJVDG4V5.mjs} +1 -1
- package/dist/cli.js +126 -13
- package/dist/dist-YRCCJQ26.mjs +1631 -0
- package/dist/index.d.mts +2000 -289
- package/dist/index.d.ts +2000 -289
- package/dist/index.js +7944 -1927
- package/dist/index.mjs +1881 -617
- package/dist/node-cron-6PRPSBG5.mjs +1348 -0
- package/dist/onnxruntime_binding-4Q2WV26X.node +0 -0
- package/dist/onnxruntime_binding-5PVQ7RFC.node +0 -0
- package/dist/onnxruntime_binding-FNOPH2XG.node +0 -0
- package/dist/onnxruntime_binding-HSGOY4IT.node +0 -0
- package/dist/onnxruntime_binding-OY2N3XIT.node +0 -0
- package/dist/onnxruntime_binding-ZPEJPBCV.node +0 -0
- package/dist/{persistence-CYIGNHSU.mjs → persistence-LQBYQPQQ.mjs} +1 -1
- package/dist/test-mode-MVJ3SKG4.mjs +8 -0
- package/dist/tunnel-UVR3PPAU.mjs +8 -0
- package/package.json +10 -3
- package/dist/chunk-OOIUSZB4.mjs +0 -37
- package/dist/node-cron-373UVDIO.mjs +0 -935
- package/dist/test-mode-K2TTPRGE.mjs +0 -8
- package/dist/tunnel-O7ICMSTP.mjs +0 -8
package/README.md
CHANGED
|
@@ -91,7 +91,7 @@ cp .env.example .env
|
|
|
91
91
|
# Edit .env with your API keys
|
|
92
92
|
```
|
|
93
93
|
|
|
94
|
-
> **Telnyx:** Telnyx is a fully supported telephony provider alternative to Twilio. Both carriers receive equal support for DTMF, transfer,
|
|
94
|
+
> **Telnyx:** Telnyx is a fully supported telephony provider alternative to Twilio. Both carriers receive equal support for DTMF, transfer, and metrics. Recording is Twilio-only.
|
|
95
95
|
|
|
96
96
|
## Voice Modes
|
|
97
97
|
|
|
@@ -110,7 +110,7 @@ new Patter({
|
|
|
110
110
|
carrier: Twilio | Telnyx;
|
|
111
111
|
phoneNumber: string;
|
|
112
112
|
webhookUrl?: string; // Public hostname. Mutually exclusive with tunnel.
|
|
113
|
-
tunnel?: CloudflareTunnel | StaticTunnel;
|
|
113
|
+
tunnel?: CloudflareTunnel | StaticTunnel | boolean; // `true` is shorthand for new CloudflareTunnel().
|
|
114
114
|
})
|
|
115
115
|
```
|
|
116
116
|
|
|
@@ -119,7 +119,7 @@ new Patter({
|
|
|
119
119
|
| `carrier` | `Twilio` / `Telnyx` | Carrier instance. Reads env vars by default. |
|
|
120
120
|
| `phoneNumber` | `string` | Your phone number in E.164 format. |
|
|
121
121
|
| `webhookUrl` | `string` | Public hostname your local server is reachable on. |
|
|
122
|
-
| `tunnel` |
|
|
122
|
+
| `tunnel` | `CloudflareTunnel \| StaticTunnel \| boolean` | `new CloudflareTunnel()`, `new StaticTunnel({ hostname: ... })`, or `true` (shorthand for `new CloudflareTunnel()`). |
|
|
123
123
|
|
|
124
124
|
### `phone.agent()`
|
|
125
125
|
|
|
@@ -226,7 +226,7 @@ import { Patter, Twilio, DeepgramSTT, ElevenLabsTTS } from "getpatter";
|
|
|
226
226
|
const phone = new Patter({ carrier: new Twilio(), phoneNumber: "+15550001234" });
|
|
227
227
|
const agent = phone.agent({
|
|
228
228
|
stt: new DeepgramSTT(), // reads DEEPGRAM_API_KEY
|
|
229
|
-
tts: new ElevenLabsTTS({ voice: "
|
|
229
|
+
tts: new ElevenLabsTTS({ voice: "sarah" }), // reads ELEVENLABS_API_KEY
|
|
230
230
|
systemPrompt: "You are a helpful voice assistant.",
|
|
231
231
|
});
|
|
232
232
|
await phone.serve({ agent, tunnel: true });
|
|
@@ -241,7 +241,7 @@ const phone = new Patter({ carrier: new Twilio(), phoneNumber: "+15550001234" })
|
|
|
241
241
|
const agent = phone.agent({
|
|
242
242
|
stt: new DeepgramSTT(), // reads DEEPGRAM_API_KEY
|
|
243
243
|
llm: new AnthropicLLM(), // reads ANTHROPIC_API_KEY
|
|
244
|
-
tts: new ElevenLabsTTS({ voiceId: "
|
|
244
|
+
tts: new ElevenLabsTTS({ voiceId: "sarah" }), // reads ELEVENLABS_API_KEY
|
|
245
245
|
systemPrompt: "You are a helpful voice assistant.",
|
|
246
246
|
});
|
|
247
247
|
await phone.serve({ agent, tunnel: true });
|