Skip to content

Commit fe50764

Browse files
authored
Initial commit
0 parents  commit fe50764

19 files changed

+614
-0
lines changed

.github/workflows/publish_release.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# This workflow will generate a release distribution and upload it to PyPI
2+
3+
name: Publish Build and GitHub Release
4+
on:
5+
push:
6+
branches:
7+
- master
8+
9+
jobs:
10+
tag_release:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Get Version
15+
run: |
16+
VERSION=$(python setup.py --version)
17+
echo "VERSION=${VERSION}" >> $GITHUB_ENV
18+
- uses: ncipollo/release-action@v1
19+
with:
20+
token: ${{secrets.GITHUB_TOKEN}}
21+
tag: ${{env.VERSION}}
22+
build_and_publish:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@v2
26+
- name: Setup Python
27+
uses: actions/setup-python@v1
28+
with:
29+
python-version: 3.8
30+
- name: Install Build Tools
31+
run: |
32+
python -m pip install build wheel
33+
34+
- name: Build Distribution Packages
35+
run: |
36+
python setup.py bdist_wheel
37+
- name: Publish to Test PyPI
38+
uses: pypa/gh-action-pypi-publish@master
39+
with:
40+
password: ${{secrets.PYPI_TOKEN}}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# This workflow will generate a distribution and upload it to PyPI
2+
3+
name: Publish Alpha Build
4+
on:
5+
push:
6+
branches:
7+
- dev
8+
paths-ignore:
9+
- 'version.py'
10+
11+
jobs:
12+
build_and_publish:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v2
16+
with:
17+
ref: ${{ github.head_ref }}
18+
- name: Setup Python
19+
uses: actions/setup-python@v1
20+
with:
21+
python-version: 3.8
22+
- name: Install Build Tools
23+
run: |
24+
python -m pip install build wheel
25+
- name: Increment Version
26+
run: |
27+
VER=$(python setup.py --version)
28+
python version_bump.py
29+
- name: Push Version Change
30+
uses: stefanzweifel/git-auto-commit-action@v4
31+
with:
32+
commit_message: Increment Version
33+
- name: Build Distribution Packages
34+
run: |
35+
python setup.py bdist_wheel
36+
- name: Publish to Test PyPI
37+
uses: pypa/gh-action-pypi-publish@master
38+
with:
39+
password: ${{secrets.PYPI_TOKEN}}

.github/workflows/pull_master.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# This workflow will generate a PR for changes in cert into master
2+
3+
name: Pull to Master
4+
on:
5+
push:
6+
branches:
7+
- dev
8+
workflow_dispatch:
9+
10+
jobs:
11+
pull_changes:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: pull-request-action
16+
uses: repo-sync/pull-request@v2
17+
with:
18+
github_token: ${{ secrets.GITHUB_TOKEN }}
19+
pr_reviewer: 'neonreviewers'
20+
pr_assignee: 'neondaniel'
21+
pr_draft: true

.github/workflows/unit_tests.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# This workflow will run unit tests
2+
3+
name: Run Unit Tests
4+
on:
5+
pull_request:
6+
workflow_dispatch:
7+
8+
jobs:
9+
build_tests:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
with:
14+
ref: ${{ github.head_ref }}
15+
- name: Setup Python
16+
uses: actions/setup-python@v1
17+
with:
18+
python-version: 3.8
19+
- name: Install Build Tools
20+
run: |
21+
python -m pip install build wheel
22+
- name: Build Distribution Packages
23+
run: |
24+
python setup.py bdist_wheel
25+
unit_tests:
26+
strategy:
27+
matrix:
28+
python-version: [ 3.6, 3.7, 3.8, 3.9 ]
29+
runs-on: ubuntu-latest
30+
steps:
31+
- uses: actions/checkout@v2
32+
- name: Set up python ${{ matrix.python-version }}
33+
uses: actions/setup-python@v2
34+
with:
35+
python-version: ${{ matrix.python-version }}
36+
- name: Install dependencies
37+
run: |
38+
sudo apt update
39+
sudo apt install ffmpeg portaudio19-dev python3-pyaudio
40+
python -m pip install --upgrade pip
41+
pip install -r requirements/requirements.txt
42+
pip install -r requirements/test_requirements.txt
43+
44+
- name: Test Deepspeech STT
45+
run: |
46+
pytest tests/test_stt.py --junitxml=tests/stt-test-results.xml
47+
- name: Upload STT test results
48+
uses: actions/upload-artifact@v2
49+
with:
50+
name: pytest-results-3.6
51+
path: tests/stt-test-results.xml
52+
if: ${{ always() }}

