Skip to main content

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

Release files for logmmse 1.5

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

Source distribution (sdist)

Source distribution for logmmse 1.5
File Size Uploaded
logmmse-1.5.tar.gz 3.4 kB Details

Built distribution (wheel)

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

Total release size: 8.5 kB

Release files / logmmse-1.5.tar.gz

Download URL logmmse-1.5.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
b7e2ce2fac5a01e725d151f747ffe639fd2db67af3bdf2a0bff8e5c0f1d4662e
BLAKE2b-256 checksum
How to use checksums
f29334fd650e516b69ad2d0dcb928cd03f7f0025e2d8ee1d963b2fcd5b12de2a
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / logmmse-1.5-py3-none-any.whl

Download URL logmmse-1.5-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
24ecd4cc2bedf86aad98ca4ed57fa74ba8a226a97be1f7b68dc6c290c32dc879
BLAKE2b-256 checksum
How to use checksums
1314ad63f2374bf38f0a0985cf7f3466f24fe91d4dfa66f5c9bed338c0503008
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.5 This release

2 release files

1.4

2 release files

1.3

2 release files

1.2

2 release files

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