Skip to content

Commit 3925a50

Browse files
committed
reinstate aeneas for streching
1 parent 4258a5c commit 3925a50

File tree

4 files changed

+4
-9
lines changed

4 files changed

+4
-9
lines changed

.github/workflows/ci-pipeline.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
strategy:
1515
matrix:
16-
python-version: [3.9]
16+
python-version: [3.10]
1717

1818
steps:
1919
- uses: actions/checkout@v4
@@ -38,7 +38,7 @@ jobs:
3838
python -m mypy --follow-imports=normal subaligner
3939
- name: Linting
4040
run: |
41-
pycodestyle subaligner tests examples misc bin/subaligner bin/subaligner_1pass bin/subaligner_2pass bin/subaligner_batch bin/subaligner_convert bin/subaligner_train bin/subaligner_tune setup.py --ignore=E203,E501,E902,W503 --exclude="subaligner/lib"
41+
pycodestyle subaligner tests examples misc bin/subaligner bin/subaligner_1pass bin/subaligner_2pass bin/subaligner_batch bin/subaligner_convert bin/subaligner_train bin/subaligner_tune --ignore=E203,E501,E902,W503 --exclude="subaligner/lib"
4242
- name: Linting docstring
4343
run: |
4444
darglint -v 2 subaligner

README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,6 @@ Note that `subaligner[stretch]`, `subaligner[dev]` and `subaligner[harmony]` req
7070
<pre><code>apt-get install espeak libespeak1 libespeak-dev espeak-data</code></pre>
7171
<pre><code>brew install espeak</code></pre>
7272
</details>
73-
Also, if Python 3.12+ is used, you will need to install the following patch for those extras to fully function:
74-
<details>
75-
<summary>Install patched aeneas</summary>
76-
<pre><code>pip install git+https://github.com/baxtree/aeneas.git@v1.7.3.1#egg=aeneas</code></pre>
77-
</details>
7873

7974
## Container Support
8075
If you prefer using a containerised environment over installing everything locally:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ dev = [
139139
docs = [
140140
"sphinx==6.2.1",
141141
"sphinx-rtd-theme==2.0.0",
142-
"docutils<0.21",
142+
"docutils<0.22",
143143
]
144144
stretch = [
145145
"aeneas~=1.7.3.0; python_version < '3.12'",

subaligner/predictor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ def _predict_in_multithreads(
470470
gc.collect()
471471

472472
if stretch:
473-
subs_new = self.__compress_and_stretch(subs_new, audio_file_path, stretch_in_lang, lock)
473+
subs_new = self.__adjust_durations(subs_new, audio_file_path, stretch_in_lang, lock)
474474
self.__LOGGER.info("[{}] Segment {} stretched".format(os.getpid(), segment_index))
475475
return subs_new
476476
except Exception as e:

0 commit comments

Comments
 (0)