GithubHelp home page GithubHelp logo

mr-late-93 / speech-recognize Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kuangcaomvp/speech-recognize

0.0 0.0 0.0 98.31 MB

transformer的 encoder-decoder结构基于tensorflow实现的中文语音识别项目

Python 100.00%

speech-recognize's Introduction

speech-regconize

语音识别

1 环境安装

   pip install soundfile
   
   pip install tensorflow-gpu==1.12
   
   pip install python_speech_features
   
   pip install tqdm
   
   pip install easydict
   
   cuda9.0

2 测试

    python decoder.py

3 训练

    数据准备:
    
        见data文件夹 txt格式 音频路径+'\t' + label (label用空格分割)  //'\t'是指tab建不是字符
    
        config.py 中data_path+音频路径  为音频的绝对路径
    
        运行 python generate_data.py 不报错 则数据准备正确
    
    运行 python train.py 进行训练 

4 模型冻结

    freeze_graph.py  修改ckpt_file为自己训练的checkpoint路径
                      
                     pb_file   生成的pb文件保存路径
    
    运行  python freeze_graph.py
    
    修改 config.py 中__C.PREDICT.pb = pb_file

运行python decode.py 测试

5 checkpoint模型地址 链接:https://pan.baidu.com/s/1_CgXG3AvBDrXGTRr5_Rv8Q 提取码:ryqc

speech-recognize's People

Contributors

kuangcaomvp avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.