Aristech STT-Client for Python
This is the Python client implementation for the Aristech STT-Server.
Installation
pip install aristech-stt-client
Usage
from aristech_stt_client import SttClient, RecognitionConfig, RecognitionSpec
client = SttClient(
api_key=os.getenv('ARISTECH_STT_API_KEY', ''), # This is the default and can be omitted
)
results = client.recognize_file("path/to/audio/file.wav", RecognitionConfig(specification=RecognitionSpec(model="some-model")))
print('\n'.join([r.chunks[0].alternatives[0].text for r in results]))
There are several examples in the examples directory:
- recognize.py: Demonstrates how to perform recognition on a file.
- streaming.py: Demonstrates how to stream audio to the server while receiving interim results.
- models.py: Demonstrates how to get the available models from the server.
- nlpFunctions.py: Demonstrates how to list the configured NLP-Servers and the coresponding functions.
- nlpProcess.py: Demonstrates how to perform NLP processing on a text by using the STT-Server as a proxy.
- account.py: Demonstrates how to retrieve the account information from the server.
To run the examples while using the local version of the package, run the package with the PYTHONPATH environment variable set to the src directory:
PYTHONPATH=src python examples/streaming.py
API Key
If you didn't get an API key but a token, secret and host instead, you can simply convert those values with our API key generator.
Alternatively you can still provide the connection options manually.
from aristech_stt_client import SttClient
client = SttClient(host='stt.example.com:443', auth_token='your-token', auth_secret='your-secret')
Metadata
Release files for aristech-stt-client 2.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aristech_stt_client-2.4.1.tar.gz | 18.4 kB | Without provenance | Details for aristech_stt_client-2.4.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aristech_stt_client-2.4.1-py3-none-any.whl | Python 3 | none | any | Details for aristech_stt_client-2.4.1-py3-none-any.whl |
Total release size: 37.1 kB
Release files / aristech_stt_client-2.4.1.tar.gz
| Download URL | aristech_stt_client-2.4.1.tar.gz |
|---|---|
| Size | 18.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c26e313c3ff5e1bbc296c643bcc8e4f544a0a7cfc099040d612cfd2018d014cb
|
|
BLAKE2b-256 checksum How to use checksums |
422ce74ddf8d75acaf9ebc2683e48240396c449ca39d62a2b5f99cb7cdf586bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.6
|
Release files / aristech_stt_client-2.4.1-py3-none-any.whl
| Download URL | aristech_stt_client-2.4.1-py3-none-any.whl |
|---|---|
| Size | 18.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1a5e14a64fda8d8b1f6745f0def376f2e2f89646718f1f90bade105f58d82a60
|
|
BLAKE2b-256 checksum How to use checksums |
f3a7319545d7d7e4e703170f6d5924bdc6f5e51ae2bc8490dfc06a2edb4ddd52
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.6
|
Security for aristech-stt-client 2.4.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.