Catalog PyPI
PACKAGE EXPLORERView in registry

abaxai-speech-client

PyPI

A Python3 client to connect and use Abax.AI Speech services

Versions collected1
Direct dependencies0From release 0.1.2
Last observed20 Oct, 17:11 UTC

README

Version 0.1.2 documentation

Project description

This is the speech client python package built by Abax.AI

It allows use to use speech to text services in both manners: offline and online

Online streaming will take audio stream in realtime, and return the transcripts on the fly

Offline transcribing will read your audio file, transcribe and return the transcripts in different formats.

Examples

Stream your audio file with python3

import io
from abaxai_sdk import streaming

accessToken = 'YOUR_ACCESS_TOKEN'


def get_wav_data(wavfile):
    for block in iter(lambda: wavfile.read(1280), b""):
        yield generate_block(block)

def generate_block(block):
    return block

def abaxai_streaming(stream_file):
    """Streams transcription of the given audio file."""

    client = streaming.SpeechClient()

    config = streaming.RecognitionConfig(
        encoding=streaming.AudioEncoding.LINEAR16,
        sample_rate_hertz=16000,
        language_code="en-US",
        model="basic_english",
    )

    streaming_config = streaming.StreamingRecognitionConfig(config, accessToken)

    # In practice, stream should be a generator yielding chunks of audio data.
    with io.open(stream_file, 'rb') as audiostream:
        data = get_wav_data(audiostream)
        requests = (
            streaming.StreamingRecognizeRequest(audio_content=chunk) for chunk in data
        )

        responses = client.streaming_recognize(
                        config=streaming_config,
                        requests=requests,
                )
        
        print("\n\nFinal transcripts: \n")
        for response in responses:
            print(response)


audio_file = "your_audio_file.wav"

print("Streaming the audio file")
abaxai_streaming(audio_file)

Transcribe your audio file with python3

from abaxai_sdk import transcribing

accessToken = 'YOUR_ACCESS_TOKEN'

def abaxai_transcribe(audio_filepath):
    """Streams transcription of the given audio file."""

    client = transcribing.SpeechClient()

    config = transcribing.RecognitionConfig(
        encoding=transcribing.AudioEncoding.LINEAR16,
        sample_rate_hertz=16000,
        language_code="en-US",
        model="wenet-english",
    )
    
    transcribing_config = transcribing.TranscribeConfig(config, accessToken)

    client.recognize(config=transcribing_config,
                        audiofilepath=audio_filepath,)
    
    # speechid = "<your_speech_id>"
    # client.get_transcription(speechid, accessToken)

    print("Done.")


audio_file = "your_audio_file.wav"

print("Transcribe the audio file")
abaxai_transcribe(audio_file)

Resources

Homepage: https://abax.ai/

Downloads & popularity

