Skip to content

Commit

Permalink
Initial check in of the speech-commands project (tensorflow#50)
Browse files Browse the repository at this point in the history
* Initial check in of the speech-commands project

- Add python script for wav-to-dat conversion, which prepares the
  data for WebAudio FFT conversionin the browser: prep_wavs.py
- Add unit tests for prep_wavs.py: prep_wavs_test.py
- Add pylint config file (.pylintrc)
- Add README.md
- Include Python dev info in README.md
- Add Python build (run_python_tests.sh) to Travis.
  • Loading branch information
caisq authored Jul 25, 2018
1 parent da16fdb commit 09ff52b
Show file tree
Hide file tree
Showing 11 changed files with 1,163 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ dist/
**/*/.yalc

.rpt2_cache/

*.pyc
23 changes: 16 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
language: node_js
node_js:
- '8'
- '10'
script:
- yarn presubmit
cache: yarn
git:
depth: 5
matrix:
include:
- language: node_js
node_js:
- '8'
- '10'
script:
- yarn presubmit
cache: yarn
git:
depth: 5

- langauge: python
python: 3.5
script:
- ./run_python_tests.sh
23 changes: 23 additions & 0 deletions run_python_tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash
# Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================

# Run all Python tests in this tfjs-models repository.

set -e

SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

"${SCRIPT_DIR}/speech-commands/training/browser-fft/py_lint_and_test.sh"
15 changes: 15 additions & 0 deletions speech-commands/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "@tensorflow-models/speech-commands",
"version": "0.1.0",
"description": "Speech-command recognizer in TensorFlow.js",
"peerDependencies": {
"@tensorflow/tfjs": "^0.12.3"
},
"devDependencies": {
"@tensorflow/tfjs": "^0.12.3"
},
"scripts": {
"build": "echo 'No-op for now.'"
},
"license": "Apache-2.0"
}
Loading

0 comments on commit 09ff52b

Please sign in to comment.