File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 branches :
88 - develop
99 schedule :
10- - cron : ' 00 12 * * 1 ' # Monday 12 PM UTC
10+ - cron : ' 00 12 1 * * ' # First day of each month 12 PM UTC
1111concurrency :
1212 group : ci-${{ github.head_ref || github.run_id }}
1313 cancel-in-progress : true
2323 strategy :
2424 fail-fast : false
2525 matrix :
26- os : [ubuntu-latest, macos-latest, windows-latest]
27- exclude :
28- - os : ' windows-latest'
26+ os : [ubuntu-latest, macos-latest]
2927 name : Integration tests (${{ matrix.os }})
3028 runs-on : ${{ matrix.os }}
3129 timeout-minutes : 90
3735 - name : Setup CI
3836 uses : ./.github/actions/setup-repo
3937 with :
40- python-version : ' 3.8' # sync with default version in WORKSPACE.
38+ python-version : ' 3.11. 8' # sync with default version in WORKSPACE.
4139 - name : Install development dependencies and bindings
4240 run : |
4341 bazel run pypi_update
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ name: Submodule Updates
77on :
88 workflow_dispatch :
99 schedule :
10- - cron : ' 00 12 * * 1 ' # Monday 12 PM UTC
11-
10+ - cron : ' 00 12 1 * * ' # First day of each month 12 PM UTC
11+
1212# ##############
1313# Set the Job #
1414# ##############
Original file line number Diff line number Diff line change 77 pull_request :
88 branches :
99 - develop
10+ schedule :
11+ - cron : ' 00 12 1 * *' # First day of each month 12 PM UTC
1012concurrency :
1113 group : wheels-${{ github.head_ref || github.run_id }}
1214 cancel-in-progress : true
@@ -51,10 +53,11 @@ jobs:
5153 strategy :
5254 fail-fast : false
5355 matrix :
54- os : ['ubuntu-latest', 'macos-latest', 'windows-latest' ]
55- python-version : ['3.10', '3.11']
56+ os : ['ubuntu-latest', 'macos-latest']
57+ python-version : ['3.10', '3.11.8 ']
5658 exclude :
57- - os : ' windows-latest'
59+ - os : ' macos-latest'
60+ python-version : ' 3.10'
5861 steps :
5962 - name : Checkout
6063 uses : actions/checkout@v4
Original file line number Diff line number Diff line change @@ -136,3 +136,4 @@ bun.lockb
136136* .bin
137137
138138src /whispercpp /__about__.py
139+ .vscode /settings.json
Original file line number Diff line number Diff line change @@ -221,9 +221,9 @@ py_wheel(
221221 homepage = "https://github.com/aarnphm/whispercpp" ,
222222 license = "Apache 2.0" ,
223223 platform = select ({
224- "//:aarch64-apple-darwin" : "macosx_10_9_arm64 " ,
224+ "//:aarch64-apple-darwin" : "macosx_14_0_arm64 " ,
225225 "//:aarch64-unknown-linux-gnu" : "manylinux2014_aarch64" ,
226- "//:x86_64-apple-darwin" : "macosx_10_9_x86_64 " ,
226+ "//:x86_64-apple-darwin" : "macosx_14_0_x86_64 " ,
227227 "//:x86_64-pc-windows-msvc" : "win_amd64" ,
228228 "//:x86_64-unknown-linux-gnu" : "manylinux2014_x86_64" ,
229229 }),
Original file line number Diff line number Diff line change @@ -16,6 +16,5 @@ py_test(
1616 "//src/whispercpp:whispercpp_lib" ,
1717 requirement ("bazel-runfiles" ),
1818 requirement ("numpy" ),
19- requirement ("pydub" ),
2019 ],
2120)
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ def main(argv: list[str]) -> int:
3434 assert Path (path ).exists ()
3535 params = get_model ().params .with_print_realtime (True ).build ()
3636 assert _model is not None
37- _model .context .full (params , w .api .load_wav_file (Path (path ).__fspath__ ()). mono )
37+ _model .context .full (params , w .api .load_wav_file_mono (Path (path ).__fspath__ ()))
3838 return 0
3939
4040
Original file line number Diff line number Diff line change 1- pydub==0.25.1
21ruff
32black
43bazel-runfiles==0.19.0
@@ -10,4 +9,4 @@ pytest-xdist[psutil]
109pytest-asyncio
1110build
1211virtualenv
13- twine
12+ twine
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ def internal_deps():
9696 # Override python rules defined under @com_github_bentoml_plugins
9797 http_archive (
9898 name = "rules_python" ,
99- sha256 = "b0a45e1fdaade7ac4975a9dfa08a170b78e209ba717946f7d397a75dc8a9fda6 " ,
100- strip_prefix = "rules_python-4e3d01c9f6a6cda0fb34b7c2961d6b1ef5313218 " ,
101- url = "https://github.com/bazelbuild/rules_python/archive/4e3d01c9f6a6cda0fb34b7c2961d6b1ef5313218 .tar.gz" ,
99+ sha256 = "3d6fe72f1a056b3462f02afba5049210acbaec131087fb19082fa6792198a9fa " ,
100+ strip_prefix = "rules_python-084b877c98b580839ceab2b071b02fc6768f3de6 " ,
101+ url = "https://github.com/bazelbuild/rules_python/archive/084b877c98b580839ceab2b071b02fc6768f3de6 .tar.gz" ,
102102 )
Original file line number Diff line number Diff line change @@ -221,7 +221,7 @@ def transcribe_from_file(
221221 Transcribed text.
222222 """
223223 return self .transcribe (
224- api .load_wav_file (filename ). mono , num_proc = num_proc , strict = strict
224+ api .load_wav_file_mono (filename ), num_proc = num_proc , strict = strict
225225 )
226226
227227 def stream_transcribe (
You can’t perform that action at this time.
0 commit comments