-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using Fingerprints as start and end triggers for recording #222
Comments
The following steps will help you with the problem you are trying to solve:
A high level code sample: QueryCommandBuilder
.Instance
.BuildRealtimeQueryCommand()
.From(source)
.WithRealtimeQueryConfig(config => config.SuccessCallback = result => /*resolve FIFO buffer AVSamples*/)
.InterceptAVTrack(avTrack => avTrack.Audio.Samples /*save av track into FIFO buffer*/)
.UsingServices(modelService)
.Query() Hope it makes sense. |
Thanks for your answer. That means that I could only access the stream in 5512Hz mono quality? I reworked my software to the other way. Currently I detect silence in the stream and use the silence as start/stop trigger for recording. Every saved file I will analyse with my fingerprints and if theres a match then I will export the file to an different folder. The Stream I work on produces large empty silence lines between the interesting parts so that seemed to be the better way for me. |
Hey, I try to use the library to create multiple fingerprints from prerecorded files to find matches in an stream. This works well but I couldn't figure out how I can access the plain stream in the AVQueryResult for start or stop recording.
Additionally it would be very interesting if you see a way how I could create a fifo-buffer of approx. 10 seconds to start the recording exactly where the fingerprint matches. Is there a way to use your solution for my needs or do I have to switch to an alternative?
Thanks, Michael
The text was updated successfully, but these errors were encountered: