-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Yash Bhavsar
committed
Dec 23, 2024
0 parents
commit 5fb73d0
Showing
764 changed files
with
687,678 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
venv | ||
__pycache__ | ||
app/backend/diarizers | ||
app/docker_tmp | ||
app/home | ||
app/backend/data/generated_audio | ||
app/backend/split_audio | ||
app/backend/audio/*.wav | ||
# app/*.wav | ||
*.wav | ||
speech*.mp3 | ||
speech*.mp4 | ||
*.parquet |
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,3 @@ | ||
[submodule "app/backend/TTS"] | ||
path = app/backend/TTS | ||
url = https://github.com/ynb97/TTS-1 |
Large diffs are not rendered by default.
Oops, something went wrong.
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,3 @@ | ||
[submodule "app/backend/TTS"] | ||
path = app/backend/TTS | ||
url = https://github.com/ynb97/TTS-1 |
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,5 @@ | ||
linters: | ||
- pylint: | ||
# pylintrc: pylintrc | ||
filefilter: ['- test_*.py', '+ *.py', '- *.npy'] | ||
# exclude: |
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,9 @@ | ||
.git/ | ||
Dockerfile | ||
build/ | ||
dist/ | ||
TTS.egg-info/ | ||
tests/outputs/* | ||
tests/train_outputs/* | ||
__pycache__/ | ||
*.pyc |
85 changes: 85 additions & 0 deletions
85
app/app/backend/TTS/.github/ISSUE_TEMPLATE/bug_report.yaml
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,85 @@ | ||
name: "🐛 Bug report" | ||
description: Create a bug report to help 🐸 improve | ||
title: '[Bug] ' | ||
labels: [ "bug" ] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Welcome to the 🐸TTS! Thanks for taking the time to fill out this bug report! | ||
- type: textarea | ||
id: bug-description | ||
attributes: | ||
label: Describe the bug | ||
description: A clear and concise description of what the bug is. If you intend to submit a PR for this issue, tell us in the description. Thanks! | ||
placeholder: Bug description | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: reproduction | ||
attributes: | ||
label: To Reproduce | ||
description: | | ||
Please share your code to reproduce the error. | ||
Issues are fixed faster if you can provide a working example. | ||
The best place for sharing code is colab. https://colab.research.google.com/ | ||
So we can directly run your code and reproduce the issue. | ||
In the worse case, provide steps to reproduce the behavior. | ||
1. Run the following command '...' | ||
2. ... | ||
3. See error | ||
placeholder: Reproduction | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: expected-behavior | ||
attributes: | ||
label: Expected behavior | ||
description: "Write down what the expected behaviour" | ||
|
||
- type: textarea | ||
id: logs | ||
attributes: | ||
label: Logs | ||
description: "Please include the relevant logs if you can." | ||
render: shell | ||
|
||
- type: textarea | ||
id: system-info | ||
attributes: | ||
label: Environment | ||
description: | | ||
You can either run `TTS/bin/collect_env_info.py` | ||
```bash | ||
wget https://raw.githubusercontent.com/coqui-ai/TTS/main/TTS/bin/collect_env_info.py | ||
python collect_env_info.py | ||
``` | ||
or fill in the fields below manually. | ||
render: shell | ||
placeholder: | | ||
- 🐸TTS Version (e.g., 1.3.0): | ||
- PyTorch Version (e.g., 1.8) | ||
- Python version: | ||
- OS (e.g., Linux): | ||
- CUDA/cuDNN version: | ||
- GPU models and configuration: | ||
- How you installed PyTorch (`conda`, `pip`, source): | ||
- Any other relevant information: | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: context | ||
attributes: | ||
label: Additional context | ||
description: Add any other context about the problem here. | ||
validations: | ||
required: false |
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 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: CoquiTTS GitHub Discussions | ||
url: https://github.com/coqui-ai/TTS/discussions | ||
about: Please ask and answer questions here. | ||
- name: Coqui Security issue disclosure | ||
url: mailto:[email protected] | ||
about: Please report security vulnerabilities here. |
25 changes: 25 additions & 0 deletions
25
app/app/backend/TTS/.github/ISSUE_TEMPLATE/feature_request.md
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,25 @@ | ||
--- | ||
name: 🚀 Feature request | ||
about: Suggest a feature or an idea for this project | ||
title: '[Feature request] ' | ||
labels: feature request | ||
assignees: '' | ||
|
||
--- | ||
<!-- Welcome to the 🐸TTS project! | ||
We are excited to see your interest, and appreciate your support! ---> | ||
**🚀 Feature Description** | ||
|
||
<!--A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] --> | ||
|
||
**Solution** | ||
|
||
<!-- A clear and concise description of what you want to happen. --> | ||
|
||
**Alternative Solutions** | ||
|
||
<!-- A clear and concise description of any alternative solutions or features you've considered. --> | ||
|
||
**Additional context** | ||
|
||
<!-- Add any other context or screenshots about the feature request here. --> |
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,15 @@ | ||
# Pull request guidelines | ||
|
||
Welcome to the 🐸TTS project! We are excited to see your interest, and appreciate your support! | ||
|
||
This repository is governed by the Contributor Covenant Code of Conduct. For more details, see the [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md) file. | ||
|
||
In order to make a good pull request, please see our [CONTRIBUTING.md](CONTRIBUTING.md) file. | ||
|
||
Before accepting your pull request, you will be asked to sign a [Contributor License Agreement](https://cla-assistant.io/coqui-ai/TTS). | ||
|
||
This [Contributor License Agreement](https://cla-assistant.io/coqui-ai/TTS): | ||
|
||
- Protects you, Coqui, and the users of the code. | ||
- Does not change your rights to use your contributions for any purpose. | ||
- Does not change the license of the 🐸TTS project. It just makes the terms of your contribution clearer and lets us know you are OK to contribute. |
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,18 @@ | ||
# Number of days of inactivity before an issue becomes stale | ||
daysUntilStale: 30 | ||
# Number of days of inactivity before a stale issue is closed | ||
daysUntilClose: 7 | ||
# Issues with these labels will never be considered stale | ||
exemptLabels: | ||
- pinned | ||
- security | ||
# Label to use when marking an issue as stale | ||
staleLabel: wontfix | ||
# Comment to post when marking an issue as stale. Set to `false` to disable | ||
markComment: > | ||
This issue has been automatically marked as stale because it has not had | ||
recent activity. It will be closed if no further activity occurs. Thank you | ||
for your contributions. You might also look our discussion channels. | ||
# Comment to post when closing a stale issue. Set to `false` to disable | ||
closeComment: false | ||
|
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,51 @@ | ||
name: aux-tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
jobs: | ||
check_skip: | ||
runs-on: ubuntu-latest | ||
if: "! contains(github.event.head_commit.message, '[ci skip]')" | ||
steps: | ||
- run: echo "${{ github.event.head_commit.message }}" | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [3.9, "3.10", "3.11"] | ||
experimental: [false] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
architecture: x64 | ||
cache: 'pip' | ||
cache-dependency-path: 'requirements*' | ||
- name: check OS | ||
run: cat /etc/os-release | ||
- name: set ENV | ||
run: export TRAINER_TELEMETRY=0 | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y git make gcc | ||
make system-deps | ||
- name: Install/upgrade Python setup deps | ||
run: python3 -m pip install --upgrade pip setuptools wheel | ||
- name: Replace scarf urls | ||
run: | | ||
sed -i 's/https:\/\/coqui.gateway.scarf.sh\//https:\/\/github.com\/coqui-ai\/TTS\/releases\/download\//g' TTS/.models.json | ||
- name: Install TTS | ||
run: | | ||
python3 -m pip install .[all] | ||
python3 setup.py egg_info | ||
- name: Unit tests | ||
run: make test_aux |
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,51 @@ | ||
name: data-tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
jobs: | ||
check_skip: | ||
runs-on: ubuntu-latest | ||
if: "! contains(github.event.head_commit.message, '[ci skip]')" | ||
steps: | ||
- run: echo "${{ github.event.head_commit.message }}" | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [3.9, "3.10", "3.11"] | ||
experimental: [false] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
architecture: x64 | ||
cache: 'pip' | ||
cache-dependency-path: 'requirements*' | ||
- name: check OS | ||
run: cat /etc/os-release | ||
- name: set ENV | ||
run: export TRAINER_TELEMETRY=0 | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y --no-install-recommends git make gcc | ||
make system-deps | ||
- name: Install/upgrade Python setup deps | ||
run: python3 -m pip install --upgrade pip setuptools wheel | ||
- name: Replace scarf urls | ||
run: | | ||
sed -i 's/https:\/\/coqui.gateway.scarf.sh\//https:\/\/github.com\/coqui-ai\/TTS\/releases\/download\//g' TTS/.models.json | ||
- name: Install TTS | ||
run: | | ||
python3 -m pip install .[all] | ||
python3 setup.py egg_info | ||
- name: Unit tests | ||
run: make data_tests |
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,65 @@ | ||
name: "Docker build and push" | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
- dev | ||
tags: | ||
- v* | ||
jobs: | ||
docker-build: | ||
name: "Build and push Docker image" | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
matrix: | ||
arch: ["amd64"] | ||
base: | ||
- "nvidia/cuda:11.8.0-base-ubuntu22.04" # GPU enabled | ||
- "python:3.10.8-slim" # CPU only | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Log in to the Container registry | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Compute Docker tags, check VERSION file matches tag | ||
id: compute-tag | ||
run: | | ||
set -ex | ||
base="ghcr.io/coqui-ai/tts" | ||
tags="" # PR build | ||
if [[ ${{ matrix.base }} = "python:3.10.8-slim" ]]; then | ||
base="ghcr.io/coqui-ai/tts-cpu" | ||
fi | ||
if [[ "${{ startsWith(github.ref, 'refs/heads/') }}" = "true" ]]; then | ||
# Push to branch | ||
github_ref="${{ github.ref }}" | ||
branch=${github_ref#*refs/heads/} # strip prefix to get branch name | ||
tags="${base}:${branch},${base}:${{ github.sha }}," | ||
elif [[ "${{ startsWith(github.ref, 'refs/tags/') }}" = "true" ]]; then | ||
VERSION="v$(cat TTS/VERSION)" | ||
if [[ "${{ github.ref }}" != "refs/tags/${VERSION}" ]]; then | ||
echo "Pushed tag does not match VERSION file. Aborting push." | ||
exit 1 | ||
fi | ||
tags="${base}:${VERSION},${base}:latest,${base}:${{ github.sha }}" | ||
fi | ||
echo "::set-output name=tags::${tags}" | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v1 | ||
- name: Set up Docker Buildx | ||
id: buildx | ||
uses: docker/setup-buildx-action@v1 | ||
- name: Build and push | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: . | ||
platforms: linux/${{ matrix.arch }} | ||
push: ${{ github.event_name == 'push' }} | ||
build-args: "BASE=${{ matrix.base }}" | ||
tags: ${{ steps.compute-tag.outputs.tags }} |
Oops, something went wrong.