Skip to main content

UT-Sarulab MOS prediction system using SSL models

Project description

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.

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

utmos-1.1.10.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

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

utmos-1.1.10-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file utmos-1.1.10.tar.gz.

File metadata

  • Download URL: utmos-1.1.10.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.19

File hashes

Hashes for utmos-1.1.10.tar.gz
Algorithm Hash digest
SHA256 0141a1dbbdd65f8f62d17de63b29a045d0aed47e0e7a35081dd60dc60fc33f86
MD5 624ddd51f4a83e209f702d13391967cd
BLAKE2b-256 19dcd248e9776ee7ae8a439d3ba70011b208cef86d28a91d96455de13adb98e1

See more details on using hashes here.

File details

Details for the file utmos-1.1.10-py3-none-any.whl.

File metadata

  • Download URL: utmos-1.1.10-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.19

File hashes

Hashes for utmos-1.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 551b84c33a3dc0c5175cd7ca83839efdace5d4ac60fbf041b8680bb91151df60
MD5 4239a4d9b91c106724045cfa4b040b35
BLAKE2b-256 452b92e89033000755d437239da84e062eeeae464cbaafa2bc52ff028c609b84

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