Skip to main content

A non-official implementation of the Complex Ratio Mask (CRM) technique as a Tensorflow layer.

Project description

A non-official implementation of the Complex Ratio Mask (CRM) technique as a Tensorflow layer.

Implementation of the the Complex Ratio Mask (CRM) technique used in "DCCRN: Deep Complex Convolution Recurrent Network for Phase-Aware Speech Enhancement".

Installlation

pip install CRM_tensorflow

Usage

import tensorflow as tf 
from CRM_tensorflow import ComplexRatioMask

# Input parameters
time_dim = 100
freq_dim = 257
batch_size = 100

# Define layer
crm_layer = ComplexRatioMask(masking_mode='E') # Other modes include 'C' and 'R'. See paper for more information.

# Random noisy signal split in real and imag. components
random_spectrogram_real = tf.random.normal((batch_size,time_dim, freq_dim))
random_spectrogram_imag = tf.random.normal((batch_size,time_dim, freq_dim))

# Random complex mask split in real and imag. components
random_mask_real = tf.random.normal((batch_size,time_dim, freq_dim))
random_mask_imag = tf.random.normal((batch_size,time_dim, freq_dim))

enhanced_speech_signal = crm_layer(random_spectrogram_real, random_spectrogram_imag, random_mask_real, random_mask_imag)

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

crm_tensorflow-0.1.1.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

CRM_tensorflow-0.1.1-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file crm_tensorflow-0.1.1.tar.gz.

File metadata

  • Download URL: crm_tensorflow-0.1.1.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for crm_tensorflow-0.1.1.tar.gz
Algorithm Hash digest
SHA256 59e80b0571ff4a927f6fc88cf44892608c3a63669544e913fae862fd81ccdfeb
MD5 d8c8ffa9c12101c5b816d4d09e9a07fb
BLAKE2b-256 f0eabd3545b1bddce97f6fa589d233e6b972d6a209e6eed4ba5870be122c8074

See more details on using hashes here.

File details

Details for the file CRM_tensorflow-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for CRM_tensorflow-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 50fa1c5f646a5e01540d923c0acc376d2be5d02c71a18a365c7e9f4f2612cd4a
MD5 c0c4df603b23d94c6baa731f3db1c1e0
BLAKE2b-256 a9e9e1e36f2ffa4f669bf664a86db38c7aa0fdacb85e820ecdaeef1c9ee81aed

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page