2downloads
1-day window · source-reported counts19 Oct 2026
36180
2026-07-22: 1 · observed 2026-10-20T17:41:17.7216754Z · period 2026-07-22–2026-07-222026-07-23: 4 · observed 2026-10-20T17:41:17.7216754Z · period 2026-07-23–2026-07-232026-07-24: 3 · observed 2026-10-20T17:41:17.7216754Z · period 2026-07-24–2026-07-242026-07-25: 2 · observed 2026-10-20T17:41:17.7216754Z · period 2026-07-25–2026-07-252026-07-26: 1 · observed 2026-10-20T17:41:17.7216754Z · period 2026-07-26–2026-07-262026-07-27: 2 · observed 2026-10-20T17:41:17.7216754Z · period 2026-07-27–2026-07-272026-07-28: 1 · observed 2026-10-20T17:41:17.7216754Z · period 2026-07-28–2026-07-282026-07-29: 14 · observed 2026-10-20T17:41:17.7216754Z · period 2026-07-29–2026-07-292026-08-01: 1 · observed 2026-10-20T17:41:17.7216754Z · period 2026-08-01–2026-08-012026-08-02: 1 · observed 2026-10-20T17:41:17.7216754Z · period 2026-08-02–2026-08-022026-08-03: 12 · observed 2026-10-20T17:41:17.7216754Z · period 2026-08-03–2026-08-032026-08-04: 6 · observed 2026-10-20T17:41:17.7216754Z · period 2026-08-04–2026-08-042026-08-06: 1 · observed 2026-10-20T17:41:17.7216754Z · period 2026-08-06–2026-08-062026-08-08: 1 · observed 2026-10-20T17:41:17.7216754Z · period 2026-08-08–2026-08-082026-08-09: 2 · observed 2026-10-20T17:41:17.7216754Z · period 2026-08-09–2026-08-092026-08-13: 2 · observed 2026-10-20T17:41:17.7216754Z · period 2026-08-13–2026-08-132026-08-14: 4 · observed 2026-10-20T17:41:17.7216754Z · period 2026-08-14–2026-08-142026-08-17: 6 · observed 2026-10-20T17:41:17.7216754Z · period 2026-08-17–2026-08-172026-08-18: 36 · observed 2026-10-20T17:41:17.7216754Z · period 2026-08-18–2026-08-182026-08-19: 2 · observed 2026-10-20T17:41:17.7216754Z · period 2026-08-19–2026-08-192026-08-20: 1 · observed 2026-10-20T17:41:17.7216754Z · period 2026-08-20–2026-08-202026-08-21: 2 · observed 2026-10-20T17:41:17.7216754Z · period 2026-08-21–2026-08-212026-08-23: 4 · observed 2026-10-20T17:41:17.7216754Z · period 2026-08-23–2026-08-232026-08-24: 12 · observed 2026-10-20T17:41:17.7216754Z · period 2026-08-24–2026-08-242026-08-25: 3 · observed 2026-10-20T17:41:17.7216754Z · period 2026-08-25–2026-08-252026-08-27: 1 · observed 2026-10-20T17:41:17.7216754Z · period 2026-08-27–2026-08-272026-08-28: 1 · observed 2026-10-20T17:41:17.7216754Z · period 2026-08-28–2026-08-282026-08-30: 1 · observed 2026-10-20T17:41:17.7216754Z · period 2026-08-30–2026-08-302026-08-31: 2 · observed 2026-10-20T17:41:17.7216754Z · period 2026-08-31–2026-08-312026-09-01: 1 · observed 2026-10-20T17:41:17.7216754Z · period 2026-09-01–2026-09-012026-09-03: 2 · observed 2026-10-20T17:41:17.7216754Z · period 2026-09-03–2026-09-032026-09-06: 4 · observed 2026-10-20T17:41:17.7216754Z · period 2026-09-06–2026-09-062026-09-07: 1 · observed 2026-10-20T17:41:17.7216754Z · period 2026-09-07–2026-09-072026-09-09: 2 · observed 2026-10-20T17:41:17.7216754Z · period 2026-09-09–2026-09-092026-09-10: 1 · observed 2026-10-20T17:41:17.7216754Z · period 2026-09-10–2026-09-102026-09-12: 1 · observed 2026-10-20T17:41:17.7216754Z · period 2026-09-12–2026-09-122026-09-13: 1 · observed 2026-10-20T17:41:17.7216754Z · period 2026-09-13–2026-09-132026-09-14: 1 · observed 2026-10-20T17:41:17.7216754Z · period 2026-09-14–2026-09-142026-09-17: 1 · observed 2026-10-20T17:41:17.7216754Z · period 2026-09-17–2026-09-172026-09-20: 2 · observed 2026-10-20T17:41:17.7216754Z · period 2026-09-20–2026-09-202026-09-22: 3 · observed 2026-10-20T17:41:17.7216754Z · period 2026-09-22–2026-09-222026-09-23: 3 · observed 2026-10-20T17:41:17.7216754Z · period 2026-09-23–2026-09-232026-09-24: 2 · observed 2026-10-20T17:41:17.7216754Z · period 2026-09-24–2026-09-242026-09-25: 1 · observed 2026-10-20T17:41:17.7216754Z · period 2026-09-25–2026-09-252026-09-26: 1 · observed 2026-10-20T17:41:17.7216754Z · period 2026-09-26–2026-09-262026-09-27: 3 · observed 2026-10-20T17:41:17.7216754Z · period 2026-09-27–2026-09-272026-09-28: 2 · observed 2026-10-20T17:41:17.7216754Z · period 2026-09-28–2026-09-282026-09-29: 3 · observed 2026-10-20T17:41:17.7216754Z · period 2026-09-29–2026-09-292026-09-30: 8 · observed 2026-10-20T17:41:17.7216754Z · period 2026-09-30–2026-09-302026-10-01: 3 · observed 2026-10-20T17:41:17.7216754Z · period 2026-10-01–2026-10-012026-10-02: 2 · observed 2026-10-20T17:41:17.7216754Z · period 2026-10-02–2026-10-022026-10-03: 1 · observed 2026-10-20T17:41:17.7216754Z · period 2026-10-03–2026-10-032026-10-06: 2 · observed 2026-10-20T17:41:17.7216754Z · period 2026-10-06–2026-10-062026-10-07: 2 · observed 2026-10-20T17:41:17.7216754Z · period 2026-10-07–2026-10-072026-10-08: 5 · observed 2026-10-20T17:41:17.7216754Z · period 2026-10-08–2026-10-082026-10-09: 7 · observed 2026-10-20T17:41:17.7216754Z · period 2026-10-09–2026-10-092026-10-10: 9 · observed 2026-10-20T17:41:17.7216754Z · period 2026-10-10–2026-10-102026-10-11: 8 · observed 2026-10-20T17:41:17.7216754Z · period 2026-10-11–2026-10-112026-10-12: 5 · observed 2026-10-20T17:41:17.7216754Z · period 2026-10-12–2026-10-122026-10-13: 1 · observed 2026-10-20T17:41:17.7216754Z · period 2026-10-13–2026-10-132026-10-15: 6 · observed 2026-10-20T17:41:17.7216754Z · period 2026-10-15–2026-10-152026-10-17: 7 · observed 2026-10-20T17:41:17.7216754Z · period 2026-10-17–2026-10-172026-10-18: 4 · observed 2026-10-20T17:41:17.7216754Z · period 2026-10-18–2026-10-182026-10-19: 2 · observed 2026-10-20T17:41:17.7216754Z · period 2026-10-19–2026-10-19
22 Jul19 Oct

