-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from neocl/dev
Dev
- Loading branch information
Showing
13 changed files
with
445 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,5 +14,6 @@ Contents | |
:maxdepth: 2 | ||
|
||
api_elan | ||
api_media | ||
api_ttl | ||
api_vtt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
.. _page_vtt: | ||
|
||
Media module | ||
============ | ||
|
||
|
||
.. automodule:: speach.media | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
.. _conduct: | ||
|
||
Contributor Covenant Code of Conduct | ||
==================================== | ||
|
||
Our Pledge | ||
---------- | ||
|
||
In the interest of fostering an open and welcoming environment, we as | ||
contributors and maintainers pledge to make participation in our project | ||
and our community a harassment-free experience for everyone, regardless | ||
of age, body size, disability, ethnicity, sex characteristics, gender | ||
identity and expression, level of experience, education, socio-economic | ||
status, nationality, personal appearance, race, religion, or sexual | ||
identity and orientation. | ||
|
||
Our Standards | ||
------------- | ||
|
||
Examples of behavior that contributes to creating a positive environment | ||
include: | ||
|
||
- Using welcoming and inclusive language | ||
- Being respectful of differing viewpoints and experiences | ||
- Gracefully accepting constructive criticism | ||
- Focusing on what is best for the community | ||
- Showing empathy towards other community members | ||
|
||
Examples of unacceptable behavior by participants include: | ||
|
||
- The use of sexualized language or imagery and unwelcome sexual | ||
attention or advances | ||
- Trolling, insulting/derogatory comments, and personal or political | ||
attacks | ||
- Public or private harassment | ||
- Publishing others’ private information, such as a physical or | ||
electronic address, without explicit permission | ||
- Other conduct which could reasonably be considered inappropriate in a | ||
professional setting | ||
|
||
Our Responsibilities | ||
-------------------- | ||
|
||
Project maintainers are responsible for clarifying the standards of | ||
acceptable behavior and are expected to take appropriate and fair | ||
corrective action in response to any instances of unacceptable behavior. | ||
|
||
Project maintainers 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, or to ban | ||
temporarily or permanently any contributor for other behaviors that they | ||
deem inappropriate, threatening, offensive, or harmful. | ||
|
||
Scope | ||
----- | ||
|
||
This Code of Conduct applies within all project spaces, and it also | ||
applies when an individual is representing the project or its community | ||
in public spaces. Examples of representing a project or community | ||
include using an official project e-mail address, posting via an | ||
official social media account, or acting as an appointed representative | ||
at an online or offline event. Representation of a project may be | ||
further defined and clarified by project maintainers. | ||
|
||
Enforcement | ||
----------- | ||
|
||
Instances of abusive, harassing, or otherwise unacceptable behavior may | ||
be reported by contacting the project team at <neocl@dakside.org>. | ||
All complaints will be reviewed and investigated and will result in a | ||
response that is deemed necessary and appropriate to the circumstances. | ||
The project team is obligated to maintain confidentiality with regard to | ||
the reporter of an incident. Further details of specific enforcement | ||
policies may be posted separately. | ||
|
||
Project maintainers who do not follow or enforce the Code of Conduct in | ||
good faith may face temporary or permanent repercussions as determined | ||
by other members of the project’s leadership. | ||
|
||
Attribution | ||
----------- | ||
|
||
This Code of Conduct is adapted from the `Contributor | ||
Covenant <https://www.contributor-covenant.org>`__, version 1.4, | ||
available at | ||
https://www.contributor-covenant.org/version/1/4/code-of-conduct.html | ||
|
||
For answers to common questions about this code of conduct, see | ||
https://www.contributor-covenant.org/faq |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
.. _contributing: | ||
|
||
Contributing | ||
============ | ||
|
||
There are many ways to contribute to ``speach``. | ||
Currently development team are focusing on: | ||
|
||
- Improving :ref:`documentation <contrib_docs>` | ||
- Improving ELAN support | ||
- Fixing bugs :ref:`existing bugs <contrib_bugfix>` | ||
|
||
If you have some suggestions or bug reports, please share on `speach issues tracker <https://github.com/neocl/speach/issues>`_. | ||
|
||
Code of conduct | ||
--------------- | ||
|
||
Please read our :ref:`contributor code of conduct <conduct>` for more information. | ||
|
||
.. _contrib_bugfix: | ||
|
||
Fixing bugs | ||
----------- | ||
|
||
If you found a bug please report at https://github.com/neocl/speach/issues | ||
|
||
When it is possible, please also share how to reproduce the bugs to help with the bug finding process. | ||
|
||
Pull requests are welcome. | ||
|
||
.. _contrib_docs: | ||
|
||
Updating Documentation | ||
---------------------- | ||
|
||
1. Fork `speach <https://github.com/neocl/speach>`_ repository to your own Github account. | ||
|
||
#. Clone `speach` repository to your local machine. | ||
|
||
.. code:: bash | ||
git clone https://github.com/<your-account-name>/speach | ||
#. Create a virtual environment (optional, but highly recommended) | ||
|
||
.. code:: bash | ||
# if you use virtualenvwrapper | ||
mkvirtualenv speach | ||
workon speach | ||
# if you use Python venv | ||
python3 -m venv .env | ||
. .env/bin/activate | ||
python3 -m pip install --upgrade pip wheel Sphinx | ||
#. Build the docs | ||
|
||
.. code:: bash | ||
cd speach/docs | ||
# compile the docs | ||
make dirhtml | ||
# serve the docs using Python3 built-in development server | ||
# Note: this requires Python >= 3.7 to support --directory | ||
python3 -m http.server 7000 --directory _build/dirhtml | ||
# if you use earlier Python 3, you may use | ||
cd _build/dirhtml | ||
python3 -m http.server 7000 | ||
#. Now the docs should be ready to view at http://localhost:7000 . You can visit that URL on your browser to view the docs. | ||
|
||
#. More information: | ||
|
||
- Sphinx tutorial: https://sphinx-tutorial.readthedocs.io/start/ | ||
- Using `virtualenv`: https://virtualenvwrapper.readthedocs.io/en/latest/install.html | ||
- Using `venv`: https://docs.python.org/3/library/venv.html | ||
|
||
.. _contrib_dev: | ||
|
||
Development | ||
----------- | ||
|
||
Development contributions are welcome. | ||
Setting up development environment for speach should be similar to :ref:`contrib_docs`. | ||
|
||
Please contact the development team if you need more information: https://github.com/neocl/speach/issues |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Media processing | ||
================ | ||
|
||
Media module can be used to process audio and video files (converting, merging, cutting, et cetera). | ||
``speach.media`` use ffmpeg underneath. | ||
|
||
Installing ffmpeg | ||
----------------- | ||
|
||
.. note:: | ||
To be updated | ||
|
||
Sample code | ||
----------- | ||
|
||
.. code:: python | ||
from speach import media | ||
print(media.version()) | ||
print(media.locate_ffmpeg()) | ||
media.convert("infile.mp3", "outfile.wav") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
.. _updates: | ||
|
||
Updates | ||
======= | ||
|
||
2021-04-30 | ||
---------- | ||
|
||
- Package :ref:`Victoria Chua <contributors>`'s media processing code into ``speach.media`` module. | ||
|
||
2021-04-28 | ||
---------- | ||
|
||
- Initial release on PyPI |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.