diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md
index 498baa3f..bdb48cd1 100644
--- a/CODE_OF_CONDUCT.md
+++ b/CODE_OF_CONDUCT.md
@@ -1,15 +1,132 @@
-# Community Participation Guidelines
+# Contributor Covenant Code of Conduct
-This repository is governed by Mozilla's code of conduct and etiquette guidelines.
-For more details, please read the
-[Mozilla Community Participation Guidelines](https://www.mozilla.org/about/governance/policies/participation/).
+## Our Pledge
-## How to Report
-For more information on how to report violations of the Community Participation Guidelines, please read our '[How to Report](https://www.mozilla.org/about/governance/policies/participation/reporting/)' page.
+We as members, contributors, and leaders pledge to make participation in our
+community a harassment-free experience for everyone, regardless of age, body
+size, visible or invisible disability, ethnicity, sex characteristics, gender
+identity and expression, level of experience, education, socio-economic status,
+nationality, personal appearance, race, caste, color, religion, or sexual identity
+and orientation.
-
+## Our Standards
+
+Examples of behavior that contributes to a positive environment for our
+community include:
+
+* Demonstrating empathy and kindness toward other people
+* Being respectful of differing opinions, viewpoints, and experiences
+* Giving and gracefully accepting constructive feedback
+* Accepting responsibility and apologizing to those affected by our mistakes,
+ and learning from the experience
+* Focusing on what is best not just for us as individuals, but for the
+ overall community
+
+Examples of unacceptable behavior include:
+
+* The use of sexualized language or imagery, and sexual attention or
+ advances of any kind
+* Trolling, insulting or derogatory comments, and personal or political attacks
+* Public or private harassment
+* Publishing others' private information, such as a physical or email
+ address, without their explicit permission
+* Other conduct which could reasonably be considered inappropriate in a
+ professional setting
+
+## Enforcement Responsibilities
+
+Community leaders are responsible for clarifying and enforcing our standards of
+acceptable behavior and will take appropriate and fair corrective action in
+response to any behavior that they deem inappropriate, threatening, offensive,
+or harmful.
+
+Community leaders have the right and responsibility to remove, edit, or reject
+comments, commits, code, wiki edits, issues, and other contributions that are
+not aligned to this Code of Conduct, and will communicate reasons for moderation
+decisions when appropriate.
+
+## Scope
+
+This Code of Conduct applies within all community spaces, and also applies when
+an individual is officially representing the community in public spaces.
+Examples of representing our community include using an official e-mail address,
+posting via an official social media account, or acting as an appointed
+representative at an online or offline event.
+
+## Enforcement
+
+Instances of abusive, harassing, or otherwise unacceptable behavior may be
+reported to the community leaders responsible for enforcement by emailing
+[coc-report@coqui.ai](mailto:coc-report@coqui.ai).
+All complaints will be reviewed and investigated promptly and fairly.
+
+All community leaders are obligated to respect the privacy and security of the
+reporter of any incident.
+
+## Enforcement Guidelines
+
+Community leaders will follow these Community Impact Guidelines in determining
+the consequences for any action they deem in violation of this Code of Conduct:
+
+### 1. Correction
+
+**Community Impact**: Use of inappropriate language or other behavior deemed
+unprofessional or unwelcome in the community.
+
+**Consequence**: A private, written warning from community leaders, providing
+clarity around the nature of the violation and an explanation of why the
+behavior was inappropriate. A public apology may be requested.
+
+### 2. Warning
+
+**Community Impact**: A violation through a single incident or series
+of actions.
+
+**Consequence**: A warning with consequences for continued behavior. No
+interaction with the people involved, including unsolicited interaction with
+those enforcing the Code of Conduct, for a specified period of time. This
+includes avoiding interactions in community spaces as well as external channels
+like social media. Violating these terms may lead to a temporary or
+permanent ban.
+
+### 3. Temporary Ban
+
+**Community Impact**: A serious violation of community standards, including
+sustained inappropriate behavior.
+
+**Consequence**: A temporary ban from any sort of interaction or public
+communication with the community for a specified period of time. No public or
+private interaction with the people involved, including unsolicited interaction
+with those enforcing the Code of Conduct, is allowed during this period.
+Violating these terms may lead to a permanent ban.
+
+### 4. Permanent Ban
+
+**Community Impact**: Demonstrating a pattern of violation of community
+standards, including sustained inappropriate behavior, harassment of an
+individual, or aggression toward or disparagement of classes of individuals.
+
+**Consequence**: A permanent ban from any sort of public interaction within
+the community.
+
+## Attribution
+
+This Code of Conduct is adapted from the [Contributor Covenant][homepage],
+version 2.0, available at
+[https://www.contributor-covenant.org/version/2/0/code_of_conduct.html][v2.0].
+
+Community Impact Guidelines were inspired by
+[Mozilla's code of conduct enforcement ladder][Mozilla CoC].
+
+For answers to common questions about this code of conduct, see the FAQ at
+[https://www.contributor-covenant.org/faq][FAQ]. Translations are available
+at [https://www.contributor-covenant.org/translations][translations].
+
+[homepage]: https://www.contributor-covenant.org
+[v2.0]: https://www.contributor-covenant.org/version/2/0/code_of_conduct.html
+[Mozilla CoC]: https://github.com/mozilla/diversity
+[FAQ]: https://www.contributor-covenant.org/faq
+[translations]: https://www.contributor-covenant.org/translations
diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst
index f12967da..1d65f660 100644
--- a/CONTRIBUTING.rst
+++ b/CONTRIBUTING.rst
@@ -3,7 +3,7 @@ Contribution guidelines
Welcome to the 🐸STT project! We are excited to see your interest, and appreciate your support!
-This repository is governed by Mozilla's code of conduct and etiquette guidelines. For more details, please read the `Mozilla Community Participation Guidelines `_.
+This repository is governed by the Contributor Covenant Code of Conduct. For more details, see the `CODE_OF_CONDUCT.md `_.
How to Make a Good Pull Request
-------------------------------
@@ -47,9 +47,9 @@ Before making a Pull Request for Python code changes, check your changes for bas
.. code-block:: bash
pip install pylint cardboardlint
- cardboardlinter --refspec master
+ cardboardlinter --refspec main
-This will compare the code against master and run the linter on all the changes. We plan to introduce more linter checks (e.g. for C++) in the future. To run it automatically as a git pre-commit hook, do the following:
+This will compare the code against the main branch and run the linter on all the changes. We plan to introduce more linter checks (e.g. for C++) in the future. To run it automatically as a git pre-commit hook, do the following:
.. code-block:: bash
diff --git a/README.rst b/README.rst
index 3347f0b4..d9c3af91 100644
--- a/README.rst
+++ b/README.rst
@@ -6,6 +6,8 @@
:target: https://stt.readthedocs.io/?badge=latest
:alt: Documentation
+|Contributor Covenant|
+
**Coqui STT** is an open-source Speech-To-Text engine, using a model trained by machine learning techniques based on `Baidu's Deep Speech research paper `_. 🐸STT uses Google's `TensorFlow `_ to make the implementation easier.
**Documentation** for installation, usage, and training models are available on `stt.readthedocs.io `_.
@@ -15,3 +17,5 @@ For the **latest release**, including pre-trained models and checkpoints, `see t
For contribution guidelines, see `CONTRIBUTING.rst `_.
For contact and support information, see `SUPPORT.rst `_.
+
+.. |Contributor Covenant| image:: https://img.shields.io/badge/Contributor%20Covenant-2.0-4baaaa.svg :target: CODE_OF_CONDUCT.md
diff --git a/doc/BUILDING_DotNet.rst b/doc/BUILDING_DotNet.rst
index 9421918f..5bc73175 100644
--- a/doc/BUILDING_DotNet.rst
+++ b/doc/BUILDING_DotNet.rst
@@ -144,4 +144,4 @@ Be patient, if you enabled AVX/AVX2 and CUDA it will take a long time. Finally y
Using the generated library
---------------------------
-As for now we can only use the generated ``libstt.so`` with the C# clients, go to `native_client/dotnet/ `_ in your STT directory and open the Visual Studio solution, then we need to build in debug or release mode, finally we just need to copy ``libstt.so`` to the generated ``x64/Debug`` or ``x64/Release`` directory.
+As for now we can only use the generated ``libstt.so`` with the C# clients, go to `native_client/dotnet/ `_ in your STT directory and open the Visual Studio solution, then we need to build in debug or release mode, finally we just need to copy ``libstt.so`` to the generated ``x64/Debug`` or ``x64/Release`` directory.
diff --git a/doc/USING.rst b/doc/USING.rst
index 370304e8..9ca9c4d4 100644
--- a/doc/USING.rst
+++ b/doc/USING.rst
@@ -188,7 +188,7 @@ or if you're on macOS:
python3 util/taskcluster.py --arch osx --target .
-also, if you need some binaries different than current master, like ``v0.2.0-alpha.6``\ , you can use ``--branch``\ :
+also, if you need some binaries different than current main branch, like ``v0.2.0-alpha.6``\ , you can use ``--branch``\ :
.. code-block:: bash
diff --git a/doc/conf.py b/doc/conf.py
index 45fa6d49..dc447452 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -99,7 +99,7 @@ templates_path = ['.templates']
# source_suffix = ['.rst', '.md']
source_suffix = '.rst'
-# The master toctree document.
+# The main toctree document.
master_doc = 'index'
# The language for content autogenerated by Sphinx. Refer to documentation
diff --git a/doc/doxygen-java.conf b/doc/doxygen-java.conf
index 9516d6ec..c6474d7a 100644
--- a/doc/doxygen-java.conf
+++ b/doc/doxygen-java.conf
@@ -790,7 +790,7 @@ WARN_LOGFILE =
# spaces. See also FILE_PATTERNS and EXTENSION_MAPPING
# Note: If this tag is empty the current directory is searched.
-INPUT = native_client/java/libdeepspeech/src/main/java/org/deepspeech/libdeepspeech/ native_client/java/libdeepspeech/src/main/java/org/deepspeech/libdeepspeech_doc/
+INPUT = native_client/java/libstt/src/main/java/ai/coqui/libstt/ native_client/java/libstt/src/main/java/ai/coqui/libstt_doc/
# This tag can be used to specify the character encoding of the source files
# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses
diff --git a/doc/index.rst b/doc/index.rst
index a22b8f21..edb048f8 100644
--- a/doc/index.rst
+++ b/doc/index.rst
@@ -1,4 +1,4 @@
-.. Coqui STT documentation master file, created by
+.. Coqui STT documentation main file, created by
sphinx-quickstart on Thu Feb 2 21:20:39 2017.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
diff --git a/evaluate_tflite.py b/evaluate_tflite.py
index af3c2385..d8cff40f 100644
--- a/evaluate_tflite.py
+++ b/evaluate_tflite.py
@@ -10,7 +10,7 @@ import csv
import os
import sys
-from deepspeech import Model
+from stt import Model
from coqui_stt_training.util.evaluate_tools import calculate_and_print_report
from coqui_stt_training.util.flags import create_flags
from functools import partial
diff --git a/native_client/generate_scorer_package.cpp b/native_client/generate_scorer_package.cpp
index f4e7c07b..0cadb429 100644
--- a/native_client/generate_scorer_package.cpp
+++ b/native_client/generate_scorer_package.cpp
@@ -103,7 +103,7 @@ main(int argc, char** argv)
("package", po::value(), "Path to save scorer package.")
("default_alpha", po::value(), "Default value of alpha hyperparameter (float).")
("default_beta", po::value(), "Default value of beta hyperparameter (float).")
- ("force_bytes_output_mode", po::value(), "Boolean flag, force set or unset bytes output mode in the scorer package. If not set, infers from the vocabulary. See for further explanation.")
+ ("force_bytes_output_mode", po::value(), "Boolean flag, force set or unset bytes output mode in the scorer package. If not set, infers from the vocabulary. See for further explanation.")
;
po::variables_map vm;
diff --git a/native_client/java/libstt/CMakeLists.txt b/native_client/java/libstt/CMakeLists.txt
index c64ea47e..6009c166 100644
--- a/native_client/java/libstt/CMakeLists.txt
+++ b/native_client/java/libstt/CMakeLists.txt
@@ -26,12 +26,12 @@ add_library( deepspeech-lib
set_target_properties( deepspeech-lib
PROPERTIES
IMPORTED_LOCATION
- ${CMAKE_SOURCE_DIR}/libs/${ANDROID_ABI}/libdeepspeech.so )
+ ${CMAKE_SOURCE_DIR}/libs/${ANDROID_ABI}/libstt.so )
add_custom_command( TARGET deepspeech-jni POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy
- ${CMAKE_SOURCE_DIR}/libs/${ANDROID_ABI}/libdeepspeech.so
- ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/libdeepspeech.so )
+ ${CMAKE_SOURCE_DIR}/libs/${ANDROID_ABI}/libstt.so
+ ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/libstt.so )
# Searches for a specified prebuilt library and stores the path as a
diff --git a/native_client/java/libstt/build.gradle b/native_client/java/libstt/build.gradle
index 3d1364e1..286b2db5 100644
--- a/native_client/java/libstt/build.gradle
+++ b/native_client/java/libstt/build.gradle
@@ -44,7 +44,7 @@ android {
installOptions "-d","-t"
}
- // Avoid scanning libdeepspeech_doc
+ // Avoid scanning libstt_doc
sourceSets {
main.java.srcDirs = [ 'src/main/java/ai/coqui/libstt/' ]
}
diff --git a/native_client/java/libstt/src/main/res/values/strings.xml b/native_client/java/libstt/src/main/res/values/strings.xml
index 7628d1ac..8dd7c26e 100644
--- a/native_client/java/libstt/src/main/res/values/strings.xml
+++ b/native_client/java/libstt/src/main/res/values/strings.xml
@@ -1,3 +1,3 @@
- libdeepspeech
+ libstt
diff --git a/native_client/java/settings.gradle b/native_client/java/settings.gradle
index a31d5636..78868112 100644
--- a/native_client/java/settings.gradle
+++ b/native_client/java/settings.gradle
@@ -1 +1 @@
-include ':app', ':libdeepspeech'
+include ':app', ':libstt'
diff --git a/native_client/javascript/Makefile b/native_client/javascript/Makefile
index c2670dea..70f7686f 100644
--- a/native_client/javascript/Makefile
+++ b/native_client/javascript/Makefile
@@ -27,11 +27,11 @@ endif
default: build
clean:
- rm -f deepspeech_wrap.cxx package.json package-lock.json
+ rm -f stt_wrap.cxx package.json package-lock.json
rm -rf ./build/
clean-npm-pack:
- rm -fr ./deepspeech-*.tgz
+ rm -fr ./stt-*.tgz
really-clean: clean clean-npm-pack
rm -fr ./node_modules/
@@ -46,14 +46,14 @@ package.json: package.json.in
npm-dev: package.json
$(NPM_TOOL) install --prefix=$(NPM_ROOT)/../ --ignore-scripts --force --verbose --production=false .
-configure: deepspeech_wrap.cxx package.json npm-dev
+configure: stt_wrap.cxx package.json npm-dev
PATH="$(NODE_MODULES_BIN):${PATH}" $(NODE_BUILD_TOOL) configure $(NODE_BUILD_VERBOSE)
-build: configure deepspeech_wrap.cxx
+build: configure stt_wrap.cxx
PATH="$(NODE_MODULES_BIN):${PATH}" NODE_PRE_GYP_ABI_CROSSWALK=$(NODE_PRE_GYP_ABI_CROSSWALK_FILE) AS=$(AS) CC=$(CC) CXX=$(CXX) LD=$(LD) CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" LDFLAGS="$(RPATH_NODEJS) $(LDFLAGS)" LIBS=$(LIBS) $(NODE_BUILD_TOOL) $(NODE_PLATFORM_TARGET) $(NODE_RUNTIME) $(NODE_ABI_TARGET) $(NODE_DEVDIR) $(NODE_DIST_URL) --no-color rebuild $(NODE_BUILD_VERBOSE)
copy-deps: build
- $(call copy_missing_libs,lib/binding/*/*/*/deepspeech.node,lib/binding/*/*/)
+ $(call copy_missing_libs,lib/binding/*/*/*/stt.node,lib/binding/*/*/)
node-wrapper: copy-deps build
PATH="$(NODE_MODULES_BIN):${PATH}" NODE_PRE_GYP_ABI_CROSSWALK=$(NODE_PRE_GYP_ABI_CROSSWALK_FILE) $(NODE_BUILD_TOOL) $(NODE_PLATFORM_TARGET) $(NODE_RUNTIME) $(NODE_ABI_TARGET) $(NODE_DEVDIR) $(NODE_DIST_URL) --no-color package $(NODE_BUILD_VERBOSE)
@@ -61,5 +61,5 @@ node-wrapper: copy-deps build
npm-pack: clean package.json index.ts npm-dev
PATH="$(NODE_MODULES_BIN):${PATH}" tsc && $(NPM_TOOL) pack $(NODE_BUILD_VERBOSE)
-deepspeech_wrap.cxx: deepspeech.i ds-swig
- $(DS_SWIG_ENV) swig -c++ -javascript -node deepspeech.i
+stt_wrap.cxx: stt.i ds-swig
+ $(DS_SWIG_ENV) swig -c++ -javascript -node stt.i
diff --git a/native_client/javascript/binding.gyp b/native_client/javascript/binding.gyp
index 65f56abb..594f1f39 100644
--- a/native_client/javascript/binding.gyp
+++ b/native_client/javascript/binding.gyp
@@ -1,8 +1,8 @@
{
"targets": [
{
- "target_name": "deepspeech",
- "sources": [ "deepspeech_wrap.cxx" ],
+ "target_name": "stt",
+ "sources": [ "stt_wrap.cxx" ],
"libraries": [
"$(LIBS)"
],
diff --git a/native_client/javascript/deepspeech.i b/native_client/javascript/stt.i
similarity index 100%
rename from native_client/javascript/deepspeech.i
rename to native_client/javascript/stt.i
diff --git a/native_client/python/Makefile b/native_client/python/Makefile
index 10924654..a18f3fe0 100644
--- a/native_client/python/Makefile
+++ b/native_client/python/Makefile
@@ -3,7 +3,7 @@
include ../definitions.mk
bindings-clean:
- rm -rf dist temp_build deepspeech.egg-info MANIFEST.in temp_lib
+ rm -rf dist temp_build stt.egg-info MANIFEST.in temp_lib
rm -f impl_wrap.cpp impl.py
# Enforce PATH here because swig calls from build_ext looses track of some
@@ -14,7 +14,7 @@ bindings-build: ds-swig
MANIFEST.in: bindings-build
> $@
- $(call copy_missing_libs,temp_build/deepspeech/*.so,temp_build/deepspeech/lib,$@)
+ $(call copy_missing_libs,temp_build/stt/*.so,temp_build/stt/lib,$@)
# On Unix, _wrap.o gets generated
# On Windows, _wrap.obj it is
diff --git a/native_client/tflitemodelstate.cc b/native_client/tflitemodelstate.cc
index eb8a476c..fe8d20ca 100644
--- a/native_client/tflitemodelstate.cc
+++ b/native_client/tflitemodelstate.cc
@@ -4,7 +4,7 @@
#ifdef __ANDROID__
#include
-#define LOG_TAG "libdeepspeech"
+#define LOG_TAG "libstt"
#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG, LOG_TAG, __VA_ARGS__)
#define LOGE(...) __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__)
#else
diff --git a/taskcluster/examples-base.tyml b/taskcluster/examples-base.tyml
index 11aa9267..8c2f3e7f 100644
--- a/taskcluster/examples-base.tyml
+++ b/taskcluster/examples-base.tyml
@@ -22,7 +22,7 @@ then:
DEEPSPEECH_AUDIO: "https://github.com/mozilla/DeepSpeech/releases/download/v0.4.1/audio-0.4.1.tar.gz"
PIP_DEFAULT_TIMEOUT: "60"
EXAMPLES_CLONE_URL: "https://github.com/coqui-ai/STT-examples"
- EXAMPLES_CHECKOUT_TARGET: "master"
+ EXAMPLES_CHECKOUT_TARGET: "main"
command:
- "/bin/bash"
diff --git a/taskcluster/win-opt-base.tyml b/taskcluster/win-opt-base.tyml
index 0eccf928..d67c98a8 100644
--- a/taskcluster/win-opt-base.tyml
+++ b/taskcluster/win-opt-base.tyml
@@ -30,7 +30,7 @@ payload:
MSYS: 'winsymlinks:nativestrict'
GIT_LFS_SKIP_SMUDGE: '1'
EXAMPLES_CLONE_URL: "https://github.com/coqui-ai/STT-examples"
- EXAMPLES_CHECKOUT_TARGET: "master"
+ EXAMPLES_CHECKOUT_TARGET: "main"
command:
- >-