Skip to main content

NOTE: Not affiliated with original authors of UTMOS!

Unofficial UTMOS Python Package

This is an unofficial Python package for UTMOS (UTokyo-SaruLab MOS Prediction System). This repository is based on the original code. The paper is available here.

What is UTMOS?

UTMOS is designed for calculating the mean opinion score (MOS) for a given voice sample. It can be used to calculate audio quality for datasets.

Note

The score is on a scale of 1 to 5. If you'd like a score on 1 to 100, just multiply the score by 20 (score * 20).

Example: new_score = round(score * 100, 2)

Support

This implementation supports CPU, CUDA, and MPS, as well as ROCm if PyTorch is configured properly. This implementation will automatically use the GPU if available.

Installation

pip install utmos

Usage

CLI (Command Line Interface)

utmos audio.wav

Python API

import utmos
model = utmos.Score() # The model will be automatically downloaded and will automatically utilize the GPU if available.
model.calculate_wav_file('audio_file.wav') # -> Float
# or model.calculate_wav(wav, sample_rate)

License

This software is licensed under the MIT license.

Metadata

Release files for utmos 1.1.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for utmos 1.1.10
File Size Uploaded Provenance
utmos-1.1.10.tar.gz 7.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for utmos 1.1.10
File Interpreter ABI Platform
utmos-1.1.10-py3-none-any.whl Python 3 none any Details

Total release size: 17.5 kB

Release files / utmos-1.1.10.tar.gz

Download URL utmos-1.1.10.tar.gz
Size 7.9 kB
Tags Source
SHA-256 checksum
How to use checksums
0141a1dbbdd65f8f62d17de63b29a045d0aed47e0e7a35081dd60dc60fc33f86
BLAKE2b-256 checksum
How to use checksums
19dcd248e9776ee7ae8a439d3ba70011b208cef86d28a91d96455de13adb98e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.19

Release files / utmos-1.1.10-py3-none-any.whl

Download URL utmos-1.1.10-py3-none-any.whl
Size 9.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
551b84c33a3dc0c5175cd7ca83839efdace5d4ac60fbf041b8680bb91151df60
BLAKE2b-256 checksum
How to use checksums
452b92e89033000755d437239da84e062eeeae464cbaafa2bc52ff028c609b84
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.19

Security for utmos 1.1.10

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page