A python implementation of the LogMMSE speech enhancement/noise reduction alogrithm
Project description
The fork improved on the original version to support Python 3, fixed a few bugs, and made it importable from other Python scripts
logmmse
A python implementation of the LogMMSE speech enhancement/noise reduction alogrithm
Installation
pip install logmmse
Basic Example
from logmmse import logmmse_from_file
out = logmmse_from_file('sample.wav')
print(out)
API Reference
logmmse(data, sampling_rate, output_file=None, initial_noise=6, window_size=0, noise_threshold=0.15)
data (Mandatory)
A 1d or 2d (number of frames, channels) Numpy array representing the audio signal
Supported format: 32-bit floating-point, 32-bit PCM, 16-bit PCM, and 8-bit PCM, see https://docs.scipy.org/doc/scipy/reference/generated/scipy.io.wavfile.read.html
sampling_rate (Mandatory)
Sampling rate of the data (e.g. 16k/44.1 kHz)
output_filename
filename of the wave output. If none, no file would be generated
the output format would be the same as input
return
A 1d or 2d (number of frames, channels) Numpy array representing the enhanced signal
logmmse_from_file(data, output_filename=None, initial_noise=6, window_size=0, noise_threshold=0.15)
input_filename (Mandatory)
Filename of the wave input
supported format: 32-bit floating-point, 32-bit PCM, 16-bit PCM, and 8-bit PCM, see https://docs.scipy.org/doc/scipy/reference/generated/scipy.io.wavfile.read.html
output_filename
See above
return
A 1d or 2d (number of frames, channels) Numpy array representing the enhanced signal
Contribute
After opening an issue or pull request, please also send me an email for notification
Reference
This file has been ported from logmmse.m file found at the following link. https://raw.githubusercontent.com/braindead/Noise-reduction/master/logmmse.m
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
Built Distribution
File details
Details for the file logmmse-1.5.tar.gz
.
File metadata
- Download URL: logmmse-1.5.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7e2ce2fac5a01e725d151f747ffe639fd2db67af3bdf2a0bff8e5c0f1d4662e |
|
MD5 | 5c464b5569116a159966b368e86b5b55 |
|
BLAKE2b-256 | f29334fd650e516b69ad2d0dcb928cd03f7f0025e2d8ee1d963b2fcd5b12de2a |
File details
Details for the file logmmse-1.5-py3-none-any.whl
.
File metadata
- Download URL: logmmse-1.5-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24ecd4cc2bedf86aad98ca4ed57fa74ba8a226a97be1f7b68dc6c290c32dc879 |
|
MD5 | d624d53016e1f342267eaed5bf0c8806 |
|
BLAKE2b-256 | 1314ad63f2374bf38f0a0985cf7f3466f24fe91d4dfa66f5c9bed338c0503008 |