Giter VIP home page Giter VIP logo

audio-annotator's Introduction

音频分片打标签工具

代码在:https://github.com/vell001/audio-annotator

web端代码基于:https://github.com/CrowdCurio/audio-annotator,进行汉化、按VAD需求调整标注方式以及根据server调整了一些逻辑 server端基于tornado实现

原理

采用B/S(Browser/Server)架构,所有音频标注操作都是基于web端的wavesurfer框架,web端通过RESTful API从server端获取标注任务以及提交标注结果

使用方式

一、开启标注服务【Server】

通过打包好的可执行文件部署

可执行文件见:github release文件夹

解压对应操作系统的可执行文件,然后在文件夹内找到 run 的可执行文件,可执行文件后可带参数:

optional arguments:
  -h, --help            show this help message and exit
  --host HOST           host, 0.0.0.0 代表外网可以访问
  -p PORT, --port PORT  port
  -d DEBUG, --debug DEBUG
                        debug
  -l LOG_CONFIG_FILE, --log_config_file LOG_CONFIG_FILE
                        log config file, json
  --wav_dir WAV_DIR, -w WAV_DIR
                        待标注的wav文件夹

主要注意,-w 这个参数可以指定你要标注的wav文件所在的文件夹,如果不指定,默认是在 run 的同级目录下的 wavs 文件夹

源码部署

直接执行 run.py 文件,参数也和可执行文件部署一样

二、在浏览器里进行标注【Browser】

没有指定 --host 的话,默认地址就是:http://127.0.0.1:8282,在任意浏览器打开这个链接,尽量使用chrome
v1.1版本增加了review功能,默认地址是:http://127.0.0.1:8282/?review=true
v1.2版本增加了指定wav_name功能,样例地址:http://127.0.0.1:8282/?review=true&wav_name=82c75.wav
标注界面如下:

三、标注结果

标注结果保存在 wavs里,以[wav_name].json命名,json格式

需要关注的字段如下:

audio-annotator's People

Watchers

 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.