kaldigrpc-client


Namekaldigrpc-client JSON
Version 1.0.1 PyPI version JSON
download
home_pagehttps://github.com/georgepar/kaldi-grpc-server
SummaryPython client for Kaldi GRPC server
upload_time2023-01-03 14:51:24
maintainer
docs_urlNone
authorGiorgos Paraskevopoulos
requires_python>=3.8,<4.0
licenseMIT
keywords speech recognition kaldi grpc asr deployment streaming speech
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Kaldi gRPC client

Python client library for Kaldi gRPC server. This client has similar - identical - semantics to the
[Google speech Python library](https://cloud.google.com/speech-to-text/docs/libraries#client-libraries-install-python).


## Installation

You can install from source

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

or from Pypi

```bash
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.

```bash
kaldigrpc-transcribe --port 50051 $MY_WAV_FILE
```

For long files we recommend using the streaming client


```bash
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.

```python
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)
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/georgepar/kaldi-grpc-server",
    "name": "kaldigrpc-client",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8,<4.0",
    "maintainer_email": "",
    "keywords": "speech recognition,kaldi,grpc,asr,deployment,streaming speech",
    "author": "Giorgos Paraskevopoulos",
    "author_email": "geopar@central.ntua.gr",
    "download_url": "https://files.pythonhosted.org/packages/7b/7b/da10616bcadb044863515daafcab65459324be0fb82f2c6bc796f87e10a5/kaldigrpc_client-1.0.1.tar.gz",
    "platform": null,
    "description": "# Kaldi gRPC client\n\nPython client library for Kaldi gRPC server. This client has similar - identical - semantics to the\n[Google speech Python library](https://cloud.google.com/speech-to-text/docs/libraries#client-libraries-install-python).\n\n\n## Installation\n\nYou can install from source\n\n```bash\ngit clone https://github.com/georgepar/kaldi-grpc-server\ncd client\npip install .\n```\n\nor from Pypi\n\n```bash\npip install kaldigrpc-client\n```\n\n## Usage from command line\n\nWe assume you have a server running on port `50051`. See `kaldi-grpc-server` README for more\ninformation.\n\n```bash\nkaldigrpc-transcribe --port 50051 $MY_WAV_FILE\n```\n\nFor long files we recommend using the streaming client\n\n\n```bash\nkaldigrpc-transcribe --streaming --port 50051 $MY_WAV_FILE\n```\n\n## Programmatic usage\n\nThe following is a simple example for streaming recognition using the ILSPASRClient.\nYou can also refer to the code and the proto files for more configuration options and more outputs\n(e.g. confidence, word start and end times etc.)\n\n**Warning**: Some configuration options are included for compatibility / easy swapping with the Google Speech\nclient library but are not yet fully implemented. Please refer to the code for more details.\n\n```python\ncli = ILSPASRClient(host=\"localhost\", port=50051)\n\nchunks = ...  # list of audio chunks (bytes)\n\nfor partial_result in cli.streaming_recognize(chunks):\n    # Print best path partial transcription\n    print(partial_result.results[0].alternatives[0].transcript)\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Python client for Kaldi GRPC server",
    "version": "1.0.1",
    "split_keywords": [
        "speech recognition",
        "kaldi",
        "grpc",
        "asr",
        "deployment",
        "streaming speech"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e3f539945eacd977a762e6e0dfc4c7cd202248a075e860d570963388b6aef3a9",
                "md5": "9a8e8505488aebe1509b81c0484a8e6f",
                "sha256": "b40cfa8065d40fef8b071327e80059b210a0886617f9979ab514ba7427f1bf9c"
            },
            "downloads": -1,
            "filename": "kaldigrpc_client-1.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9a8e8505488aebe1509b81c0484a8e6f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8,<4.0",
            "size": 7686,
            "upload_time": "2023-01-03T14:51:22",
            "upload_time_iso_8601": "2023-01-03T14:51:22.597715Z",
            "url": "https://files.pythonhosted.org/packages/e3/f5/39945eacd977a762e6e0dfc4c7cd202248a075e860d570963388b6aef3a9/kaldigrpc_client-1.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7b7bda10616bcadb044863515daafcab65459324be0fb82f2c6bc796f87e10a5",
                "md5": "363a6bc5779cee6dfd4a3336246f5ecd",
                "sha256": "f29f31bf7ecfbcd7e138eb3c5c3e95bb1b2c6b61b32b7c0acb45726054e95d11"
            },
            "downloads": -1,
            "filename": "kaldigrpc_client-1.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "363a6bc5779cee6dfd4a3336246f5ecd",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8,<4.0",
            "size": 6735,
            "upload_time": "2023-01-03T14:51:24",
            "upload_time_iso_8601": "2023-01-03T14:51:24.387600Z",
            "url": "https://files.pythonhosted.org/packages/7b/7b/da10616bcadb044863515daafcab65459324be0fb82f2c6bc796f87e10a5/kaldigrpc_client-1.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-01-03 14:51:24",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "georgepar",
    "github_project": "kaldi-grpc-server",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "kaldigrpc-client"
}
        
Elapsed time: 0.03481s