Skip to main content

Some tools function

Project description

guang

image image image image

Scientific calculation of universal function library

Requirements

Python 3
CUDA >= 10.0
PyTorch >= 1.0
Tensorflow >= 1.12.0
opencv-python
pydub
librosa==0.6.3
pyworld
soundfile
pypinyin

Installation

pip install guang

Examples

  • Convert audio in .mp3/ .wav format to (sample rate=16k, single channel) .wav format

    from guang.Voice.convert improt cvt2wav
    cvt2wav(orig_path, target_path, sr=16000)
    
  • Convert a dictionary to dotable dictionary:

    from guang.Utilt.toolsFunc import dict_dotable
    a = {'a':{'b':1}}
    a = dict_dotable(a)
    print(a.a.b)
    

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

guang-0.0.7.2.7.tar.gz (19.0 kB view hashes)

Uploaded Source

Built Distribution

guang-0.0.7.2.7-py3-none-any.whl (35.7 kB view hashes)

Uploaded Python 3

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