mirror of
https://github.com/2noise/ChatTTS.git
synced 2026-08-29 02:10:59 +08:00
fix(workflow): make ci happy
This commit is contained in:
@@ -57,10 +57,8 @@ jobs:
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
|
||||
- name: Set up Python 3.10
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: 3.10
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
|
||||
- name: Install Black
|
||||
run: pip install "black[jupyter]"
|
||||
|
||||
@@ -17,10 +17,10 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v4
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
|
||||
|
||||
- name: Install Dependents
|
||||
run: |
|
||||
sudo apt-get install -y portaudio19-dev python3-pyaudio
|
||||
|
||||
+2
-2
@@ -42,12 +42,12 @@ for i, result in enumerate(gen_result):
|
||||
if wav is None:
|
||||
continue
|
||||
logger.info("iter %d index %d len %d", i, j, len(wav))
|
||||
if len(wav) == 12032:
|
||||
if len(wav) == 12000:
|
||||
continue
|
||||
if not has_finished[j]:
|
||||
has_finished[j] = True
|
||||
logger.warning(
|
||||
"iter %d index %d finished with non-12032 len %d", i, j, len(wav)
|
||||
"iter %d index %d finished with non-12000 len %d", i, j, len(wav)
|
||||
)
|
||||
else:
|
||||
logger.warning(
|
||||
|
||||
Reference in New Issue
Block a user