Skip to main content

Kaldi gRPC client

Python client library for Kaldi gRPC server. This client has similar - identical - semantics to the Google speech Python library.

Installation

You can install from source

git clone https://github.com/georgepar/kaldi-grpc-server
cd client
pip install .

or from Pypi

pip install kaldigrpc-client

Usage from command line

We assume you have a server running on port 50051. See kaldi-grpc-server README for more information.

kaldigrpc-transcribe --port 50051 $MY_WAV_FILE

For long files we recommend using the streaming client

kaldigrpc-transcribe --streaming --port 50051 $MY_WAV_FILE

Programmatic usage

The following is a simple example for streaming recognition using the ILSPASRClient. You can also refer to the code and the proto files for more configuration options and more outputs (e.g. confidence, word start and end times etc.)

Warning: Some configuration options are included for compatibility / easy swapping with the Google Speech client library but are not yet fully implemented. Please refer to the code for more details.

cli = ILSPASRClient(host="localhost", port=50051)

chunks = ...  # list of audio chunks (bytes)

for partial_result in cli.streaming_recognize(chunks):
    # Print best path partial transcription
    print(partial_result.results[0].alternatives[0].transcript)

Metadata

Release files for kaldigrpc-client 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kaldigrpc-client 1.0.1
File Size Uploaded Provenance Actions
kaldigrpc_client-1.0.1.tar.gz 6.7 kB Without provenance Details for kaldigrpc_client-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kaldigrpc-client 1.0.1
File Interpreter ABI Platform Actions
kaldigrpc_client-1.0.1-py3-none-any.whl Python 3 none any Details for kaldigrpc_client-1.0.1-py3-none-any.whl

Total release size: 14.4 kB

Release files / kaldigrpc_client-1.0.1.tar.gz

Download URL kaldigrpc_client-1.0.1.tar.gz
Size 6.7 kB
Tags Source
SHA-256 checksum
How to use checksums
f29f31bf7ecfbcd7e138eb3c5c3e95bb1b2c6b61b32b7c0acb45726054e95d11
BLAKE2b-256 checksum
How to use checksums
7b7bda10616bcadb044863515daafcab65459324be0fb82f2c6bc796f87e10a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.8.10 Linux/5.14.16-zen1-1-zen

Release files / kaldigrpc_client-1.0.1-py3-none-any.whl

Download URL kaldigrpc_client-1.0.1-py3-none-any.whl
Size 7.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b40cfa8065d40fef8b071327e80059b210a0886617f9979ab514ba7427f1bf9c
BLAKE2b-256 checksum
How to use checksums
e3f539945eacd977a762e6e0dfc4c7cd202248a075e860d570963388b6aef3a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.8.10 Linux/5.14.16-zen1-1-zen

Security for kaldigrpc-client 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page