Skip to main content

No project description provided

Project description

RWave

PyPi MIT License

A utility that handle audio for Python.

Usage

Simple Example

import rwave
# Load audio file
wave, fs = rwave.read_wave('wave file path')

# Write audio file
# (wave file path, wave data, fs)
rwave.write_wave('wave file path', wave, 16000)

# Nomalize wave data
rwave.nomalize(wave)
# => audio data normalized to 0~1

# Convert sampling rate (16000->8000)
wave, fs = rwave.convert_fs(wave, 16000, 8000)

# Convert audio length (->5.0s)
wave, fs = rwave.convert_fs(wave, 16000, 5.0)

# Convert to MFCC
mfcc = rwave.to_mfcc('wave file path', 16000)

Installation

$ pip install rwave

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/AjxLab/RWave.

Project details


Download files

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

Built Distribution

rwave-0.1.2-py3-none-any.whl (4.1 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page