Skip to main content

Cloud ASR tools for SonusAI

Project description

SonusAI ASR Cloud

Cloud ASR tools for SonusAI.

SonusAI ASR Cloud provides provider-specific adapters for cloud speech-to-text services and normalizes responses into SonusAI ASR result types.

Key Features

  • Multiple Cloud Providers: aiXplain Whisper, Deepgram, and SpeechRecognition (Google Cloud Speech API).
  • Unified Return Type: Provider outputs are normalized to ASRResult.
  • Validation Helpers: Each provider includes config/environment validation helpers.
  • SonusAI Integration: Uses SonusAI datatypes and utility helpers for audio conversion and output formatting.

Getting Started

Prerequisites

  • Python 3.13 or 3.14
  • uv

Install

uv sync
source .venv/bin/activate

Provider Requirements

  • aiXplain Whisper
    • Pass model in provider config.
    • Set environment variable: AIXP_WHISPER_<MODEL>.
  • Deepgram
    • Set environment variable: DEEPGRAM_API_KEY.
  • Google (SpeechRecognition)
    • Configure runtime credentials for Google Cloud Speech as required by the underlying backend.

Usage Notes

Provider functions live under sonusai_asr_cloud/asr_functions/ and expose:

  • *_validate(**config) for preflight checks.
  • provider call function (for example deepgram(audio, **config)) returning ASRResult.

Development

Common Commands

pytest
./build_wheels.sh
./publish.sh

Project Context

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sonusai_asr_cloud-1.3.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file sonusai_asr_cloud-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: sonusai_asr_cloud-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for sonusai_asr_cloud-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 55d20d80e028867439b52ad8b31de21cda0088f485c748946d7b2cf9d273494e
MD5 a6c8e097e311955bffedaa7dc45d6a73
BLAKE2b-256 0d946b1c45a99bc7e6e321c444f286c70f6c645878f0a7a57b4f173db9dcc1e9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page