A
A
Alexander2020-05-17 20:35:57
linux
Alexander, 2020-05-17 20:35:57

How to determine the presence of a voice in a file?

I am making a simple voice control system for a smart home, Yandex parses the voice into text, but there is only 1 problem, requests to Yasha are paid and I don’t want to waste money ... I wondered, how to understand that the file does not consist of silence? I record from JS and save it on the server, then ffmpeg converts it to ogg and sends it to Yandex ...
Any options? Maybe there are some programs in nix?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Roman Mirilaczvili, 2020-05-17
@SmoKE_xD

There are plugins for ffmpeg to detect/remove silence.
https://ffmpeg.org/ffmpeg-filters.html#silencedetect

V
Vladimir, 2020-05-17
@HistoryART

Look in the documentation for both, you might find it, honestly - not an expert, not willing to be smart, but in my opinion it is in demand enough - to be in the documentation.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question