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.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file CRM_tensorflow-0.1.0.tar.gz.

File metadata

  • Download URL: CRM_tensorflow-0.1.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.13

File hashes

Hashes for CRM_tensorflow-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0da1c62ec9f5d0c2cb9e07da8fd98776755f0a31057a6a584dc6436d12d900f7
MD5 2df6078ea8d47e626ece8fc3d81406e3
BLAKE2b-256 f807ddcc4c1037507611af4ac8c0eb82579e36fa03533a811f1cf384ea8568e8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for CRM_tensorflow-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3b08b08d3f5532cd253b6a94613856023cf2e5ed1825b8253c863947ef350f90
MD5 0aca22c8d2545092862610015d1d2f8c
BLAKE2b-256 5ae948910555913a71d06acbb9f9c17fcb5bef5bcb8873db9feda50b0bfab913

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