transcribe-cpp-native 0.0.3__py3-none-macosx_11_0_arm64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- transcribe_cpp_native/__init__.py +31 -0
- transcribe_cpp_native/_contract.py +15 -0
- transcribe_cpp_native/_native/contract.json +6 -0
- transcribe_cpp_native/_native/libggml-base.dylib +0 -0
- transcribe_cpp_native/_native/libggml-cpu.dylib +0 -0
- transcribe_cpp_native/_native/libggml-metal.dylib +0 -0
- transcribe_cpp_native/_native/libggml.dylib +0 -0
- transcribe_cpp_native/_native/libtranscribe.dylib +0 -0
- transcribe_cpp_native-0.0.3.dist-info/METADATA +51 -0
- transcribe_cpp_native-0.0.3.dist-info/RECORD +14 -0
- transcribe_cpp_native-0.0.3.dist-info/WHEEL +6 -0
- transcribe_cpp_native-0.0.3.dist-info/entry_points.txt +3 -0
- transcribe_cpp_native-0.0.3.dist-info/licenses/LICENSE +21 -0
- transcribe_cpp_native-0.0.3.dist-info/licenses/ggml/LICENSE +21 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"""transcribe-cpp-native: prebuilt native artifact for the transcribe-cpp bindings.
|
|
2
|
+
|
|
3
|
+
This package contains no Python API. It bundles the native ``transcribe``
|
|
4
|
+
shared library (plus its ggml libraries and any dynamic backend modules) in
|
|
5
|
+
``_native/`` and advertises it to the pure-Python ``transcribe-cpp`` package
|
|
6
|
+
through the ``transcribe_cpp.native`` entry point declared in pyproject.toml.
|
|
7
|
+
|
|
8
|
+
``descriptor()`` returns the provider contract the binding validates before
|
|
9
|
+
dlopen — see bindings/python/src/transcribe_cpp/_library.py for the consuming
|
|
10
|
+
side. ``_contract.py`` is generated at build time by CMake
|
|
11
|
+
(cmake/python-wheel-install.cmake) and stamps the native library version, the
|
|
12
|
+
public-header hash the FFI layer was generated from, and the backend kinds
|
|
13
|
+
this artifact was built with.
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
from __future__ import annotations
|
|
17
|
+
|
|
18
|
+
from pathlib import Path
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
def descriptor() -> dict:
|
|
22
|
+
"""The transcribe_cpp.native provider contract for this package."""
|
|
23
|
+
from . import _contract
|
|
24
|
+
|
|
25
|
+
return {
|
|
26
|
+
"name": "transcribe-cpp-native",
|
|
27
|
+
"artifact_dir": str(Path(__file__).resolve().parent / "_native"),
|
|
28
|
+
"version": _contract.VERSION,
|
|
29
|
+
"header_hash": _contract.PUBLIC_HEADER_HASH,
|
|
30
|
+
"backends": list(_contract.BACKENDS),
|
|
31
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"""Build-time provider contract stamp. Generated by CMake — do not edit.
|
|
2
|
+
|
|
3
|
+
See cmake/python-wheel-install.cmake for how each value is derived.
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
#: Native library version (TRANSCRIBE_VERSION_* macros in include/transcribe.h).
|
|
7
|
+
VERSION = "0.0.3"
|
|
8
|
+
|
|
9
|
+
#: Public-header digest the committed FFI layer (_generated.py) was generated
|
|
10
|
+
#: from. The binding refuses to load a provider built against a different ABI.
|
|
11
|
+
PUBLIC_HEADER_HASH = "2273744299e5aa65"
|
|
12
|
+
|
|
13
|
+
#: Backend kinds compiled into this artifact (modules may still degrade to
|
|
14
|
+
#: unavailable at runtime, e.g. Vulkan without a loader/driver).
|
|
15
|
+
BACKENDS = ("metal", "cpu",)
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: transcribe-cpp-native
|
|
3
|
+
Version: 0.0.3
|
|
4
|
+
Summary: Prebuilt native library for transcribe-cpp (speech-to-text, ggml)
|
|
5
|
+
Keywords: transcription,speech-to-text,asr,ggml,native
|
|
6
|
+
Author: The transcribe.cpp authors
|
|
7
|
+
License-Expression: MIT
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
License-File: ggml/LICENSE
|
|
10
|
+
Classifier: Development Status :: 1 - Planning
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Topic :: Multimedia :: Sound/Audio :: Speech
|
|
14
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
15
|
+
Project-URL: Homepage, https://github.com/handy-computer/transcribe.cpp
|
|
16
|
+
Project-URL: Repository, https://github.com/handy-computer/transcribe.cpp
|
|
17
|
+
Project-URL: Issues, https://github.com/handy-computer/transcribe.cpp/issues
|
|
18
|
+
Requires-Python: >=3.9
|
|
19
|
+
Description-Content-Type: text/markdown
|
|
20
|
+
|
|
21
|
+
# transcribe-cpp-native
|
|
22
|
+
|
|
23
|
+
Prebuilt native library for [`transcribe-cpp`](https://pypi.org/project/transcribe-cpp/),
|
|
24
|
+
the Python bindings for [transcribe.cpp](https://github.com/handy-computer/transcribe.cpp)
|
|
25
|
+
(local speech-to-text on ggml).
|
|
26
|
+
|
|
27
|
+
You normally don't install this directly — `pip install transcribe-cpp`
|
|
28
|
+
depends on it. It carries no Python API; it bundles the `libtranscribe`
|
|
29
|
+
shared library plus its ggml backend libraries and registers them with the
|
|
30
|
+
bindings via the `transcribe_cpp.native` entry point.
|
|
31
|
+
|
|
32
|
+
What each artifact ships:
|
|
33
|
+
|
|
34
|
+
| Artifact | Backends |
|
|
35
|
+
| --- | --- |
|
|
36
|
+
| Linux x86_64 wheel | CPU (conservative baseline) + Vulkan backend module |
|
|
37
|
+
| Windows x86_64 wheel | CPU (conservative baseline) + Vulkan backend module |
|
|
38
|
+
| macOS arm64 wheel | Metal (embedded shaders) + CPU |
|
|
39
|
+
| sdist | builds from source; machine-tuned CPU by default, backends via `CMAKE_ARGS` |
|
|
40
|
+
|
|
41
|
+
The Vulkan backend ships as a dynamic ggml module: on machines without a
|
|
42
|
+
Vulkan loader or driver it simply fails to load and CPU keeps working — no
|
|
43
|
+
crash, no import error. Specialized providers (e.g. CUDA) are separate
|
|
44
|
+
packages installed alongside this one via extras of `transcribe-cpp`.
|
|
45
|
+
|
|
46
|
+
Building from the sdist requires CMake ≥ 3.21, Ninja, and a C++17 compiler;
|
|
47
|
+
backend selection follows the repo's CMake options, e.g.:
|
|
48
|
+
|
|
49
|
+
```sh
|
|
50
|
+
CMAKE_ARGS="-DTRANSCRIBE_VULKAN=ON" pip install --no-binary :all: transcribe-cpp-native
|
|
51
|
+
```
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
transcribe_cpp_native-0.0.3.dist-info/RECORD,,
|
|
2
|
+
transcribe_cpp_native-0.0.3.dist-info/WHEEL,sha256=8Shx16wLrKGRX_x1nwftmn23AXQ2PYVM-uuv6BmjFog,138
|
|
3
|
+
transcribe_cpp_native-0.0.3.dist-info/entry_points.txt,sha256=QtKCL-PqNGcx5OiLyWdYQ9Ctx7N-Syc-rD5kJOirAZg,68
|
|
4
|
+
transcribe_cpp_native-0.0.3.dist-info/METADATA,sha256=9C_da_5r_DI2E86aF7dY167CU2rD6mbDldmXlIEg5K0,2264
|
|
5
|
+
transcribe_cpp_native-0.0.3.dist-info/licenses/LICENSE,sha256=hqU2M7VvawKdPLQhWLzHqsDN_4mKzrE-g7k-Nou8SsY,1083
|
|
6
|
+
transcribe_cpp_native-0.0.3.dist-info/licenses/ggml/LICENSE,sha256=lPKbvtaiLDW5ksXG6_DnyS8TuDa5Dzb0YcnPLw8dAQ0,1078
|
|
7
|
+
transcribe_cpp_native/__init__.py,sha256=4OyIBPISGhelW0ydyK6bKwfqpRU06Yn46Gp_Dl23UG0,1255
|
|
8
|
+
transcribe_cpp_native/_contract.py,sha256=dC-S9UTefBjeCQC3R6ko-LLXg08U6X34i5rTEMkswtk,616
|
|
9
|
+
transcribe_cpp_native/_native/libggml.dylib,sha256=al9iVWLxy0iEP3WVny4RiQH5t2cAxrINu0VGaW3x9jI,90896
|
|
10
|
+
transcribe_cpp_native/_native/libggml-base.dylib,sha256=Qb52UPWcL1PSEZ78LwS2rNarlTeEjhWajZoPRaU2jF0,571968
|
|
11
|
+
transcribe_cpp_native/_native/libggml-cpu.dylib,sha256=5EhbFp3mZdkBqcOxNUazlLddnMaglnw8EiNWRqW6v1A,787584
|
|
12
|
+
transcribe_cpp_native/_native/libggml-metal.dylib,sha256=d_Y-zNL7Skj9-BRy1U-Lo5tIpYKLoKt-ytzPI2Vbsrs,799760
|
|
13
|
+
transcribe_cpp_native/_native/libtranscribe.dylib,sha256=rYQBho6nLayiY0XIR7Wqgz6DkOe5VdCBcVpmkqxFoUE,1216768
|
|
14
|
+
transcribe_cpp_native/_native/contract.json,sha256=PtWi-ZK_DMLnfeqLWzAYbsgZ35ZmQ6gmFjB24HixBfU,113
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 The transcribe.cpp authors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023-2026 The ggml authors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|