Skip to main content

Python SDK for the NuVox TTS evaluation API

Project description

NuVox Python SDK

Python client for the NuVox TTS evaluation API.

Install

pip install nuvox

Quick Start

from nuvox import NuVox

client = NuVox(api_key="nvx_your_key")

# Audio-only evaluation
result = client.evaluate.audio("speech.wav")
print(result.metrics.utmos.value)    # 4.15
print(result.metrics.snr.value)      # 64.3
print(result.metrics.nisqa.overall)  # 3.82

# Audio + transcript evaluation
result = client.evaluate.audio_text("speech.wav", "Hello, welcome to NuVox.")
print(result.metrics.wer.value)      # 0.05
print(result.metrics.bleu.value)     # 0.92

Metrics

Metric Requires Measures
UTMOS Audio Predicted naturalness MOS (1-5)
SNR Audio Signal-to-noise ratio (dB)
NISQA Audio Multi-dim quality: coloration, discontinuity, noisiness, loudness
Pitch Range Audio Monotone/robotic detection (Hz std)
WER Audio+Text Word error rate
CER Audio+Text Character error rate
BLEU Audio+Text N-gram overlap score
Semantic Similarity Audio+Text Meaning preservation
Speaking Rate Audio+Text Words per minute

Environment Variable

Instead of passing api_key, set NUVOX_API_KEY:

export NUVOX_API_KEY=nvx_your_key
client = NuVox()  # picks up from env

License

MIT

Project details


Download files

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

Source Distribution

nuvox-0.1.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

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

nuvox-0.1.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file nuvox-0.1.0.tar.gz.

File metadata

  • Download URL: nuvox-0.1.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for nuvox-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9da25d1b346eec7b08d254be5683cebd2d593260dd63cc48ad87859943eca3db
MD5 3c03e476e64ff49deeeac99eb2e93426
BLAKE2b-256 946dcc738062e4ac83754f2cd81da6c2cea6d24330c9fcb0ff6a3f1678fa9631

See more details on using hashes here.

File details

Details for the file nuvox-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: nuvox-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for nuvox-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0fd0a095caa15a16d4d56cae4a344c1ff4e6a89ccc5503cada9f472b06ca420d
MD5 279ac526c85ae148a8fc9152b4888937
BLAKE2b-256 a1d898da61c8306ccdd05fccea570254546a87a11324b5aec040de3bb34d503a

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