Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test #75

Closed
wants to merge 7 commits into from
Closed

test #75

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions .github/workflows/check-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,18 @@ on:
- 'doc/**'
- '**.md'


jobs:
build:
ubuntu-latest:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: clone
uses: actions/checkout@v2
- name: install packages
run: |
sudo apt-get update
sudo apt-get install csh parallel valgrind
- name: setup
run: cd tools; make check -j 4
- name: make
run: make
- name: make format
run: make format
- name: make test
run: make test
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,26 @@ The Speech Signal Processing Toolkit (SPTK) is a software for speech signal proc
[![](https://github.com/sp-nitech/SPTK/workflows/build/badge.svg)](https://github.com/sp-nitech/SPTK/actions)


What is SPTK?
-------------
- SPTK consists of over 100 commands for speech signal processing.
- The data format used in SPTK is raw header-less, e.g., there is no data structure.
Thanks to the data format, we can check file contents immediately on CUI.
```sh
data.raw | dmp +s
```
- The data used in the commands is passed through standard input/output.
We can chain multiple processes using pipes.
```sh
data.raw | x2x +sd | clip | x2x +da | less
```
- The data type is basically little-endian double 16 bytes.
- The commands does not require interactive user inputs.
Parameters are set via command line options beforehand.
```sh
impulse -l 4 | sopr -m 10 | x2x +da


Documentation
-------------
See [this page](https://sp-nitech.github.io/sptk/4.0/) for a reference manual.
Expand Down
42 changes: 42 additions & 0 deletions make.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
:: ------------------------------------------------------------------------ ::
:: Copyright 2021 SPTK Working Group ::
:: ::
:: 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. ::
:: ------------------------------------------------------------------------ ::

@echo off

set BUILDDIR=build

set JOBS=4

where /q cmake || (
echo ERROR: Could not find cmake.
exit /b 1
)

where /q MSBuild || (
echo ERROR: Could not find MSBuild.
exit /b 1
)

if not exist %BUILDDIR% mkdir %BUILDDIR%

pushd %BUILDDIR%

cmake .. -DCMAKE_INSTALL_PREFIX=..
MSBuild -maxcpucount:%JOBS% /p:Configuration=Release INSTALL.vcxproj

popd

pause
2 changes: 1 addition & 1 deletion tools/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ JOBS := 4

all: check doxygen.done

check: venv_dev bats.done shellcheck.done sptk.done
check: sptk.done

venv:
@if type virtualenv > /dev/null 2>&1; then \
Expand Down