Giter Site home page Giter Site logo

Callback data format about auditok HOT 1 CLOSED

amsehili avatar amsehili commented on July 24, 2024
Callback data format

from auditok.

Comments (1)

amsehili avatar amsehili commented on July 24, 2024

Hi there,
If you need to run your other command every time a new utterance is detected you can use -C option in the command line:

auditok [args] -C "sox -t raw -r 16000 -c 1 -b 16 -e signed $ -r 16000 -b 16 audio.wav ; your_command audio.wav"

This will call sox (which you need to install) to write audio data as a wav file (named audio.wav) then call your external program, giving it audio.wav as an argument.

Note that the first -r option in the sox command refers to you input data, hence it can have a different value (e.g., 32000, 44100, etc., anyway this must be your the sampling rate of your input data) whereas the the second -r is used for your output file and should be what you application expects (here 16000 but it can be another value). The second -b however must always be 16 as you want your wav file to be 16-bit.

from auditok.

Related Issues (20)

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.