Coder Social home page Coder Social logo

vegetablewithchicken / split-audio-by-textgrid Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 1.0 16 KB

it can split the Audio of .mp3 or .wav,and by read the .TextGrid file that created by annotate-TextGrid of Praat

Python 100.00%
pydub python3 praat textgridtools

split-audio-by-textgrid's Introduction

Split-Audio-By-TextGrid

Env:
python 3.7
Window10,x64
#Split Audio Based on Slient And Sounding

1,Git clone or copy code from this
2,download ffmpeg from https://www.gyan.dev/ffmpeg/builds/ffmpeg-git-full.7z
3,copy ffmpeg bin file to your project top-level
4,set Path_dir ='your project dir'

中文说明:
运行环境:
python3.7
window10 x64
#基于静音和有声音进行分割操作
1,拷贝代码到你的python文件
2,下载ffmpeg压缩包,如果下载比较慢,可以使用迅雷下载
3,拷贝ffmpeg的bin目录文件,到你的python项目所有目录
4,运行之前,设置拷贝的代码Path_Dir作为你项目目录

。TextGrid格式文件获取方式 1,下载Praat语音软件
@https://github.com/praat/praat
2,Open-ReadFromFile (支持MP3和Wav等音频格式)
3,选中音频 点击Annotate-TextGrid(selience)
4,设置属性,参考属性
textGrid setting :
Minimum pitch(HZ) 20
Mininum silent interval duration 1
Minimum sounding interval duration 0.1

5,点击Edit&View Ctrl+s 保存文件

split-audio-by-textgrid's People

Contributors

vegetablewithchicken avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

liuynkit

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.