Comments (1)
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)
- Making standalone executable for win32
- splitting the audio with overlaps. HOT 1
- how to set Energy threshold for this current version HOT 1
- Real-Time Silence detection HOT 5
- Use auditok as API to detect pauses in speech HOT 1
- Run on-device on Android device HOT 1
- Extract silence/background noise instead of high energy bursts/speech HOT 2
- convert stereo to mono audioregion by mixing? HOT 2
- Could you please update pypi auditok? HOT 2
- Integrate spleeter model
- Quality Benchmarks Between audiotok / webrtcvad / silero-vad HOT 3
- not support wave 24k? HOT 2
- Enforce PEP-8 guidelines across the Codebase
- Is there any citation? I'd like to cite it in our study. HOT 1
- module 'auditok' has no attribute 'split' HOT 6
- Failed when using split_and_plot HOT 8
- Cannot use split for an audio-humming.wav HOT 2
- Plotting tests failed HOT 1
- Doubt : format of the output HOT 4
- Real-Time Silence detection from bytes HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from auditok.