.gitignore

Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
build/
12+
develop-eggs/
13+
dist/
14+
downloads/
15+
eggs/
16+
.eggs/
17+
lib/
18+
lib64/
19+
parts/
20+
sdist/
21+
var/
22+
wheels/
23+
pip-wheel-metadata/
24+
share/python-wheels/
25+
*.egg-info/
26+
.installed.cfg
27+
*.egg
28+
MANIFEST
29+
30+
# PyInstaller
31+
# Usually these files are written by a python script from a template
32+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
33+
*.manifest
34+
*.spec
35+
36+
# Installer logs
37+
pip-log.txt
38+
pip-delete-this-directory.txt
39+
40+
# Unit test / coverage reports
41+
htmlcov/
42+
.tox/
43+
.nox/
44+
.coverage
45+
.coverage.*
46+
.cache
47+
nosetests.xml
48+
coverage.xml
49+
*.cover
50+
*.py,cover
51+
.hypothesis/
52+
.pytest_cache/
53+
54+
# Translations
55+
*.mo
56+
*.pot
57+
58+
# Django stuff:
59+
*.log
60+
local_settings.py
61+
db.sqlite3
62+
db.sqlite3-journal
63+
64+
# Flask stuff:
65+
instance/
66+
.webassets-cache
67+
68+
# Scrapy stuff:
69+
.scrapy
70+
71+
# Sphinx documentation
72+
docs/_build/
73+
74+
# PyBuilder
75+
target/
76+
77+
# Jupyter Notebook
78+
.ipynb_checkpoints
79+
80+
# IPython
81+
profile_default/
82+
ipython_config.py
83+
84+
# pyenv
85+
.python-version
86+
87+
# pipenv
88+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
89+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
90+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
91+
# install all needed dependencies.
92+
#Pipfile.lock
93+
94+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
95+
__pypackages__/
96+
97+
# Celery stuff
98+
celerybeat-schedule
99+
celerybeat.pid
100+
101+
# SageMath parsed files
102+
*.sage.py
103+
104+
# Environments
105+
.env
106+
.venv
107+
env/
108+
venv/
109+
ENV/
110+
env.bak/
111+
venv.bak/
112+
113+
# Spyder project settings
114+
.spyderproject
115+
.spyproject
116+
117+
# Rope project settings
118+
.ropeproject
119+
120+
# mkdocs documentation
121+
/site
122+
123+
# mypy
124+
.mypy_cache/
125+
.dmypy.json
126+
dmypy.json
127+
128+
# Pyre type checker
129+
.pyre/
130+
131+
# PyCharm project
132+
.idea

LICENSE.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# NEON AI (TM) SOFTWARE, Software Development Kit & Application Development System
2+
# All trademark and other rights reserved by their respective owners
3+
# Copyright 2008-2021 Neongecko.com Inc.
4+
# BSD-3 License
5+
6+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
7+
following conditions are met:
8+
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
9+
disclaimer.
10+
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following
11+
disclaimer in the documentation and/or other materials provided with the distribution.
12+
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products
13+
derived from this software without specific prior written permission.
14+
15+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
16+
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
17+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
18+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
19+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
20+
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
21+
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# NeonAI Template STT Plugin # TODO: Name
2+
[Mycroft](https://mycroft-ai.gitbook.io/docs/mycroft-technologies/mycroft-core/plugins) compatible
3+
STT Plugin for Template streaming Speech-to-Text. # TODO: Update Name
4+
5+
# Configuration:
6+
# TODO: Specify any optional or required configuration values
7+
```yaml
8+
stt:
9+
module: stt_module_name # TODO: Unique Entry Point Name
10+
stt_module_name: {} # TODO: Any module config
11+
12+
```

0 commit comments

Comments
 (0)