Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

kaldigrpc-client

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kaldigrpc-client

Python client for Kaldi GRPC server

  • 1.0.1
  • PyPI
  • Socket score

Maintainers
1

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)

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc