Skip to content

Commit db51ef4

Browse files
[pre-commit.ci] pre-commit autoupdate (#10)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/pycqa/isort: 5.12.0 → 5.13.2](PyCQA/isort@5.12.0...5.13.2) - [github.com/psf/black: 23.7.0 → 24.4.2](psf/black@23.7.0...24.4.2) - [github.com/codespell-project/codespell: v2.2.5 → v2.2.6](codespell-project/codespell@v2.2.5...v2.2.6) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent ee6f7f2 commit db51ef4

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.pre-commit-config.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@ ci:
33

44
repos:
55
- repo: https://github.com/pycqa/isort
6-
rev: 5.12.0
6+
rev: 5.13.2
77
hooks:
88
- id: isort
99

1010
- repo: https://github.com/psf/black
11-
rev: 23.7.0
11+
rev: 24.4.2
1212
hooks:
1313
- id: black
1414

1515
- repo: https://github.com/codespell-project/codespell
16-
rev: v2.2.5
16+
rev: v2.2.6
1717
hooks:
1818
- id: codespell
1919
files: ^.*\.(py|md|rst|yml)$

fish_audio_preprocess/utils/slice_audio_v2.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -221,9 +221,11 @@ def slice_audio_v2(
221221

222222
if len(audio) / rate < min_duration:
223223
sliced_by_max_duration_chunk = slice_by_max_duration(audio, max_duration, rate)
224-
yield from merge_short_chunks(
225-
sliced_by_max_duration_chunk, max_duration, rate
226-
) if merge_short else sliced_by_max_duration_chunk
224+
yield from (
225+
merge_short_chunks(sliced_by_max_duration_chunk, max_duration, rate)
226+
if merge_short
227+
else sliced_by_max_duration_chunk
228+
)
227229
return
228230

229231
slicer = Slicer(

0 commit comments

Comments
 (0)