зеркало из https://github.com/mozilla/DeepSpeech.git
Bump version to 0.0.2 to workaround PyPI limitations
This commit is contained in:
Родитель
92e53a7a06
Коммит
52d9a8b265
|
@ -65,7 +65,7 @@ See the help output with `./deepspeech -h` and the [native client README](native
|
|||
|
||||
Pre-built binaries that can be used for performing inference with a trained model can be found on TaskCluster. You'll need to download the appropriate Python wheel package.
|
||||
|
||||
[deepspeech-0.0.1-cp27-cp27mu-manylinux1_x86_64.whl (Python 2.7, Linux / amd64)](https://index.taskcluster.net/v1/task/project.deepspeech.deepspeech.native_client.master.cpu/artifacts/public/deepspeech-0.0.1-cp27-cp27mu-manylinux1_x86_64.whl)
|
||||
[deepspeech-0.0.2-cp27-cp27mu-manylinux1_x86_64.whl (Python 2.7, Linux / amd64)](https://index.taskcluster.net/v1/task/project.deepspeech.deepspeech.native_client.master.cpu/artifacts/public/deepspeech-0.0.2-cp27-cp27mu-manylinux1_x86_64.whl)
|
||||
|
||||
[Other configurations](https://tools.taskcluster.net/index/artifacts/#project.deepspeech.deepspeech.native_client.master/project.deepspeech.deepspeech.native_client.master)
|
||||
|
||||
|
@ -81,8 +81,8 @@ See [client.py](native_client/client.py) for an example of how to use the bindin
|
|||
You can download the Node.JS bindings using `util/taskcluster.py` and install them with `npm`:
|
||||
|
||||
```bash
|
||||
python util/taskcluster.py --target . --artifact deepspeech-0.0.1.tgz
|
||||
npm install deepspeech-0.0.1.tgz
|
||||
python util/taskcluster.py --target . --artifact deepspeech-0.0.2.tgz
|
||||
npm install deepspeech-0.0.2.tgz
|
||||
```
|
||||
|
||||
See [client.js](native_client/client.js) for an example of how to use the bindings.
|
||||
|
|
|
@ -22,9 +22,9 @@ If you're looking to train a model, you now have a `libctc_decoder_with_kenlm.so
|
|||
|
||||
For Python bindings, use `--artifact file_name`, where `file_name` is the appropriate file for your Python version and platform. The names of the available artifacts can be found on the listing page: [Linux](https://tools.taskcluster.net/index/artifacts/project.deepspeech.deepspeech.native_client.master/cpu) or [macOS](https://tools.taskcluster.net/index/artifacts/project.deepspeech.deepspeech.native_client.master/osx).
|
||||
|
||||
For example, for Python 2.7 bindings on Linux, you can do `python util/taskcluster.py --target /destination --artifact deepspeech-0.0.1-cp27-cp27mu-manylinux1_x86_64.whl`.
|
||||
For example, for Python 2.7 bindings on Linux, you can do `python util/taskcluster.py --target /destination --artifact deepspeech-0.0.2-cp27-cp27mu-manylinux1_x86_64.whl`.
|
||||
|
||||
For Node.JS bindings, use `--artifact deepspeech-0.0.1.tgz`.
|
||||
For Node.JS bindings, use `--artifact deepspeech-0.0.2.tgz`.
|
||||
|
||||
## Build Requirements
|
||||
|
||||
|
@ -133,4 +133,4 @@ make package
|
|||
make npm-pack
|
||||
```
|
||||
|
||||
This will create the package `deepspeech-0.0.1.tgz` in `native_client/javascript`.
|
||||
This will create the package `deepspeech-0.0.2.tgz` in `native_client/javascript`.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
const binary = require('node-pre-gyp');
|
||||
const path = require('path')
|
||||
// 'lib', 'binding', 'v0.0.1', ['node', 'v' + process.versions.modules, process.platform, process.arch].join('-'), 'deepspeech-bingings.node')
|
||||
// 'lib', 'binding', 'v0.0.2', ['node', 'v' + process.versions.modules, process.platform, process.arch].join('-'), 'deepspeech-bingings.node')
|
||||
const binding_path = binary.find(path.resolve(path.join(__dirname, 'package.json')));
|
||||
const binding = require(binding_path);
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name" : "deepspeech",
|
||||
"version" : "0.0.1",
|
||||
"version" : "0.0.2",
|
||||
"description" : "DeepSpeech NodeJS bindings",
|
||||
"main" : "./index",
|
||||
"author" : "Mozilla DeepSpeech <deepspeech>",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "ds-client",
|
||||
"version": "0.0.1",
|
||||
"version": "0.0.2",
|
||||
"description": "A client binary to access DeepSpeech trained models.",
|
||||
"license": "MPL-2.0",
|
||||
"author": {
|
||||
|
@ -12,6 +12,6 @@
|
|||
"argparse": "1.0.9",
|
||||
"sox-stream": "2.0.1",
|
||||
"memory-stream": "0.0.3",
|
||||
"deepspeech": "0.0.1"
|
||||
"deepspeech": "0.0.2"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -46,7 +46,7 @@ setup(name = project_name,
|
|||
description = 'A library for running inference on a DeepSpeech model',
|
||||
author = 'Chris Lord',
|
||||
author_email='chrislord.net@gmail.com',
|
||||
version = '0.0.1',
|
||||
version = '0.0.2',
|
||||
package_dir = {'deepspeech': 'python'},
|
||||
packages = [ 'deepspeech' ],
|
||||
cmdclass = { 'build': BuildExtFirst },
|
||||
|
|
|
@ -19,7 +19,7 @@ download_data
|
|||
pushd ${HOME}/DeepSpeech/ds/native_client/
|
||||
node --version
|
||||
npm --version
|
||||
npm install ${DEEPSPEECH_ARTIFACTS_ROOT}/deepspeech-0.0.1.tgz
|
||||
npm install ${DEEPSPEECH_ARTIFACTS_ROOT}/deepspeech-0.0.2.tgz
|
||||
npm install
|
||||
|
||||
phrase_pbmodel_withlm=$(node client.js /tmp/${model_name} /tmp/LDC93S1.wav /tmp/alphabet.txt /tmp/lm.binary /tmp/trie)
|
||||
|
|
|
@ -18,9 +18,9 @@ pushd ${HOME}/DeepSpeech/ds/native_client/
|
|||
node --version
|
||||
npm --version
|
||||
if [ "${aot_model}" = "--aot" ]; then
|
||||
npm install ${DEEPSPEECH_AOT_ARTIFACTS_ROOT}/deepspeech-0.0.1.tgz
|
||||
npm install ${DEEPSPEECH_AOT_ARTIFACTS_ROOT}/deepspeech-0.0.2.tgz
|
||||
else
|
||||
npm install ${DEEPSPEECH_ARTIFACTS_ROOT}/deepspeech-0.0.1.tgz
|
||||
npm install ${DEEPSPEECH_ARTIFACTS_ROOT}/deepspeech-0.0.2.tgz
|
||||
fi
|
||||
|
||||
npm install
|
||||
|
|
|
@ -42,7 +42,7 @@ pyenv virtualenv ${pyver} ${PYENV_NAME}
|
|||
source ${PYENV_ROOT}/versions/${pyver}/envs/${PYENV_NAME}/bin/activate
|
||||
|
||||
platform=$(python -c 'import sys; import platform; plat = platform.system().lower(); plat = "manylinux1" if plat == "linux" else plat; sys.stdout.write("%s_%s" % (plat, platform.machine()));')
|
||||
deepspeech_pkg="deepspeech-0.0.1-cp${pyver_pkg}-cp${pyver_pkg}${py_unicode_type}-${platform}.whl"
|
||||
deepspeech_pkg="deepspeech-0.0.2-cp${pyver_pkg}-cp${pyver_pkg}${py_unicode_type}-${platform}.whl"
|
||||
|
||||
pip install --upgrade scipy==0.19.1 ${DEEPSPEECH_ARTIFACTS_ROOT}/${deepspeech_pkg}
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ pyenv virtualenv ${pyver} ${PYENV_NAME}
|
|||
source ${PYENV_ROOT}/versions/${pyver}/envs/${PYENV_NAME}/bin/activate
|
||||
|
||||
platform=$(python -c 'import sys; import platform; plat = platform.system().lower(); plat = "manylinux1" if plat == "linux" else plat; sys.stdout.write("%s_%s" % (plat, platform.machine()));')
|
||||
deepspeech_pkg="deepspeech-0.0.1-cp${pyver_pkg}-cp${pyver_pkg}${py_unicode_type}-${platform}.whl"
|
||||
deepspeech_pkg="deepspeech-0.0.2-cp${pyver_pkg}-cp${pyver_pkg}${py_unicode_type}-${platform}.whl"
|
||||
|
||||
if [ "${aot_model}" = "--aot" ]; then
|
||||
deepspeech_pkg_url=${DEEPSPEECH_AOT_ARTIFACTS_ROOT}/${deepspeech_pkg}
|
||||
|
|
Загрузка…
Ссылка в новой задаче