pypistats · 64 observations shown. Missing days are unknown. Source category: overall: without mirrors.

View observed values
Date / source periodValueObserved at
2026-10-19 – 2026-10-1922026-10-20T17:41:17.7216754Z
2026-10-18 – 2026-10-1842026-10-20T17:41:17.7216754Z
2026-10-17 – 2026-10-1772026-10-20T17:41:17.7216754Z
2026-10-15 – 2026-10-1562026-10-20T17:41:17.7216754Z
2026-10-13 – 2026-10-1312026-10-20T17:41:17.7216754Z
2026-10-12 – 2026-10-1252026-10-20T17:41:17.7216754Z
2026-10-11 – 2026-10-1182026-10-20T17:41:17.7216754Z
2026-10-10 – 2026-10-1092026-10-20T17:41:17.7216754Z
2026-10-09 – 2026-10-0972026-10-20T17:41:17.7216754Z
2026-10-08 – 2026-10-0852026-10-20T17:41:17.7216754Z
2026-10-07 – 2026-10-0722026-10-20T17:41:17.7216754Z
2026-10-06 – 2026-10-0622026-10-20T17:41:17.7216754Z
2026-10-03 – 2026-10-0312026-10-20T17:41:17.7216754Z
2026-10-02 – 2026-10-0222026-10-20T17:41:17.7216754Z
2026-10-01 – 2026-10-0132026-10-20T17:41:17.7216754Z
2026-09-30 – 2026-09-3082026-10-20T17:41:17.7216754Z
2026-09-29 – 2026-09-2932026-10-20T17:41:17.7216754Z
2026-09-28 – 2026-09-2822026-10-20T17:41:17.7216754Z
2026-09-27 – 2026-09-2732026-10-20T17:41:17.7216754Z
2026-09-26 – 2026-09-2612026-10-20T17:41:17.7216754Z
2026-09-25 – 2026-09-2512026-10-20T17:41:17.7216754Z
2026-09-24 – 2026-09-2422026-10-20T17:41:17.7216754Z
2026-09-23 – 2026-09-2332026-10-20T17:41:17.7216754Z
2026-09-22 – 2026-09-2232026-10-20T17:41:17.7216754Z
2026-09-20 – 2026-09-2022026-10-20T17:41:17.7216754Z
2026-09-17 – 2026-09-1712026-10-20T17:41:17.7216754Z
2026-09-14 – 2026-09-1412026-10-20T17:41:17.7216754Z
2026-09-13 – 2026-09-1312026-10-20T17:41:17.7216754Z
2026-09-12 – 2026-09-1212026-10-20T17:41:17.7216754Z
2026-09-10 – 2026-09-1012026-10-20T17:41:17.7216754Z
2026-09-09 – 2026-09-0922026-10-20T17:41:17.7216754Z
2026-09-07 – 2026-09-0712026-10-20T17:41:17.7216754Z
2026-09-06 – 2026-09-0642026-10-20T17:41:17.7216754Z
2026-09-03 – 2026-09-0322026-10-20T17:41:17.7216754Z
2026-09-01 – 2026-09-0112026-10-20T17:41:17.7216754Z
2026-08-31 – 2026-08-3122026-10-20T17:41:17.7216754Z
2026-08-30 – 2026-08-3012026-10-20T17:41:17.7216754Z
2026-08-28 – 2026-08-2812026-10-20T17:41:17.7216754Z
2026-08-27 – 2026-08-2712026-10-20T17:41:17.7216754Z
2026-08-25 – 2026-08-2532026-10-20T17:41:17.7216754Z
2026-08-24 – 2026-08-24122026-10-20T17:41:17.7216754Z
2026-08-23 – 2026-08-2342026-10-20T17:41:17.7216754Z
2026-08-21 – 2026-08-2122026-10-20T17:41:17.7216754Z
2026-08-20 – 2026-08-2012026-10-20T17:41:17.7216754Z
2026-08-19 – 2026-08-1922026-10-20T17:41:17.7216754Z
2026-08-18 – 2026-08-18362026-10-20T17:41:17.7216754Z
2026-08-17 – 2026-08-1762026-10-20T17:41:17.7216754Z
2026-08-14 – 2026-08-1442026-10-20T17:41:17.7216754Z
2026-08-13 – 2026-08-1322026-10-20T17:41:17.7216754Z
2026-08-09 – 2026-08-0922026-10-20T17:41:17.7216754Z
2026-08-08 – 2026-08-0812026-10-20T17:41:17.7216754Z
2026-08-06 – 2026-08-0612026-10-20T17:41:17.7216754Z
2026-08-04 – 2026-08-0462026-10-20T17:41:17.7216754Z
2026-08-03 – 2026-08-03122026-10-20T17:41:17.7216754Z
2026-08-02 – 2026-08-0212026-10-20T17:41:17.7216754Z
2026-08-01 – 2026-08-0112026-10-20T17:41:17.7216754Z
2026-07-29 – 2026-07-29142026-10-20T17:41:17.7216754Z
2026-07-28 – 2026-07-2812026-10-20T17:41:17.7216754Z
2026-07-27 – 2026-07-2722026-10-20T17:41:17.7216754Z
2026-07-26 – 2026-07-2612026-10-20T17:41:17.7216754Z
2026-07-25 – 2026-07-2522026-10-20T17:41:17.7216754Z
2026-07-24 – 2026-07-2432026-10-20T17:41:17.7216754Z
2026-07-23 – 2026-07-2342026-10-20T17:41:17.7216754Z
2026-07-22 – 2026-07-2212026-10-20T17:41:17.7216754Z

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.221 Jun 20230

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
ntuspeechlab/asr-client-scripts

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 17:11 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:1c700299882652ec34cbd6aebf3a957a0725af0431c986bf81ebd2e8d9ac77d3