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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for crm_tensorflow-0.1.4.tar.gz
Algorithm Hash digest
SHA256 7d627b76c1835fb7e7e0c7c0ad55808e275e75d03f7ce2c8c745b860a7f4afb8
MD5 03bad0d32c335e35b6c965ce03009594
BLAKE2b-256 2cbc64962e2f1bad5b2840d438b9aeeaee0688870332b310d6fa8fdfe9974806

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for CRM_tensorflow-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b40e46b6b0ff9f081d5361abb5afcc83d0d5409940b15ac21e7c19a18c9d9e74
MD5 f6ecea51f51fa51f33f5f06774fe440c
BLAKE2b-256 028f29a530eb807d846bc2a1396625a9e65a082bd6a28672930667d35173489c

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