Refactor whisper (#1131)

* refactor transcribe hook

* Fix stt setting

* remove deprecated files

* fix transcribe api

* may select model when transcribe using local

* refactor

* upgrade deps

* update echogarden check try to fix CI

* update echogarden check

* update CI
This commit is contained in:
an-lee
2024-10-17 09:13:04 +08:00
committed by GitHub
parent 9e974e977e
commit 62d6d84fc7
35 changed files with 630 additions and 14942 deletions

View File

@@ -20,7 +20,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [macos-12, macos-14, windows-latest]
os: [macos-12, macos-14, windows-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v4
@@ -47,17 +47,24 @@ jobs:
run: yarn enjoy:package
- name: Run main tests with xvfb-run on Ubuntu
continue-on-error: true
if: contains(matrix.os, 'ubuntu')
env:
DEBUG: pw:browser*
run: |
xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- yarn enjoy:test:main
- name: Run main tests on macOS or Windows
if: contains(matrix.os, 'macos') || contains(matrix.os, 'windows')
- name: Run main tests on Windows
continue-on-error: true
if: contains(matrix.os, 'windows')
run: yarn enjoy:test:main
- name: Run main tests on macOS
if: contains(matrix.os, 'macos')
run: yarn enjoy:test:main
- name: Run renderer tests with xvfb-run on Ubuntu
continue-on-error: true
if: contains(matrix.os, 'ubuntu')
run: |
xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- yarn enjoy:test:renderer