termux-tts 1.4.0 → 1.4.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/.github/workflows/release.yml +82 -0
- package/CHANGELOG.md +9 -0
- package/package.json +3 -2
- package/pyproject.toml +2 -1
- package/termux_tts/__init__.py +2 -1
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- 'v*'
|
|
7
|
+
workflow_dispatch:
|
|
8
|
+
|
|
9
|
+
permissions:
|
|
10
|
+
contents: read
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
publish-pypi:
|
|
14
|
+
name: Publish to PyPI
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
steps:
|
|
17
|
+
- name: Checkout repository
|
|
18
|
+
uses: actions/checkout@v4
|
|
19
|
+
|
|
20
|
+
- name: Check if PyPI project exists
|
|
21
|
+
id: check-py
|
|
22
|
+
run: |
|
|
23
|
+
if [ -f "pyproject.toml" ]; then
|
|
24
|
+
echo "has_python=true" >> $GITHUB_OUTPUT
|
|
25
|
+
else
|
|
26
|
+
echo "has_python=false" >> $GITHUB_OUTPUT
|
|
27
|
+
fi
|
|
28
|
+
|
|
29
|
+
- name: Set up Python
|
|
30
|
+
if: steps.check-py.outputs.has_python == 'true'
|
|
31
|
+
uses: actions/setup-python@v5
|
|
32
|
+
with:
|
|
33
|
+
python-version: '3.11'
|
|
34
|
+
|
|
35
|
+
- name: Install build dependencies
|
|
36
|
+
if: steps.check-py.outputs.has_python == 'true'
|
|
37
|
+
run: |
|
|
38
|
+
python -m pip install --upgrade pip
|
|
39
|
+
pip install build twine
|
|
40
|
+
|
|
41
|
+
- name: Build distributions
|
|
42
|
+
if: steps.check-py.outputs.has_python == 'true'
|
|
43
|
+
run: python -m build
|
|
44
|
+
|
|
45
|
+
- name: Verify distribution archives
|
|
46
|
+
if: steps.check-py.outputs.has_python == 'true'
|
|
47
|
+
run: twine check dist/*
|
|
48
|
+
|
|
49
|
+
- name: Publish to PyPI
|
|
50
|
+
if: steps.check-py.outputs.has_python == 'true'
|
|
51
|
+
env:
|
|
52
|
+
TWINE_USERNAME: __token__
|
|
53
|
+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
|
|
54
|
+
run: |
|
|
55
|
+
twine upload --skip-existing dist/*
|
|
56
|
+
|
|
57
|
+
publish-npm:
|
|
58
|
+
name: Publish to NPM
|
|
59
|
+
runs-on: ubuntu-latest
|
|
60
|
+
steps:
|
|
61
|
+
- name: Checkout repository
|
|
62
|
+
uses: actions/checkout@v4
|
|
63
|
+
|
|
64
|
+
- name: Set up Node.js
|
|
65
|
+
uses: actions/setup-node@v4
|
|
66
|
+
with:
|
|
67
|
+
node-version: '20'
|
|
68
|
+
registry-url: 'https://registry.npmjs.org'
|
|
69
|
+
|
|
70
|
+
- name: Publish NPM package
|
|
71
|
+
env:
|
|
72
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
73
|
+
run: |
|
|
74
|
+
if [ -f "package.json" ]; then
|
|
75
|
+
echo "Publishing root package.json..."
|
|
76
|
+
npm publish --access public
|
|
77
|
+
elif [ -f "npm/package.json" ]; then
|
|
78
|
+
echo "Publishing npm/package.json..."
|
|
79
|
+
cd npm && npm publish --access public
|
|
80
|
+
else
|
|
81
|
+
echo "No package.json found. Skipping NPM publish."
|
|
82
|
+
fi
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [1.4.1] - 2026-09-07
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
- Fixed npm package.json bin path specification (removed './' prefix).
|
|
9
|
+
- Integrated GitHub Actions automated CI/CD release workflow.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
5
13
|
## [1.4.0] - 2026-09-07
|
|
6
14
|
|
|
7
15
|
### Added
|
|
@@ -25,3 +33,4 @@ All notable changes to this project will be documented in this file.
|
|
|
25
33
|
- Migrated hardware acceleration dependency to unified `ameva-runtime>=2.0.0` and `@ameva/runtime>=2.0.0`.
|
|
26
34
|
- Synchronized Python and npm package versions to v1.1.4.
|
|
27
35
|
|
|
36
|
+
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "termux-tts",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.1",
|
|
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
|
-
"termux-tts": "
|
|
7
|
+
"termux-tts": "bin/cli.js"
|
|
8
8
|
},
|
|
9
9
|
"scripts": {
|
|
10
10
|
"test": "node binding_node/test_node.js",
|
|
@@ -29,3 +29,4 @@
|
|
|
29
29
|
"node": ">=16.0.0"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
+
|
package/pyproject.toml
CHANGED
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "termux-tts"
|
|
7
|
-
version = "1.4.
|
|
7
|
+
version = "1.4.1"
|
|
8
8
|
description = "On-device 4-Tier Text-to-Speech framework utilizing device resources (DSP Formant Vocoder, C++ Sherpa-ONNX Neural, Android Native & Expressive)"
|
|
9
9
|
readme = "README.pypi.md"
|
|
10
10
|
requires-python = ">=3.10"
|
|
@@ -42,3 +42,4 @@ termux-tts = "termux_tts.adapter:create_adapter"
|
|
|
42
42
|
[tool.setuptools.packages.find]
|
|
43
43
|
where = ["."]
|
|
44
44
|
include = ["termux_tts*"]
|
|
45
|
+
|
package/termux_tts/__init__.py
CHANGED
|
@@ -29,7 +29,7 @@ from .exceptions import (
|
|
|
29
29
|
ONNXNeuralEngine = SherpaNeuralEngine
|
|
30
30
|
ONNXResult = SherpaResult
|
|
31
31
|
|
|
32
|
-
__version__ = "1.4.
|
|
32
|
+
__version__ = "1.4.1"
|
|
33
33
|
__all__ = [
|
|
34
34
|
"TTSEngine",
|
|
35
35
|
"load",
|
|
@@ -61,3 +61,4 @@ __all__ = [
|
|
|
61
61
|
"TTSAudioEncodingError",
|
|
62
62
|
"TTSLanguageNotSupportedError"
|
|
63
63
|
]
|
|
64
|
+
|