amv-tts 1.7.0 → 2.0.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 +2 -2
- package/README.pypi.md +8 -8
- package/bin/cli.js +4 -4
- package/binding_node/index.js +2 -2
- package/binding_node/test_node.js +1 -1
- package/index.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
|
|
26
26
|
## Architecture & Overview
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
AMV-TTS is an enterprise-grade, on-device text-to-speech framework optimized for mobile edge hardware and Android Termux environments. Built to eliminate heavy dependency stacks and fragile driver behaviors, it features a resilient 4-Tier architecture:
|
|
29
29
|
|
|
30
30
|
- **Multilingual Neural Orchestrator**: Dynamic cross-language code-switching mesh covering 9 official languages (Korean, English, Japanese, Chinese, Hindi, Russian, Spanish, French, German) with Unicode script tokenization and 50ms context-aware silence padding.
|
|
31
31
|
- **Resident C-API In-Memory Engine**: Direct C-API memory residency with `SherpaResidentManager` achieving sub-0.18x real-time factor with ARM NEON SIMD acceleration and zero subprocess lag.
|
|
@@ -106,7 +106,7 @@ amv-tts doctor
|
|
|
106
106
|
|
|
107
107
|
### Python SDK
|
|
108
108
|
```python
|
|
109
|
-
import
|
|
109
|
+
import amv_tts as tts
|
|
110
110
|
|
|
111
111
|
# 1. Zero-Config Multilingual Neural Synthesis (Korean + English Code-Switching)
|
|
112
112
|
with tts.load() as engine:
|
package/README.pypi.md
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
#
|
|
1
|
+
# AMV-TTS (Python)
|
|
2
2
|
|
|
3
|
-
[](https://github.com/uno-km/
|
|
3
|
+
[](https://pypi.org/project/amv-tts/)
|
|
4
|
+
[](https://pypi.org/project/amv-tts/)
|
|
5
|
+
[](https://github.com/uno-km/amv-tts)
|
|
6
6
|
|
|
7
7
|
> Production-Grade 4-Tier On-Device Speech Synthesis Framework for Mobile & Edge (Zero-Dependency DSP Formant, C++ Vulkan GPU Neural Engine & Android Native Voice Bridge)
|
|
8
8
|
|
|
9
9
|
## Installation
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
|
-
pip install
|
|
12
|
+
pip install amv-tts
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
### 1-Click Automated Engine Provisioning
|
|
16
16
|
```bash
|
|
17
|
-
|
|
17
|
+
amv-tts install --tier high
|
|
18
18
|
```
|
|
19
19
|
|
|
20
20
|
## Quickstart
|
|
21
21
|
|
|
22
22
|
```python
|
|
23
|
-
import
|
|
23
|
+
import amv_tts as tts
|
|
24
24
|
|
|
25
25
|
# 1. Studio Vulkan GPU Neural Engine
|
|
26
26
|
with tts.load(engine="vulkan", model_tier="high") as engine:
|
|
@@ -48,7 +48,7 @@ with tts.load(engine="native", language="en") as engine:
|
|
|
48
48
|
|
|
49
49
|
## Documentation
|
|
50
50
|
- [Official Documentation & API Reference](https://uno-km.vercel.app/lib/tts/)
|
|
51
|
-
- [GitHub Repository](https://github.com/uno-km/
|
|
51
|
+
- [GitHub Repository](https://github.com/uno-km/amv-tts)
|
|
52
52
|
|
|
53
53
|
## License
|
|
54
54
|
Apache-2.0 License. Copyright (c) 2026 Eunho Kim (@uno-km).
|
package/bin/cli.js
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0 OR Commercial-License
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* AMEVA Standard Node.js CLI Runner for
|
|
8
|
-
* Automatically resolves Python 3 environment and dispatches to python -m
|
|
7
|
+
* AMEVA Standard Node.js CLI Runner for amv_tts.
|
|
8
|
+
* Automatically resolves Python 3 environment and dispatches to python -m amv_tts.
|
|
9
9
|
*/
|
|
10
10
|
const fs = require('fs');
|
|
11
11
|
const { spawn, execSync } = require('child_process');
|
|
@@ -34,7 +34,7 @@ function findPython() {
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
const pythonBin = findPython();
|
|
37
|
-
const args = ['-m', '
|
|
37
|
+
const args = ['-m', 'amv_tts', ...process.argv.slice(2)];
|
|
38
38
|
|
|
39
39
|
const child = spawn(pythonBin, args, {
|
|
40
40
|
stdio: 'inherit',
|
|
@@ -42,7 +42,7 @@ const child = spawn(pythonBin, args, {
|
|
|
42
42
|
});
|
|
43
43
|
|
|
44
44
|
child.on('error', (err) => {
|
|
45
|
-
console.error(`[${'
|
|
45
|
+
console.error(`[${'amv_tts'}] Failed to spawn python process (${pythonBin}):`, err.message);
|
|
46
46
|
process.exit(1);
|
|
47
47
|
});
|
|
48
48
|
|
package/binding_node/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* SPDX-License-Identifier: Apache-2.0 OR Commercial-License
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* amv-tts Node.js SDK
|
|
7
7
|
* Secure On-Device Speech Synthesis Binding (CWE-94 Remediation).
|
|
8
8
|
*/
|
|
9
9
|
|
|
@@ -50,7 +50,7 @@ class TTSEngine {
|
|
|
50
50
|
return new Promise((resolve, reject) => {
|
|
51
51
|
const pythonDriver = `
|
|
52
52
|
import sys, json
|
|
53
|
-
import
|
|
53
|
+
import amv_tts as tts
|
|
54
54
|
|
|
55
55
|
try:
|
|
56
56
|
data = json.loads(sys.stdin.read())
|
|
@@ -8,7 +8,7 @@ const path = require('path');
|
|
|
8
8
|
const fs = require('fs');
|
|
9
9
|
|
|
10
10
|
async function testNode() {
|
|
11
|
-
console.log('[*] Testing
|
|
11
|
+
console.log('[*] Testing amv-tts Node.js SDK...');
|
|
12
12
|
const engine = tts.load({ language: 'ko' });
|
|
13
13
|
assert.strictEqual(engine.language, 'ko');
|
|
14
14
|
|
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "amv-tts",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "On-device Text-to-Speech framework utilizing device resources (DSP Formant Vocoder, ONNX Neural Runtime & Android Native Voice)",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
7
|
-
"
|
|
7
|
+
"amv-tts": "bin/cli.js"
|
|
8
8
|
},
|
|
9
9
|
"files": [
|
|
10
10
|
"index.js",
|