@acpfx/tts-pocket 0.2.3 → 0.2.4
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/LICENSE +15 -0
- package/README.md +49 -0
- package/bin/tts-pocket-linux-x64 +0 -0
- package/package.json +1 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
ISC License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024-2026 acpfx contributors
|
|
4
|
+
|
|
5
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
7
|
+
copyright notice and this permission notice appear in all copies.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
10
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
11
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
12
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
13
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
14
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
15
|
+
PERFORMANCE OF THIS SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# @acpfx/tts-pocket
|
|
2
|
+
|
|
3
|
+
Local text-to-speech via Pocket TTS. A lightweight ~100M parameter model that runs on-device, including on CPU -- no API key needed.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
This package is a pipeline node for [@acpfx/cli](../orchestrator/README.md). See the CLI package for installation and usage.
|
|
8
|
+
|
|
9
|
+
The postinstall script downloads a prebuilt binary for your platform. Supported: macOS (Apple Silicon with Metal), Linux (x86_64, optional CUDA).
|
|
10
|
+
|
|
11
|
+
## Manifest
|
|
12
|
+
|
|
13
|
+
- **Consumes:** `agent.delta`, `agent.complete`, `agent.tool_start`, `control.interrupt`
|
|
14
|
+
- **Emits:** `audio.chunk`, `lifecycle.ready`, `lifecycle.done`, `log`
|
|
15
|
+
|
|
16
|
+
## Settings
|
|
17
|
+
|
|
18
|
+
| Name | Type | Default | Description |
|
|
19
|
+
|------|------|---------|-------------|
|
|
20
|
+
| `voice` | string | | Voice name or path to WAV/safetensors file for voice cloning |
|
|
21
|
+
| `temperature` | number | `0.7` | Generation temperature (0 = deterministic) |
|
|
22
|
+
| `variant` | string | `b6369a24` | Model variant/config name |
|
|
23
|
+
|
|
24
|
+
## Pipeline Example
|
|
25
|
+
|
|
26
|
+
```yaml
|
|
27
|
+
nodes:
|
|
28
|
+
tts:
|
|
29
|
+
use: "@acpfx/tts-pocket"
|
|
30
|
+
settings: { temperature: 0.7 }
|
|
31
|
+
outputs: [player]
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Building from Source
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
cargo build --release -p node-tts-pocket
|
|
38
|
+
# With Metal (macOS):
|
|
39
|
+
cargo build --release -p node-tts-pocket --features metal
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## External Links
|
|
43
|
+
|
|
44
|
+
- [Pocket TTS (Kyutai)](https://github.com/kyutai-labs/pocket-tts) -- Original Pocket TTS model
|
|
45
|
+
- [Pocket TTS (Rust port)](https://github.com/babybirdprd/pocket-tts) -- Rust/Candle implementation used by this node
|
|
46
|
+
|
|
47
|
+
## License
|
|
48
|
+
|
|
49
|
+
ISC
|
|
Binary file
|